API reference
Usage
This month's conversations against the allowance.
GET /usage
This month's usage
The workspace's pool (the plan's conversations plus this month's top-ups, shared by every agent) and, per agent, what it counted and its messages, for the current month in UTC. A conversation is counted once, on its first answered message, on any channel.
Scope: usage:read
Returns Usage
monthrequiredstringThe first day of the month, UTC.
planoptionalstringPlan
conversations_per_agentoptionalintegerDeprecated name: the plan's monthly conversations, one pool for the whole workspace (see pool), not an allowance per agent.
pooloptionalUsagePoolagentsrequiredAgentUsage[]Agents
Responses
200Successful Response401Missing, invalid, revoked or expired key. Leaving the workspace, or being removed from it, revokes the keys a teammate made; a key whose maker's membership ended any other way answerskey_maker_left.403The plan has no API, the key lacks the scope, or the role of the teammate who made the key no longer allows it (maker_role_limit; a publishable key saysinsufficient_scope).404Nothing by that id in this workspace.413The request body is larger than this route accepts (1 MB; 3 MB for a text source). On a source:plan_text_limit, the agent's plan cannot hold more text (limit_chars,used_chars).422The request did not validate;detailslists the fields.429Rate limit reached; waitRetry-Afterseconds.500Our fault; quoterequest_idto support.
curl https://www.bidii.ai/api/v2/usage \
-H "Authorization: Bearer bidi_sk_YOUR_KEY"