import requests
url = "https://eu.app.clarifeye.ai/api/v1/projects/{project_id}/available-document-tags/"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://eu.app.clarifeye.ai/api/v1/projects/{project_id}/available-document-tags/', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));curl --request GET \
--url https://eu.app.clarifeye.ai/api/v1/projects/{project_id}/available-document-tags/ \
--header 'Authorization: Bearer <token>'{
"document_type": [
"Contract",
"Invoice",
"Report"
],
"language": [
"English",
"French",
"German"
]
}{
"error": "Authentication credentials were not provided."
}{
"error": "You do not have permission to perform this action."
}{
"error": "Not found."
}List available document tags
Retrieve all available document tag names and their possible values for the project.
Values are aggregated from both the tag extractor configuration (predefined possible values) and actual tag data already extracted from documents. Results are deduplicated and sorted.
Document tags are LLM-inferred by tag extractors during pipeline runs, whereas document metadata is user-entered (supplied at upload time or edited via the metadata endpoints).
import requests
url = "https://eu.app.clarifeye.ai/api/v1/projects/{project_id}/available-document-tags/"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://eu.app.clarifeye.ai/api/v1/projects/{project_id}/available-document-tags/', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));curl --request GET \
--url https://eu.app.clarifeye.ai/api/v1/projects/{project_id}/available-document-tags/ \
--header 'Authorization: Bearer <token>'{
"document_type": [
"Contract",
"Invoice",
"Report"
],
"language": [
"English",
"French",
"German"
]
}{
"error": "Authentication credentials were not provided."
}{
"error": "You do not have permission to perform this action."
}{
"error": "Not found."
}Authorizations
Use Authorization: Bearer <token>. The token is either a user token / OAuth access
token, or a service-account API key (cfk_...). A key is valid on every endpoint and
acts as its service account, an organization member with per-store permissions.
Refused keys answer 403 with Invalid API key., API key revoked.,
API key expired. or API key disabled..
Path Parameters
UUID of the project
Response
Successful response
Map of tag names to their available values.