Retrieve aggregated analytics metrics for your application. Returns time-series data for trace volume, latency, cost, token usage, and error rates.
Your AgentMark API key. Create one in the dashboard under Settings > API Keys.
Example: Authorization: Bearer am_live_abc123
Your application ID. Found in the dashboard under Settings > General.
"app_abc123"
Start of the time range (ISO 8601). Defaults to 7 days ago.
End of the time range (ISO 8601). Defaults to now.
Time bucket granularity for aggregation.
hour, day, week Filter metrics by model name.
Filter metrics by span name.
Aggregated metrics.