Get extraction flow statistics
import requests
url = "https://eu.app.clarifeye.ai/api/v1/projects/{project_id}/extraction-flows/{flow_id}/node-stats/"
payload = { "document_ids": ["550e8400-e29b-41d4-a716-446655440000"] }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({document_ids: ['550e8400-e29b-41d4-a716-446655440000']})
};
fetch('https://eu.app.clarifeye.ai/api/v1/projects/{project_id}/extraction-flows/{flow_id}/node-stats/', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));curl --request POST \
--url https://eu.app.clarifeye.ai/api/v1/projects/{project_id}/extraction-flows/{flow_id}/node-stats/ \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"document_ids": [
"550e8400-e29b-41d4-a716-446655440000"
]
}
'{}{
"error": "Authentication credentials were not provided."
}{
"error": "You do not have permission to perform this action."
}{
"error": "Not found."
}Extraction Flows
Get extraction flow statistics
Dry-run cache simulation of the flow — returns, per DAG node, how many inputs would be reused from cache vs. recomputed, without actually executing any extraction. Useful to preview the cost/impact of a run.
POST
/
projects
/
{project_id}
/
extraction-flows
/
{flow_id}
/
node-stats
/
Get extraction flow statistics
import requests
url = "https://eu.app.clarifeye.ai/api/v1/projects/{project_id}/extraction-flows/{flow_id}/node-stats/"
payload = { "document_ids": ["550e8400-e29b-41d4-a716-446655440000"] }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({document_ids: ['550e8400-e29b-41d4-a716-446655440000']})
};
fetch('https://eu.app.clarifeye.ai/api/v1/projects/{project_id}/extraction-flows/{flow_id}/node-stats/', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));curl --request POST \
--url https://eu.app.clarifeye.ai/api/v1/projects/{project_id}/extraction-flows/{flow_id}/node-stats/ \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"document_ids": [
"550e8400-e29b-41d4-a716-446655440000"
]
}
'{}{
"error": "Authentication credentials were not provided."
}{
"error": "You do not have permission to perform this action."
}{
"error": "Not found."
}Authorizations
BearerAuthTokenAuth
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
Body
application/json