GET
/
agents
/
{agent_id}
/
metrics
curl --request GET \
  --url https://api.contextual.ai/v1/agents/{agent_id}/metrics \
  --header 'Authorization: Bearer <token>'
{
  "messages": [],
  "total_count": 123,
  "next_offset": 123
}

Authorizations

Authorization
string
header
required

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

Path Parameters

agent_id
string
required

Agent ID of the agent to get metrics for

Query Parameters

conversation_ids
string[]

Filter messages by conversation ids.

user_emails
string[]

Filter messages by users.

created_after
string

Filters messages that are created after the specified timestamp.

created_before
string

Filters messages that are created before specified timestamp.

limit
integer
default:100

Limits the number of messages to return.

Required range: x <= 1000
offset
integer
default:0

Offset for pagination.

Response

200
application/json
Successful Response
total_count
integer
required

Total number of messages.

messages
any[]

List of messages.

next_offset
integer

Offset for the next page. If there are no more messages to get, then this is not set.