List judge prompt templates
curl --request GET \
--url https://voice-api.onclarity.com/v1/projects/{projectId}/eval-judges/templates \
--header 'Authorization: Bearer <token>'import requests
url = "https://voice-api.onclarity.com/v1/projects/{projectId}/eval-judges/templates"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://voice-api.onclarity.com/v1/projects/{projectId}/eval-judges/templates', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"presets": [
{
"name": "full",
"description": "Agent type, full instructions, all tools, and the transcript — the richest input. Recommended.",
"template": "…{name}…{when_relevant}…{success_criteria}…{failure_criteria}…{conversation_text}…",
"placeholders": [
"name",
"when_relevant",
"success_criteria",
"failure_criteria",
"conversation_text"
],
"isDefault": true
}
],
"default": "full"
}{
"error": "Invalid or revoked token"
}{
"error": "<string>",
"code": "<string>"
}Eval judges
List judge prompt templates
Returns the platform’s ready-made judge prompt templates, the recommended one first. Use one as the prompt_template of a new judge.
GET
/
v1
/
projects
/
{projectId}
/
eval-judges
/
templates
List judge prompt templates
curl --request GET \
--url https://voice-api.onclarity.com/v1/projects/{projectId}/eval-judges/templates \
--header 'Authorization: Bearer <token>'import requests
url = "https://voice-api.onclarity.com/v1/projects/{projectId}/eval-judges/templates"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://voice-api.onclarity.com/v1/projects/{projectId}/eval-judges/templates', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"presets": [
{
"name": "full",
"description": "Agent type, full instructions, all tools, and the transcript — the richest input. Recommended.",
"template": "…{name}…{when_relevant}…{success_criteria}…{failure_criteria}…{conversation_text}…",
"placeholders": [
"name",
"when_relevant",
"success_criteria",
"failure_criteria",
"conversation_text"
],
"isDefault": true
}
],
"default": "full"
}{
"error": "Invalid or revoked token"
}{
"error": "<string>",
"code": "<string>"
}Authorizations
Your organization API key (it starts with anek_org_). The same key works on the Voice API and the Support API. See Authentication.
Path Parameters
Project id