Get the count of outgoing messages grouped by a specified entity (agent, team, inbox, or label). When grouped by agent, messages sent by bots (AgentBot, Captain::Assistant) are excluded.
Note: This API endpoint is available only in Chatwoot version 4.11.0 and above.
This token can be obtained by visiting the profile page or via rails console. Provides access to endpoints based on the user permissions levels. This token can be saved by an external system when user is created via API, to perform activities on behalf of the user.
The numeric ID of the account
The entity to group outgoing message counts by.
agent, team, inbox, label The timestamp from where report should start (Unix timestamp).
The timestamp from where report should stop (Unix timestamp).
Success
[
{
"id": 1,
"name": "Agent One",
"outgoing_messages_count": 42
},
{
"id": 2,
"name": "Agent Two",
"outgoing_messages_count": 18
}
]