Skip to main content
GET
Rate limit tier: general, 600 requests/min. See Rate limits. Returns what a workflow’s document runs processed: pages and credits are what those runs were billed for, and error_pages are the pages of its runs that ended in error. The numbers are the workflow’s row on the usage page. See Usage & Billing. Credits a workflow spends without a document are not counted here: knowledge asks, optimization proposals and edit-reference parses. They are on the invoice, so credits can be lower than the invoice’s total for the workflow.

Pick the days

date_from and date_to are days as YYYY-MM-DD in UTC, and both ends are included. Omit both for the workflow’s whole history, or one of them for an open range. A date_from after date_to answers 400 with error_code: VALIDATION_ERROR. A charge counts on the day it was made, not on the day its document was uploaded. A document run again on a later day is billed again, and that charge lands on the later day. A deleted document still counts, because its charge stays on the invoice. An error page counts on the day its run started. To count the pages of the documents uploaded on given days instead, add up usage.pages over List workflow runs filtered by upload day. An unknown workflow, or one that belongs to another organization, answers 404 with error_code: NOT_FOUND.

Authorizations

Authorization
string
header
required

API key issued from app.anyformat.ai/api-key. Send as Authorization: Bearer <key>.

Path Parameters

workflow_id
string
required

Query Parameters

date_from
string<date> | null

First day to count, inclusive, as YYYY-MM-DD in UTC. Omit to count from the start.

Example:

"2026-10-01"

date_to
string<date> | null

Last day to count, inclusive, as YYYY-MM-DD in UTC. Omit to count up to now.

Example:

"2026-10-31"

Response

Successful Response

What a workflow's document runs processed: the workflow's row on the usage page.

Credits spent without a document (knowledge asks, optimization proposals and edit-reference parses) are not counted.

pages
integer
required

The pages the workflow's document runs billed, over the charges made on those days.

error_pages
integer
required

The pages of the runs that ended in error, over the runs started on those days.

credits
integer
required

The credits the workflow's document runs spent, over the charges made on those days.