Start all of an agent's paused eval runs
curl --request POST \
--url https://voice-api.onclarity.com/v1/projects/{projectId}/agents/{agentId}/run-all-evals \
--header 'Authorization: Bearer <token>'import requests
url = "https://voice-api.onclarity.com/v1/projects/{projectId}/agents/{agentId}/run-all-evals"
headers = {"Authorization": "Bearer <token>"}
response = requests.post(url, headers=headers)
print(response.text)const options = {method: 'POST', headers: {Authorization: 'Bearer <token>'}};
fetch('https://voice-api.onclarity.com/v1/projects/{projectId}/agents/{agentId}/run-all-evals', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"activated": 2,
"skipped": [
{
"id": "sub_01J8",
"name": "Old regression",
"hangup_reasons": [
"trigger_failed"
]
}
]
}{
"error": "Agent type 'supervisor' is no longer supported",
"code": "AGENT_TYPE_NOT_SUPPORTED",
"agent_type": "supervisor"
}{
"error": "Invalid or revoked token"
}{
"error": "<string>",
"code": "<string>"
}{
"error": "Agent not found in this project"
}{
"error": "agent type assist cannot take calls: an assist agent listens to a human-operated call and never speaks",
"code": "AGENT_TYPE_NOT_DISPATCHABLE",
"agent_type": "assist",
"agent_id": "agent_456"
}Eval submissions
Start all of an agent's paused eval runs
Starts every paused eval run of this agent at once. Runs that could not place any call when resumed are left paused and listed in skipped with the reasons their calls failed.
POST
/
v1
/
projects
/
{projectId}
/
agents
/
{agentId}
/
run-all-evals
Start all of an agent's paused eval runs
curl --request POST \
--url https://voice-api.onclarity.com/v1/projects/{projectId}/agents/{agentId}/run-all-evals \
--header 'Authorization: Bearer <token>'import requests
url = "https://voice-api.onclarity.com/v1/projects/{projectId}/agents/{agentId}/run-all-evals"
headers = {"Authorization": "Bearer <token>"}
response = requests.post(url, headers=headers)
print(response.text)const options = {method: 'POST', headers: {Authorization: 'Bearer <token>'}};
fetch('https://voice-api.onclarity.com/v1/projects/{projectId}/agents/{agentId}/run-all-evals', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"activated": 2,
"skipped": [
{
"id": "sub_01J8",
"name": "Old regression",
"hangup_reasons": [
"trigger_failed"
]
}
]
}{
"error": "Agent type 'supervisor' is no longer supported",
"code": "AGENT_TYPE_NOT_SUPPORTED",
"agent_type": "supervisor"
}{
"error": "Invalid or revoked token"
}{
"error": "<string>",
"code": "<string>"
}{
"error": "Agent not found in this project"
}{
"error": "agent type assist cannot take calls: an assist agent listens to a human-operated call and never speaks",
"code": "AGENT_TYPE_NOT_DISPATCHABLE",
"agent_type": "assist",
"agent_id": "agent_456"
}Authorizations
Your organization API key (it starts with anek_org_). The same key works on the Voice API and the Support API. See Authentication.