/api/v1/analytics/periodic-message-volume-by-role
const url = 'https://api.endless.zaia.app/api/v1/analytics/periodic-message-volume-by-role?granularity=hourly';const options = {method: 'GET'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url 'https://api.endless.zaia.app/api/v1/analytics/periodic-message-volume-by-role?granularity=hourly'Retrieves periodic chat message volume split by contact, agent and support roles, plus distinct contacts per bucket.
Parameters
Seção intitulada “Parameters”Query Parameters
Seção intitulada “Query Parameters”The granularity of the analytics period.
The granularity of the analytics period.
The end date of the analytics period.
The end date of the analytics period.
The start date of the analytics period.
The start date of the analytics period.
A UUID v4 string that identifies an entity.
A UUID v4 string that identifies an entity.
Responses
Seção intitulada “Responses”Periodic message volume by role retrieved successfully.
object
Agent messages in the period bucket.
Support messages in the period bucket.
Contact, agent and support messages in the period bucket.
Contact messages in the period bucket.
Distinct contacts who sent a message in the period bucket.
Examplegenerated
[ { "assistant": 1, "periodEnd": "2026-04-15T12:00:00Z", "periodStart": "2026-04-15T12:00:00Z", "support": 1, "total": 1, "user": 1, "users": 1 }]Unauthorized.
The description of a known exception.
object
The error code.
The error call-to-action.
object
The error feedback.
object
The error message.
The error name.
Example
{ "cta": { "type": "support-contact" }}