Get usage metrics
GET/v0/usage/metrics
Get usage metrics for the authenticated organization.
Authentication: Requires valid API key in 'api-key' header. The organization is automatically deduced from the API key via VerifyTokenMiddleware.
Date Range Defaults:
- If
start_dateis not provided, defaults to 30 days ago - If
end_dateis not provided, defaults to current time (with buffer applied)
Data Completeness: Metrics include only completed sessions, test runs, and datapoints. A configurable time buffer may be applied to ensure data completeness.
Metrics Included:
- voice_minutes: Sum of audio/voice minutes from completed sessions
- simulations: Count of completed test runs (all types: voice and non-voice)
- datapoints: Count of non-error datapoints
- checks: Total check executions from test runs and monitors
- simulated_conversations: Count of simulated conversations, one per conversation of a finished multi-turn Run (pass or fail, final turn not an error); a Re-score Run does not count
- monitored_conversations: Count of outside conversations, scored or not: one per datapoint for an integration call or a simulation-linked trace, else one per context token per period; a datapoint with no token counts once
Scope: The whole organization by default; pass project_id for one project.
Example Usage:
# Last 30 days (default)
GET /v0/usage/metrics
# Specific date range
GET /v0/usage/metrics?start_date=2026-01-01T00:00:00Z&end_date=2026-01-31T23:59:59Z
# Custom start, default end
GET /v0/usage/metrics?start_date=2026-01-01T00:00:00Z
Request
Responses
- 200
- 400
- 401
- 404
- 422
- 500
Successful Response
Input data is incorrect
Okareo API token has failed authentication
Data is not found
Input data is invalid
The usage metrics could not be calculated: a conversation count failed or timed out.