Retrieve the usage statistics of an agent.
cURL
curl --request GET \ --url https://api.play.ai/api/v1/agent-stats/{agentId} \ --header 'Authorization: Bearer <token>' \ --header 'X-USER-ID: <api-key>'
{ "id": "f0gZrOKBKL7veJ6o1M", "numberOfConversations": 121, "numberOfPhoneConversations": 0, "numberOfSecondsTalked": 2342 }
Your secret API key from PlayAI, formatted as Bearer YOUR_SECRET_API_KEY.
Bearer YOUR_SECRET_API_KEY
Your unique user ID from PlayAI.
application/json
The agent's ID.
"f0gZrOKBKL7veJ6o1M"
Agent statistics response.
The response is of type object.
object
Was this page helpful?