Get usage
Returns daily credits consumption for an organization over a date range. Optionally scope the report to a single workspace or document type. workspace and document_type cannot be combined: usage data is aggregated independently along each axis, so a per-(workspace × document type) slice is not available.
Request
- Base URLhttps://api.affinda.com
- AuthHTTP bearer
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Query parameters
Uniquely identify an organization.
Organization to report usage for. The caller must be an admin or owner.
Uniquely identify a workspace.
Optionally scope the report to a single workspace within the organization.
Uniquely identify a collection.
Optionally scope the report to a single document type within the organization.
Inclusive start date of the report (YYYY-MM-DD). Defaults to 365 days before end.
Inclusive end date of the report (YYYY-MM-DD). Defaults to today.
Response
Daily credits consumption for the requested scope.
Example response
{
"start": "2025-04-01",
"end": "2025-04-30",
"total": 4320,
"items": [
{
"date": "2025-04-15",
"count": 123
}
]
}Changes
No recorded changes to this operation across all 1 revision of this API.