v1
latestOpenAPI 3.1.02026-08-046031.9 KBTeam Management
Get API Key Usage
Retrieves usage analytics and billing data for a specific API key over a given time period. Returns cost breakdown by price type from the billing system.
get/api-keys/{id}/usage
Path parameters
idstring required
The unique identifier of the API key.
Query parameters
start_datestring date-time
Start date for the usage period (ISO 8601 format). Defaults to 30 days ago. Must be within the last 6 months (180 days).
end_datestring date-time
End date for the usage period (ISO 8601 format). Defaults to current time.
group_by'hour' | 'day' | 'month'
Time granularity for grouping results. Currently reserved for future enhancements and does not change the response shape. Defaults to 'day'.
Response
Usage data retrieved successfully
Example response
{
"total_cost_usd": 45.67
}