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
Path Parameters
UUID of the project
UUID of the extraction flow
Body
application/json
Optional list of document UUIDs to scope the simulation to. When omitted, statistics are computed over all documents in the project.
Response
Per-node statistics
Map of DAG node names to their cache/recompute statistics.