Get Message Stats
curl --request GET \
--url https://api.example.com/api/v1/messages/stats/summaryimport requests
url = "https://api.example.com/api/v1/messages/stats/summary"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.example.com/api/v1/messages/stats/summary', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"total": 123,
"by_status": {},
"by_direction": {},
"outbound_by_status": {},
"last_7_days": 123,
"last_30_days": 123
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"input": "<unknown>",
"ctx": {}
}
]
}messages
Get Message Stats
Get message statistics for the organization.
Merges live counts with snapshot counts from retention cleanups, so totals don’t drop when old messages are deleted.
GET
/
api
/
v1
/
messages
/
stats
/
summary
Get Message Stats
curl --request GET \
--url https://api.example.com/api/v1/messages/stats/summaryimport requests
url = "https://api.example.com/api/v1/messages/stats/summary"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.example.com/api/v1/messages/stats/summary', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"total": 123,
"by_status": {},
"by_direction": {},
"outbound_by_status": {},
"last_7_days": 123,
"last_30_days": 123
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"input": "<unknown>",
"ctx": {}
}
]
}Headers
Response
Successful Response