Get the origin of messages sent during a specific period. It highlights the number of messages sent in private channels, private chats, and public channels.
Permission required: view-engagement-dashboard
Changelog
| Version | Description |
|---|---|
| 9.1.0 | Unknown query parameters return 400. Validation error messages changed. |
| 3.1.0 | Added |
The token of the authenticated user.
The user ID of the authenticated user.
The start date as an ISO 8601 date-time string, for example 2023-10-29T14:48:00.000Z. Required.
The end date as an ISO 8601 date-time string, for example 2023-11-05T14:48:00.000Z. Required.
t denotes the type of room where the messages are sent. The types of rooms can be any of the following:
drepresents Private Chatscrepresents Public Channelsprepresents Private Channels
{
"origins": [
{
"messages": 7302,
"t": "c"
},
{
"messages": 1147,
"t": "d"
},
{
"messages": 122,
"t": "p"
}
],
"success": true
}Bad Request
{
"success": false,
"error": "must have required property 'start'",
"errorType": "error-invalid-params"
}{
"success": false,
"error": "must match format \"date-time\"",
"errorType": "error-invalid-params"
}{
"success": false,
"error": "must NOT have additional properties",
"errorType": "error-invalid-params"
}Unauthorized
{
"success": false,
"error": "You must be logged in to do this."
}Forbidden
{
"success": false,
"error": "User does not have the permissions required for this action",
"errorType": "error-forbidden"
}