List available document tags
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."
}Documents
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).
GET
/
projects
/
{project_id}
/
available-document-tags
/
List available document tags
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."
}