List usage
The organization’s usage in a time range, one line item per kind of usage.
Without group_by, the list holds one item: the organization’s total, or the agent’s with
agent_id. With group_by=agent_id, it holds one item per agent that used anything in the
range, ordered by agent_id and paged; their line items add up to the total. Line items cover the
kinds of usage type lists, and more kinds can be added.
Authorizations
An org API key: Authorization: Bearer phk_…
Headers
Optional. Must be the key's org.
Path Parameters
The organization's ID.
Query Parameters
Usage at or after this time (ISO 8601 with a timezone).
Usage before this time (ISO 8601 with a timezone). At most 366 days after occurred_from.
agent_id returns one item per agent instead of the total.
How to split the usage: one item per agent. Known values: agent_id. More can be added, so handle values you don't recognize.
Only this agent's usage. A deleted agent's usage stays readable.
1Items per page, 1 to 100.
1 <= x <= 100next_cursor from the previous page.

