View raw JSON
{
"type": "object",
"required": [
"body"
],
"properties": {
"body": {
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"required": [
"numberId",
"connection"
],
"~standard": {
"vendor": "zod",
"version": 1,
"jsonSchema": {}
},
"properties": {
"numberId": {
"type": "string",
"minLength": 1,
"description": "The id of a phone number YOU OWN."
},
"connection": {
"type": "object",
"properties": {
"llm": {
"type": "object",
"required": [
"model"
],
"properties": {
"model": {
"type": "string",
"minLength": 1,
"description": "Managed LLM (e.g. \"openai/gpt-4o\")."
}
},
"description": "The model the hosted assistant runs.",
"additionalProperties": false
},
"tts": {
"type": "object",
"required": [
"voiceId"
],
"properties": {
"voiceId": {
"type": "string",
"minLength": 1,
"description": "TTS voice — an `id` from /list-voices."
}
},
"description": "Text-to-speech voice selection.",
"additionalProperties": false
},
"name": {
"type": "string",
"maxLength": 120,
"minLength": 1,
"description": "Human-readable persona name (1–120 characters)."
},
"language": {
"type": "string",
"maxLength": 35,
"minLength": 2,
"description": "BCP-47 language tag (e.g. \"en\", \"es\") — see /list-languages."
},
"disclosure": {
"type": "string",
"maxLength": 1000,
"description": "The AI/TCPA notice spoken first when compliance is on. Leave empty and a standard org-named default is used."
},
"callControl": {
"type": "object",
"properties": {
"endCall": {
"type": "boolean",
"description": "Allow the assistant to hang up the call (default on)."
},
"sendDtmf": {
"type": "boolean",
"description": "Allow the assistant to press keypad digits, e.g. to navigate an IVR (default on)."
}
},
"description": "Which live-call actions the assistant may take (signaling only).",
"additionalProperties": false
},
"instructions": {
"type": "string",
"maxLength": 10000,
"minLength": 1,
"description": "System prompt for the number's AI persona — how it speaks and what it does on calls. Put any opening line here."
},
"smsAutoReply": {
"type": "boolean",
"description": "Auto-answer inbound SMS with the assistant (default off)."
},
"complianceEnabled": {
"type": "boolean",
"description": "When true (the default), the disclosure is spoken as the line's first, uninterruptible utterance and the do-not-message tool is exposed."
}
},
"additionalProperties": false
}
},
"additionalProperties": false
}
},
"additionalProperties": false
}