POST /v1/agents
Creates a new AI agent. The agent immediately becomes available to attach to phone numbers and use for outbound calls.Documentation Index
Fetch the complete documentation index at: https://docs.nixflex.com/llms.txt
Use this file to discover all available pages before exploring further.
| Field | Type | Required | Default | Notes |
|---|---|---|---|---|
name | string | Yes | — | Display name (max 100 chars) |
system_prompt | string | Yes | — | Claude’s instructions (max ~10k chars) |
welcome_message | string | No | generic | First line spoken on inbound calls |
voice_id | string | No | "Dennis" | Inworld TTS voice |
language | string | No | "en" | Default language code |
response_length | enum | No | "medium" | short, medium, long |
interruption_sensitivity | enum | No | "medium" | low, medium, high |
max_call_duration_seconds | int | No | 300 | Hard cap on call length |
silence_hangup_seconds | int | No | 30 | Hang up if caller silent this long |
record_call | bool | No | true | Save call audio |
webhook_url | string | No | null | Where to POST post-call data |
transfer_number | string | No | null | Default destination for [TRANSFER:] |
post_call_sms_template | string | No | null | Auto-SMS after every call |
voicemail_message | string | No | null | If set, agent leaves this on voicemail |
enable_sms_reply | bool | No | true | Auto-reply to inbound SMS |
extraction_schema | object | No | null | Custom data to extract post-call |
functions | array | No | [] | Custom function definitions |
201 Created:
agent_id — you’ll use it for every subsequent operation.
| Code | Cause |
|---|---|
prompt_too_long | system_prompt exceeds 10,000 characters |
invalid_voice_id | Voice not in supported list |
invalid_language | Language code not supported |
invalid_request | Missing required field or bad format |