We would like to start measuring our shared inbox usage compliance, and we want to get insights from an analytics standpoint (volume for instance). We want to look into the ratio of messages one sends (either through Shared Inboxes or Individual Inboxes).
Page 1 / 1
- Using our analytics/reports endpoint, you are able to get the total number of messages sent by a teammate from a given shared inbox. This would look like the following:
POST https://api2.frontapp.com/analytics/reports
{
"filters": {
"channel_ids":
"cha_12345"
],
"teammate_ids":
"tea_xyz"
]
},
"metrics":
"num_messages_sent"
]
"end": 1651103999,
"start": 1648771200
} - Your request would also look the same when pulling the total number sent from a private inbox, simply replacing the channel IDs as required.
- You should expect to see the metric provided within the response payload in the following format:
{
"_links": {
"self": "https://domain.api.frontapp.com/analytics/reports/714912373297197"
},
"status": "done",
"progress": 100,
"metrics": :
{
"id": "num_messages_sent",
"type": "number",
"value": 1
}
]
}
You can then use the 2 values to create your ratio.
--Joel
Reply
Login to the community
No account yet? Create an account
Use your Front credentials
Log in with Frontor
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.