Reeve
DevelopersAPI ReferenceVoice

Create Agent Endpoint

Provision a voice agent (Telnyx assistant) and persist it.

POST
/api/voice/v1/agents

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"    }  ]}