Message Counter
GET/statistics/messageCounter
MessageCounter
This endpoint retrieves the message count.
Messages are grouped, by default, by type and by date, from the beginning of the first connection with the device..
[
{
type: 'image',
group: [{ date: '2022-11-17', amount: 2 }],
},
{
type: 'list',
group: [
{ date: '2022-11-12', amount: 5 },
{ date: '2022-11-17', amount: 2 },
],
},
{
type: 'audio',
group: [{ date: '2022-11-17', amount: 2 }],
},
{
type: 'linkPreview',
group: [
{ date: '2022-11-17', amount: 3 },
{ date: '2022-11-12', amount: 2 },
{ date: '2022-11-13', amount: 5 },
],
},
{
type: 'buttons',
group: [
{ date: '2022-11-13', amount: 5 },
{ date: '2022-11-17', amount: 4 },
{ date: '2022-11-12', amount: 2 },
],
},
{
type: 'text',
group: [
[
{ date: '2022-11-12', amount: 4 },
{ date: '2022-11-13', amount: 9 },
{ date: '2022-11-17', amount: 2 },
],
],
},
{
type: 'audioWA',
group: [{ date: '2022-11-17', amount: 2 }],
},
{
type: 'location',
group: [{ date: '2022-11-13', amount: 5 }],
},
{
type: 'template',
group: [
{ date: '2022-11-17', amount: 4 },
{ date: '2022-11-12', amount: 1 },
],
},
]
Request
Query Parameters
raw string
Possible values: [true
, false
]
You can also retrieve raw statistics data grouped by type. Pass the parameter raw as true.
default - false
Responses
- 200
Loading...