Get cost breakdown
Get account-level cost breakdown by category with drill-down to calls.
## Query Parameters
- `period`: `today`, `week`, `month`, or `custom` (default: `week`)
- `startDate`: Required when `period=custom`
- `endDate`: Required when `period=custom`
## Response
Returns total costs, breakdown by category (LLM, STT, TTS, telephony),
breakdown by flow, and recent calls with individual cost breakdowns.
Authentication
AuthorizationBearer
Pass a JWT access token or an API key (prefixed with tif_live_) as a Bearer token.
Query parameters
period
Time period: today, week, month, or custom
startDate
Start date for custom period
endDate
End date for custom period
Response
Cost breakdown by category
accountId
Account identifier
byCategory
Cost breakdown by service category (LLM, TTS, STT, telephony)
byFlow
Cost breakdown by flow
calls
Individual calls with per-category breakdown, for drill-down. Ordered by created_at DESC, limited to the most recent calls in the period.
endDate
End of the reporting period
period
Time period label
startDate
Start of the reporting period
totalMicrocents
Total cost in microcents (1 cent = 10,000 microcents)
totalUsd
Total cost in USD
Errors
401
Unauthorized Error
403
Forbidden Error
429
Too Many Requests Error
500
Internal Server Error