Get cost analytics
GET/api/v1/chatbots/:chatbotId/analytics/cost
Returns cost analytics for a single chatbot over the requested period. Tier-gated: the plan's analytics day-cap is applied automatically; a 403 is returned when the plan does not include cost analytics access. Combines completed-day cost rollups with the current day's partial usage. No PII — ownerEmail, userId, and per-other-chatbot breakdowns are always stripped. Required scope: analytics:read.
Request
Responses
- 200
- 400
- 401
- 403
- 404
- 429
Cost analytics for the chatbot.
Bad Request — invalid input
Unauthorized — missing or invalid API key
Forbidden — key lacks required scope
Not Found
Too Many Requests — rate limit exceeded