Create Agent Endpoint
Provision a voice agent (Telnyx assistant) and persist it.
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
curl -X POST "https://example.com/api/voice/v1/agents" \ -H "Content-Type: application/json" \ -d '{ "instructions": "string" }'{ "created_at": "2019-08-24T14:15:22Z", "dispatch_url": "string", "host_app_id": "string", "id": "string", "instructions": "string", "name": "string", "org_id": "string", "phone_number": "string", "provider": "string", "provider_assistant_id": "string", "status": "string", "updated_at": "2019-08-24T14:15:22Z"}{ "detail": [ { "ctx": {}, "input": null, "loc": [ "string" ], "msg": "string", "type": "string" } ]}Context Webhook Endpoint
Telnyx dynamic_variables_webhook_url — called at CONVERSATION START. Returns per-call context (caller identity + live availability + facility info) wrapped under a top-level `dynamic_variables` object (Telnyx requires this), so the fast model skips a mid-call tool round-trip. Task 13 live-pin: confirm exact dynamic-variables webhook request shape (assistant_id + caller number field paths). We parse defensively across the shapes Telnyx may send and pull the assistant id + caller number.
Create Call Endpoint
Place an outbound call from a provisioned agent and bind the SID.