Conversation

Fetch conversation usage statistics

Retrieve usage statistics for a specific conversation, including total tokens (BASE type only) and total messages. Optionally filter by date range.

get/conversation/{conversationId}/usage/fetch

Request

  • Base URL: https://api.chatbotkit.com/api/v1
  • URL: https://api.chatbotkit.com/api/v1/conversation/{conversationId}/usage/fetch
  • Auth: HTTP bearer

Path parameters

conversationIdstring required

The ID of the conversation

Query parameters

fromstring date-time

Start date for the period (ISO 8601 format)

tostring date-time

End date for the period (ISO 8601 format)

Response

Conversation usage statistics retrieved successfully

tokensinteger

Total number of BASE tokens used

messagesinteger

Total number of messages

Changes

No recorded changes to this operation across all 1 revision of this API.