getMonthlyUsage
Get monthly usage for your organization
Returns how many pages and operations your organization has successfully processed in a given month. Use it to surface consumption in your own admin UI, build usage alerts before hitting your plan's quota, or reconcile invoices.
The organization is identified by the API key in the request — there is
no organizationId parameter and you cannot query other organizations.
Behavior:
- When
yearandmonthare omitted, the endpoint returns counters for the current month. - When the organization has no recorded usage for the requested month
(e.g. the month is in the future, or the organization didn't process
anything), both counters return
0— this is not an error. - This endpoint is not subject to quota enforcement. Calling it does not count toward your usage and is never blocked by 429/402.
What successful_conversions counts: any operation that completed
successfully — both document conversions and document identifications.
The name is kept singular for backwards compatibility.
Authorization
ApiKeyAuth Bearer token for API authentication
In: header
Query Parameters
Year (must be sent together with month). Defaults to the current year.
2020 <= value <= 2100Month 1–12 (must be sent together with year). Defaults to the current month.
1 <= value <= 12Response Body
application/json
application/json
application/json
getStepExecutionStatus GET
Retrieves the current status and results of a step execution with standardized response format. **Status values:** - `ENQUEUED`: Request received, waiting to be processed - `PROCESSING`: Currently being processed - `SUCCESS`: Processing completed successfully - `ERROR`: Processing failed **Polling recommendation:** - Poll every 1-2 seconds for small documents - Poll every 3-5 seconds for large documents or PDFs
Node.js SDK
Official Node.js SDK for the DocuTray API — typed OCR conversion, document identification, data extraction, and knowledge bases for Node 20+.