Skip to main content
GET
/
agents
/
{agent_id}
/
stats
Get Agent Statistics
curl --request GET \
  --url https://api.example.com/agents/{agent_id}/stats \
  --header 'Authorization: Bearer <token>'
{
  "agent_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "total_calls": 123,
  "total_sessions": 123,
  "avg_call_duration": 123,
  "avg_sentiment_score": 123,
  "success_rate": 123,
  "last_call_at": "<string>",
  "cost_this_month": 123,
  "calls_today": 123
}

Documentation Index

Fetch the complete documentation index at: https://docs.mrassistant.ai/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

agent_id
string<uuid>
required

Query Parameters

period_days
integer
default:30

Period in days

Required range: 1 <= x <= 365

Response

Successful Response

Agent statistics and performance metrics.

agent_id
string<uuid>
required
total_calls
integer
required
total_sessions
integer
required
avg_call_duration
number | null
required
avg_sentiment_score
number | null
required
success_rate
number
required
last_call_at
string | null
required
cost_this_month
number
required
calls_today
integer
required