Calls
Reevaluating Calls
Learn how to reevaluate metrics for existing calls
Reevaluate Calls API
Trigger a reevaluation of metrics for specified calls
API Endpoint
Method | Endpoint |
---|---|
POST | https://new-prod.vocera.ai/observability/v1/call-logs-external/rerun_evaluation/ |
Authentication
Include your API key in the request headers:
Header | Description |
---|---|
X-VOCERA-API-KEY | Your API key obtained from the dashboard |
Request Body
Parameter | Type | Required | Description |
---|---|---|---|
call_logs | array|string|integer | Yes | Array of call log IDs to run OR "all" to run all OR number to run first N calls |
agent_id | integer | Yes* | Unique identifier of the agent |
assistant_id | string | Yes* | The assistant ID associated with agent |
* Required only when call_logs
is “all” OR is number of first N calls. Only either of agent_id
or assistant_id
is required
Example Requests
Response Format
The API returns an array of call objects. Please note the evaluation is run in background.
Response Fields
Field | Type | Description |
---|---|---|
id | integer | The call log ID |
timestamp | string | ISO 8601 timestamp of when the call occurred |
duration | string | Duration of the call in MM:SS format |
success | boolean | Whether the call was successful (null if evaluation pending) |
call_ended_reason | string | Reason for call termination |
customer_number | string | Customer’s phone number |
agent | integer | ID of the agent handling the call |
call_id | string | External reference ID for the call |