For the complete documentation index, see llms.txt. This page is also available as Markdown.

Statistics

Generates a channel-specific report

get

Required Permission: chatbots.statistics.get

Resource: chatbots/:chatbotId

Authorizations
x-chatcaptain-keystringRequired
Path parameters
chatbotIdstringRequired

The ID of the chatbot

Query parameters
channelIdstringRequired

The Id of the channel for which to retrieve statistics for.

fromstringRequired

The start date of the statistics timeframe (ISO format).

Example: 2025-01-04T23:00:00.000Z
tostringRequired

The end date of the statistics timeframe (ISO format).

Example: 2025-02-01T22:59:59.999Z
intervalnumber · enumRequired

Sets the interval per day or hour in seconds (86400 for multiple days reports and 3600 for single day reports)

Possible values:
componentsstringRequired

Comma-separated list of component IDs.

  • 0: STEP_EXEC_COUNT_FOR_CHANNEL_ID
  • 1: CONVERSATION_COUNT_FOR_CHANNEL_ID
  • 2: CONVERSATION_COUNT_INTERVAL_FOR_CHANNEL_ID
  • 3: CONVERSATION_COUNT_PERIODIC_TREND_FOR_CHANNEL_ID
  • 4: CONVERSATION_LANGUAGES_FOR_CHANNEL_ID
  • 5: CONVERSATION_MESSAGE_COUNT_MEDIAN_FOR_CHANNEL_ID
  • 6: INTENT_COUNT_FOR_CHANNEL_ID
  • 7: INTENT_HITS_FOR_CHANNEL_ID
  • 8: INTENT_SCORE_MEDIAN_FOR_CHANNEL_ID
  • 9: INTERACTION_COUNT_FOR_CHANNEL_ID
  • 10: INTERACTION_COUNT_INTERVAL_FOR_CHANNEL_ID
  • 11: INTERACTION_COUNT_PERIODIC_TREND_FOR_CHANNEL_ID
  • 12: MESSAGE_COUNT_FOR_CHANNEL_ID
  • 13: MESSAGE_COUNT_INTERVAL_FOR_CHANNEL_ID
  • 14: MESSAGE_COUNT_PERIODIC_TREND_FOR_CHANNEL_ID
  • 15: MESSAGE_LENGTH_MEDIAN_FOR_CHANNEL_ID
  • 16: CALL_DURATION_TOTAL
  • 17: CALL_DURATION_PERIODIC_TREND
  • 18: CALL_DURATION_MEDIAN
  • 19: CALL_EXIT_STEP
  • 20: CALL_USER_INPUTS_MEDIAN
  • 21: CALL_END_REASON
  • 22: CALL_TRANSFER_TARGET
Example: 0,1,2
Responses
200

The report structure depends on the requested components.

application/json
objectOptional
get
/v1/chatbots/{chatbotId}/statistics/reports/channel
200

The report structure depends on the requested components.

Generates an overview report

get

Required Permission: chatbots.statistics.get

Resource: chatbots/:chatbotId

Authorizations
x-chatcaptain-keystringRequired
Path parameters
chatbotIdstringRequired

The ID of the chatbot

Query parameters
fromstringRequired

The start date of the statistics timeframe (ISO format).

Example: 2025-01-04T23:00:00.000Z
tostringRequired

The end date of the statistics timeframe (ISO format).

Example: 2025-02-01T22:59:59.999Z
intervalnumber · enumRequired

Sets the interval per day or hour in seconds (86400 for multiple days reports and 3600 for single day reports)

Possible values:
componentsstringRequired

Comma-separated list of component IDs.

  • 0: STEP_EXEC_COUNT
  • 1: CONVERSATION_COUNT
  • 2: CONVERSATION_COUNT_INTERVAL
  • 3: CONVERSATION_LANGUAGES
  • 4: CONVERSATION_BY_CHANNEL_TYPE
  • 5: CONVERSATION_COUNT_PERIODIC_TREND
  • 6: CONVERSATION_MESSAGE_COUNT_MEDIAN
  • 7: MESSAGE_COUNT
  • 8: MESSAGE_COUNT_INTERVAL
  • 9: MESSAGE_COUNT_PERIODIC_TREND
  • 10: MESSAGE_LENGTH_MEDIAN
  • 11: INTENT_HITS
  • 12: INTENT_SCORE_MEDIAN
  • 13: INTENT_COUNT
  • 14: INTERACTION_COUNT
  • 15: INTERACTION_COUNT_INTERVAL
  • 16: INTERACTION_COUNT_PERIODIC_TREND
Example: 0,1,2
Responses
200

The report structure depends on the requested components.

application/json
objectOptional
get
/v1/chatbots/{chatbotId}/statistics/reports/overview
200

The report structure depends on the requested components.

Creates an export of statistics

post

Required Permission: chatbots.statistics.export

Resource: chatbots/:chatbotId

Authorizations
x-chatcaptain-keystringRequired
Path parameters
chatbotIdstringRequired

The ID of the chatbot

Query parameters
fromstringRequired

The start date of the statistics timeframe (ISO format).

Example: 2025-01-04T23:00:00.000Z
tostringRequired

The end date of the statistics timeframe (ISO format).

Example: 2025-02-01T22:59:59.999Z
Responses
post
/v1/chatbots/{chatbotId}/statistics/export
202

Export job has been started.

Retrieves the status of a statistics export

get

Required Permission: chatbots.statistics.export

Resource: chatbots/:chatbotId

Authorizations
x-chatcaptain-keystringRequired
Path parameters
chatbotIdstringRequired

The ID of the chatbot

exportIdstringRequired

The Id of the export job.

Responses
200

The current status of the export job.

application/json
statusstringRequired

The status of the export.

Example: completed
downloadUrlstringOptional

URL to download the file when the export is completed.

Example: https://storage.googleapis.com/exports/export-123.csv
errorstringOptional

Optional error message.

get
/v1/chatbots/{chatbotId}/statistics/export/{exportId}
200

The current status of the export job.

Retrieves statistics of the inbox section of a chatbot.

get

Required Permission: chatbots.statistics.get

Resource: chatbots/:chatbotId

Authorizations
x-chatcaptain-keystringRequired
Path parameters
chatbotIdstringRequired

The ID of the chatbot

Query parameters
fromstringRequired

The start date of the statistics timeframe (ISO format).

Example: 2025-01-04T23:00:00.000Z
tostringRequired

The end date of the statistics timeframe (ISO format).

Example: 2025-02-01T22:59:59.999Z
Responses
200

The inbox statistics data.

application/json
errorstringOptional

Optional error message.

get
/v1/chatbots/{chatbotId}/statistics/inbox
200

The inbox statistics data.

Retrieves all channels associated with a chatbot

get

Required Permission: chatbots.statistics.get

Resource: chatbots/:chatbotId

Authorizations
x-chatcaptain-keystringRequired
Path parameters
chatbotIdstringRequired

The ID of the chatbot

Responses
200

The list of channels for the chatbot.

application/json
get
/v1/chatbots/{chatbotId}/statistics/channels

Last updated