Get usage & cost
Changed onReport billable usage and cost for the organization over a time window, broken down by project (highest spend first). Pass from/to as ISO 8601 timestamps; optionally pass projectId to scope the report to one project. Amounts are billable spend only (what we absorb is never included). Authenticated by either an organization API key with the usage:read permission (any project in the organization), or a project API key with the billing:read permission (that key's own project only; any other projectId is a 403).
Request
- Base URLhttps://api.roark.ai
- URLhttps://api.roark.ai/v1/usage
- AuthHTTP bearer
Query parameters
Start of the window (inclusive), ISO 8601.
End of the window (exclusive), ISO 8601. Must be after from, and the window may not exceed 366 days.
Limit the report to a single project. Omit for the whole organization.
Response
The usage & cost report for the window
Changes
- warning
added the new
PHONE_NUMBERenum value to the/////response property for the response status
- warning
- info
added the required property
///to the response with the status
- info