Create a versioned customer-authored receptionist regression case
const url = 'https://api.vocapable.com/v1/agents/example/receptionist-regression-cases';const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"name":"example","caller_utterance":"example","expected_facts":["example"],"prohibited_claims":["example"],"routing":{"branch":"open","step_type":"ai","location_ref":"example"},"intended_action":"take_message","dry_run_action":{"mode":"dry_run","tool":"take_message","expected_effect":"message_recorded"}}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://api.vocapable.com/v1/agents/example/receptionist-regression-cases \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "name": "example", "caller_utterance": "example", "expected_facts": [ "example" ], "prohibited_claims": [ "example" ], "routing": { "branch": "open", "step_type": "ai", "location_ref": "example" }, "intended_action": "take_message", "dry_run_action": { "mode": "dry_run", "tool": "take_message", "expected_effect": "message_recorded" } }'Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”Request Bodyrequired
Section titled “Request Bodyrequired”Create a stable case identity and immutable revision 1.
object
The answering-policy branch and terminal step a case expects.
This does not carry a phone number, transfer destination, or policy document. The release runner resolves these small assertions against the pinned line policy, keeping a customer test case from becoming an alternate routing control plane.
One exact native action the runner must observe through its dry-run facade.
object
Responses
Section titled “Responses”Successful Response
The current immutable revision selected by a stable customer case resource.
object
The answering-policy branch and terminal step a case expects.
This does not carry a phone number, transfer destination, or policy document. The release runner resolves these small assertions against the pinned line policy, keeping a customer test case from becoming an alternate routing control plane.
One exact native action the runner must observe through its dry-run facade.
object
Example
{ "routing": { "branch": "open", "step_type": "ai" }, "intended_action": "take_message", "dry_run_action": { "mode": "dry_run", "tool": "take_message", "expected_effect": "message_recorded" }, "status": "active"}Validation Error
object
object
object
Examplegenerated
{ "detail": [ { "loc": [ "example" ], "msg": "example", "type": "example", "input": "example", "ctx": {} } ]}