This endpoint returns the total count of chat sessions that match the given query parameters. It can be used to analyze chat volume over time, filtered by various attributes such as channel and status.
Authentication
Bearer token for authentication
Path Parameters
The ID of the organization
Query Parameters
The start date for the date range filter (ISO 8601 format)
The end date for the date range filter (ISO 8601 format)
Filter by the chat channel (e.g., “web”, “mobile”)
Filter by the chat session status
Response
The total number of chat sessions matching the specified criteria
curl --location --request GET 'https://api-v2.opencopilot.so/backend/reports/chats/total?startDate=2023-01-01T00:00:00Z&endDate=2023-12-31T23:59:59Z&channel=web&status=1' \
--header 'Authorization: Bearer YOUR_API_KEY'