Agent Builder
Get agent analytics
Returns credit usage, conversation counts, and conversations breakdown by channel for a specific agent.
get/public/v1/agents/{agentId}/analytics
Path parameters
agentIdstring required
Example:uuid-xxxx-xxxx
Query parameters
startDatestring nullable
Example:2024-01-01
endDatestring nullable
Example:2024-01-01
Response
Agent analytics data
Example response
{
"summary": {
"totalCredits": 500.25,
"totalConversations": 150
},
"creditsByDate": [
{
"date": "2024-01-01",
"totalCredits": 25.5,
"conversationCount": 10
}
],
"conversationsByChannel": [
{
"date": "2024-01-15",
"channel": "WHATSAPP",
"count": 12
}
]
}