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

periodstringOptional

Time period: today, week, month, or custom

startDatestringOptional
Start date for custom period
endDatestringOptional
End date for custom period

Response

Cost breakdown by category
accountIdstringformat: "uuid"
Account identifier
byCategorylist of objects

Cost breakdown by service category (LLM, TTS, STT, telephony)

byFlowlist of objects
Cost breakdown by flow
callslist of objects

Individual calls with per-category breakdown, for drill-down. Ordered by created_at DESC, limited to the most recent calls in the period.

endDatedatetime
End of the reporting period
periodstring
Time period label
startDatedatetime
Start of the reporting period
totalMicrocentslong

Total cost in microcents (1 cent = 10,000 microcents)

totalUsddouble
Total cost in USD

Errors

401
Unauthorized Error
403
Forbidden Error
429
Too Many Requests Error
500
Internal Server Error