Save an evaluation case for an agent
POST /voice/agents/{agent_id}/test-cases
SPENDS NOTHING. Saves a named case: the user turn, its context, and the assertion the agent’s resolved behaviour must satisfy.
created_by defaults to the key’s identity, since a server-to-server
call carries no request-context user for voice to fall back on.
Authorizations
Parameters
Path Parameters
Voice agent id.
Voice agent id.
Header Parameters
Request Body required
A saved evaluation case: the user turn under test and what must hold.
llm_judge may be SAVED but is skipped by dry runs - a judge needs a real
completion, and a dry run never calls a model.
object
Selects the per-channel instructions.
The user turn under test.
Responses
201
Successful Response
object
One voice object - a collection, an agent, a route, a chat.
Open-shaped: voice adds fields to these bodies on its own release cadence and a dropped-or-added key must not be a 500 in this service.
object
object
Whether there are more pages
Items per page
Current page number (1-indexed)
Total number of items
422
Validation Error