The dashboard endpoints power the BurnGuard web UI’s analytics views. They aggregate usage records stored by the proxy sync pipeline and return pre-computed summaries scoped to the authenticated user. All four endpoints require a valid session and accept no request body — query parameters control time windows and pagination where relevant.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/Verifieddanny/BurnGuard/llms.txt
Use this file to discover all available pages before exploring further.
All dashboard data is derived from usage records pushed by the local proxy via
POST /v1/usage. If your proxy has not synced yet, most endpoints will return zeros or empty arrays rather than errors.GET /v1/dashboard/summary
Returns a single aggregated summary of all-time spend and token usage for the authenticated user. Auth: Requires session —Authorization: Bearer session_<id>.
Request: No parameters or body.
Response:
Total cost in USD across all synced usage records.
Total number of AI API calls recorded.
Cumulative count of input (prompt) tokens across all requests.
Cumulative count of output (completion) tokens across all requests.
GET /v1/dashboard/chart
Returns daily spend totals for a rolling window of days. Use this data to render a time-series chart in the dashboard. Auth: Requires session —Authorization: Bearer session_<id>.
Number of calendar days to look back. Defaults to
30. Recommended values: 7, 30, 90. Days with no recorded spend are omitted from the response array.ISO 8601 date string (
YYYY-MM-DD) for the calendar day.Total USD cost for that day.
GET /v1/dashboard/providers
Returns cost and request counts broken down by AI provider. Results are ordered by total cost descending so the most expensive provider appears first. Auth: Requires session —Authorization: Bearer session_<id>.
Request: No parameters or body.
Response: Array of provider breakdown objects.
Provider identifier as recorded by the proxy — e.g.
"openai" or "anthropic".Total USD cost for this provider across all time.
Total number of API calls routed to this provider.
GET /v1/dashboard/requests
Returns the most recent usage records for the authenticated user, ordered by timestamp descending. Use this to populate the request log table in the dashboard. Auth: Requires session —Authorization: Bearer session_<id>.
Maximum number of records to return. Defaults to
20. Increase to paginate through more history.Internal numeric ID of the usage record.
ID of the user who owns this record.
ID of the sync token used when this batch was uploaded.
ISO 8601 timestamp of when the AI API call was made on the proxy side.
Provider name —
"openai" or "anthropic".Model identifier as reported by the provider (e.g.
"gpt-4o", "claude-3-5-sonnet-20241022").Number of input (prompt) tokens consumed by this request.
Number of output (completion) tokens produced by this request.
Tokens used to create a prompt cache entry (Anthropic prompt caching). Zero if not applicable.
Tokens read from a prompt cache hit (Anthropic prompt caching). Zero if not applicable.
Calculated USD cost for this single request.
The upstream API path that was proxied (e.g.
/v1/messages, /v1/chat/completions).ISO 8601 timestamp of when this record was received and stored by BurnGuard Cloud.
