Get workspace analytics
Returns cost, request, and token aggregates grouped by date, model, provider, and endpoint for the last 30 completed UTC days.
Request
- Base URL: https://api.phaseo.app/v1
- URL: https://api.phaseo.app/v1/analytics
- Auth: HTTP bearer
Query parameters
Filter by a single UTC date in the last 30 completed days (YYYY-MM-DD).
Request-label key to include in the spend slice. Must be provided together with label_value.
Request-label value to include in the spend slice. Must be provided together with label_key.
Filter by API key identifier.
Filter by application-defined end-user identifier.
Model identifier. This is a runtime string so newly released models can be used without waiting for an SDK update.
Filter by requested or routed canonical model slug.
Filter by provider slug.
Filter by gateway endpoint identifier.
Filter managed or BYOK traffic.
Filter successful or failed requests.
Number of records to skip.
Response
Retrieved
Example response
{
"data": [
{
"date": "2025-08-24",
"model": "openai/gpt-4.1",
"model_permaslug": "openai/gpt-4.1-2025-04-14",
"endpoint_id": "chat.completions",
"provider_name": "OpenAI",
"usage": 0.015,
"byok_usage_inference": 0.012,
"requests": 5,
"prompt_tokens": 50,
"completion_tokens": 125,
"reasoning_tokens": 25
}
]
}Changes
No recorded changes to this operation across all 1 revision of this API.