Get Metrics
Changed onReturns usage and user-provided feedback data. This information can be used for data-driven improvements and optimization.
Request
- Base URLhttps://api.contextual.ai/v1
- URLhttps://api.contextual.ai/v1/agents/{agent_id}/metrics
- AuthHTTP bearer
Path parameters
Agent ID of the agent to get metrics for
Query parameters
Filter messages by conversation ids.
Filter messages by users.
Filters messages that are created after the specified timestamp.
Filters messages that are created before specified timestamp. If both created_after and created_before are not provided, then created_before will be set to the current time and created_after will be set to the created_before - 2 days. If only created_after is provided, then created_before will be set to the created_after + 2 days. If only created_before is provided, then created_after will be set to the created_before - 2 days. If both created_after and created_before are provided, and the difference between them is more than 2 days, then created_after will be set to the created_before - 2 days.
Limits the number of messages to return.
Offset for pagination.
Response
Successful Response
Changes
- info
added the new optional
queryrequest parameterconversation_ids - info
added the new optional
queryrequest parameteruser_emails
- info
- info
api operation id
get_metrics_for_an_agent_agents__agent_id__metrics_getremoved and replaced withGet_Metrics_agents__agent_id__metrics_get
- info