Usage Log
Audit every AI call your account makes: a per-request usage log with operation type, model, token counts, and cost estimates via GET /v1/credits/usage/log.
The usage log endpoint (GET /v1/credits/usage/log) returns a detailed log of individual API requests with per-request token counts, model information, and cost estimates. It is the most granular usage view available, showing every LLM call and OCR request made by your account, ordered by most recent first.
Each log entry links back to the originating document (when applicable) via the document_id field, allowing you to trace costs to specific documents in your pipeline. Use the log when the aggregated views are not enough: auditing a billing period, investigating a cost spike the Usage Summary surfaced, or verifying that prompt caching is working via the cache_read_tokens column.
page and limit, max 100 per page) to browse historical entries./v1/credits/usage/logQuery parameters
cURL — Most recent usage log entries
Response
Response fields
Response
{
"items": [
{
"id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"model": "claude-sonnet-4-5",
"input_tokens": 4280,
"output_tokens": 612,
"cache_read_tokens": 0,
"cost_estimate_usd": 0.022,
"operation_type": "extraction",
"document_id": "doc-uuid-abc123",
"created_at": "2026-06-14T10:32:00.000Z"
}
],
"total": 8240,
"page": 1,
"limit": 20
}Errors
Error responses