Get a company's token usage and cost for a window (super admin)
GEThttps://platform.docana.com/api/v1/admin/companies/:id/usage/
Super admins only. Token usage and estimated model cost (USD) for any company over a window of UTC days (default: this month to date, at most 366 days). agents comes from agent execution node usage: totals, per agent, per day, and the latest executions (call getAdminExecutionUsage for one execution per node). surfaces is the spend outside agent executions (assistant chat, agent builder, document generation, evaluators, background work), from usage events. Costs are estimates from model list prices, not the invoice.
Request
Responses
- 200
- 400
- 401
- 403
- 404
- 500
The company usage for the window
Invalid window or filters
Missing or invalid credentials
The caller is not a super admin
Company not found
Unexpected server error.