On this page
Get the draft
Read the agent’s open draft and current revision. Use that revision when editing or validating it.
Operation ID: drafts.get.
Request
GET /api/v1/agents/{agent_id}/draft
- TypeScript SDK:
client.drafts.get(path arguments usepath). - MCP tool:
sdk_client_callwithoperationId: "drafts.get"(path arguments useinput.path). Legacy alias:drafts_get. Connect to your authenticated/mcpendpoint with an API key for the same environment. - Minimum API key role: viewer.
- Idempotency: No idempotency header required.
Read resource IDs from earlier responses and use a key for the same environment.
Request example
Set each path variable to an ID returned by an earlier API request.
Set CUMULUS_BASE_URL to your workspace API URL and CUMULUS_API_KEY to a key for that environment. Example values are synthetic.
cURL
curl --fail-with-body -sS "${CUMULUS_BASE_URL%/}/api/v1/agents/${AGENT_ID}/draft" \
-H "Authorization: Bearer $CUMULUS_API_KEY"
TypeScript
import { Cumulus } from "@cumulus/sdk";
const baseUrl = process.env.CUMULUS_BASE_URL;
const apiKey = process.env.CUMULUS_API_KEY;
if (!baseUrl || !apiKey) throw new Error("Set CUMULUS_BASE_URL and CUMULUS_API_KEY");
const client = new Cumulus({ baseUrl, apiKey });
const response = await client.drafts.get({
"path": {
"agent_id": "<agent_id>"
}
});
Input schema
Path, query and header parameters
agent_id
path parameter · Required.
Type: string. minLength: 1. maxLength: 256. pattern: ^[A-Za-z0-9][A-Za-z0-9_.:-]*$.
JSON request body
This operation has no JSON request body.
Complete OpenAPI schema
{
"parameters": [
{
"name": "agent_id",
"in": "path",
"required": true,
"schema": {
"type": "string",
"minLength": 1,
"maxLength": 256,
"pattern": "^[A-Za-z0-9][A-Za-z0-9_.:-]*$"
}
}
],
"requestBody": null
}
Responses
HTTP 200
Read the open draft
application/json
| Field | Type or values | Required | Description and limits |
|---|---|---|---|
state | object | Required | — |
state.agent | object | Required | — |
state.agent.tenant_id | string (uuid) | Required | pattern: ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$. |
state.agent.kind | "agent" | Required | — |
state.agent.id | string | Required | minLength: 1. maxLength: 256. pattern: ^[A-Za-z0-9][A-Za-z0-9_.:-]*$. |
state.draft_id | string (uuid) | Required | Identifier of the editable draft. Read it from the agent or draft response. pattern: ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$. |
state.revision | integer | Required | Greater than 0. At most 2147483647. |
state.base_version | integer or null | Required | At least 0. At most 2147483647. |
state.published_revision | integer or null | Required | Greater than 0. At most 2147483647. |
state.updated_at | string (date-time) | Required | pattern: ^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d:[0-5]\d(?:.\d+)?(?:Z))$. |
name | string | Required | minLength: 1. maxLength: 256. |
channels | array of "cloud" · "phone" | Required | minItems: 1. |
languages | array of "en" · "es" | Required | minItems: 1. |
flow | object | Required | — |
flow.schemaVersion | 2 | Required | — |
flow.id | string | Required | minLength: 1. maxLength: 256. |
flow.version | integer | Required | At least 0. At most 2147483647. |
flow.startNodeId | string | Required | minLength: 1. maxLength: 256. |
flow.startSpeaker | "agent" · "user" | Required | — |
flow.globalPrompt | string | Required | — |
flow.nodes | array of object | Required | — |
flow.nodes[].id | string | Required | minLength: 1. maxLength: 256. |
flow.nodes[].kind | "conversation" · "end" · "branch" · "transfer_call" · "function" · "extract_dynamic_variables" · "verify_identity" · "tokenize_private" · "component" | Required | — |
flow.nodes[].edges | array of object | Required | — |
flow.nodes[].edges[].id | string | Optional | minLength: 1. maxLength: 256. |
flow.nodes[].edges[].destinationNodeId | string | Optional | minLength: 1. maxLength: 256. |
flow.nodes[].edges[].slot | "edges" · "else_edge" · "skip_response_edge" · "always_edge" · "edge" · "success_edge" | Required | — |
flow.nodes[].edges[].condition | object | Required | — |
| flow.nodes[].edges[].condition · variant 1 | object | — | Fields for this schema branch. |
flow.nodes[].edges[].condition.type | "always" | Required | — |
| flow.nodes[].edges[].condition · variant 2 | object | — | Fields for this schema branch. |
flow.nodes[].edges[].condition.type | "conversation_language" | Required | — |
flow.nodes[].edges[].condition.language | "en" · "es" | Required | — |
| flow.nodes[].edges[].condition · variant 3 | object | — | Fields for this schema branch. |
flow.nodes[].edges[].condition.type | "prompt" | Required | — |
flow.nodes[].edges[].condition.prompt | string | Required | — |
| flow.nodes[].edges[].condition · variant 4 | object | — | Fields for this schema branch. |
flow.nodes[].edges[].condition.type | "equation" | Required | — |
flow.nodes[].edges[].condition.operator | "&&" · "||" | Required | — |
flow.nodes[].edges[].condition.equations | array of object | Required | minItems: 1. |
flow.nodes[].edges[].condition.equations[].left | string | Required | — |
flow.nodes[].edges[].condition.equations[].operator | "==" · "!=" · ">" · "<" · ">=" · "<=" · "contains" · "is_set" · "is_not_set" | Required | — |
flow.nodes[].edges[].condition.equations[].right | string | Required | — |
flow.nodes[].edges[].compliance | object | Optional | — |
flow.nodes[].edges[].compliance.sets | array of "rpc_confirmed" | Required | minItems: 1. |
flow.nodes[].name | string | Optional | — |
flow.nodes[].instruction | object | Optional | — |
flow.nodes[].instruction.type | "prompt" · "static_text" | Required | — |
flow.nodes[].instruction.text | string | Required | — |
flow.nodes[].startSpeaker | "agent" · "user" | Optional | — |
flow.nodes[].interruptionSensitivity | number | Optional | At least 0. At most 1. |
flow.nodes[].voiceSpeed | number | Optional | At least 0.5. At most 2. |
flow.nodes[].languageLocked | boolean | Optional | — |
flow.nodes[].globalNodeSetting | object | Optional | — |
flow.nodes[].globalNodeSetting.condition | string | Required | — |
flow.nodes[].globalNodeSetting.coolDown | number | Optional | At least 0. |
flow.nodes[].toolId | string | Optional | minLength: 1. maxLength: 256. |
flow.nodes[].waitForResult | boolean | Optional | — |
flow.nodes[].speakDuringExecution | boolean | Optional | — |
flow.nodes[].executionMessage | object | Optional | — |
flow.nodes[].executionMessage.type | "prompt" · "static_text" | Required | — |
flow.nodes[].executionMessage.text | string | Required | — |
flow.nodes[].transfer | object | Optional | — |
flow.nodes[].transfer.destination | object | Required | — |
| flow.nodes[].transfer.destination · variant 1 | object | — | Fields for this schema branch. |
flow.nodes[].transfer.destination.type | "predefined" | Required | — |
flow.nodes[].transfer.destination.number | string | Required | — |
| flow.nodes[].transfer.destination · variant 2 | object | — | Fields for this schema branch. |
flow.nodes[].transfer.destination.type | "inferred" | Required | — |
flow.nodes[].transfer.destination.prompt | string | Required | — |
flow.nodes[].transfer.option | object | Required | — |
flow.nodes[].transfer.option.type | "cold_transfer" · "warm_transfer" | Required | — |
flow.nodes[].transfer.option.showTransfereeAsCaller | boolean | Optional | — |
flow.nodes[].transfer.option.optOutHumanDetection | boolean | Optional | — |
flow.nodes[].transfer.option.enableBridgeAudioCue | boolean | Optional | — |
flow.nodes[].transfer.option.onHoldMusic | string | Optional | — |
flow.nodes[].transfer.option.agentDetectionTimeoutMs | integer | Optional | At least 0. At most 9007199254740991. |
flow.nodes[].transfer.option.agentDetectionPrompt | string | Optional | — |
flow.nodes[].transfer.option.transferMessage | object | Optional | — |
flow.nodes[].transfer.option.transferMessage.type | "prompt" · "static_text" | Required | — |
flow.nodes[].transfer.option.transferMessage.text | string | Required | — |
flow.nodes[].transfer.option.privateHandoffMessage | object | Optional | — |
flow.nodes[].transfer.option.privateHandoffMessage.type | "prompt" · "static_text" | Required | — |
flow.nodes[].transfer.option.privateHandoffMessage.text | string | Required | — |
flow.nodes[].transfer.option.coldTransferMode | string | Optional | — |
flow.nodes[].transfer.ignoreE164Validation | boolean | Required | — |
flow.nodes[].variables | array of object | Optional | — |
flow.nodes[].variables[].name | string | Required | maxLength: 256. |
flow.nodes[].variables[].type | "string" · "number" · "boolean" · "enum" | Required | — |
flow.nodes[].variables[].description | string | Required | — |
flow.nodes[].variables[].choices | array of string | Optional | — |
flow.nodes[].modelChoice | object | Optional | — |
flow.nodes[].modelChoice.model | object | Required | — |
flow.nodes[].modelChoice.model.model_id | string | Required | minLength: 1. pattern: \S. |
flow.nodes[].modelChoice.model.provider | string | Required | minLength: 1. pattern: \S. |
flow.nodes[].modelChoice.model.tier | "frontier" · "cumulus-served" · "customer-gpu" | Required | — |
flow.nodes[].modelChoice.credential | object | Optional | — |
flow.nodes[].modelChoice.credential.id | string | Required | minLength: 1. maxLength: 256. |
flow.nodes[].modelChoice.credential.version | string | Required | minLength: 1. maxLength: 256. |
flow.nodes[].modelChoice.credential.provider | string | Required | minLength: 1. maxLength: 256. |
flow.nodes[].modelChoice.type | "cascading" | Required | — |
flow.nodes[].modelChoice.highPriority | boolean | Required | — |
flow.nodes[].modelChoice.reasoningEffort | "low" · "medium" · "high" | Optional | — |
flow.nodes[].componentId | string | Optional | minLength: 1. maxLength: 256. |
flow.nodes[].verification | object | Optional | — |
flow.nodes[].verification.subjectVariable | string | Required | pattern: ^[A-Za-z_][A-Za-z0-9_]{0,255}$. |
flow.nodes[].verification.fields | array of object | Required | maxItems: 8. |
flow.nodes[].verification.fields[].id | string | Required | pattern: ^[A-Za-z_][A-Za-z0-9_]{0,63}$. |
flow.nodes[].verification.fields[].expectedVariable | string | Required | pattern: ^[A-Za-z_][A-Za-z0-9_]{0,255}$. |
flow.nodes[].verification.fields[].privateAliases | array of string | Optional | maxItems: 16. |
flow.nodes[].verification.fields[].enabledVariable | string | Required | pattern: ^[A-Za-z_][A-Za-z0-9_]{0,255}$. |
flow.nodes[].verification.fields[].format | object | Required | — |
| flow.nodes[].verification.fields[].format · variant 1 | object | — | Fields for this schema branch. |
flow.nodes[].verification.fields[].format.kind | "digits" | Required | — |
flow.nodes[].verification.fields[].format.length | integer | Required | At least 1. At most 32. |
| flow.nodes[].verification.fields[].format · variant 2 | object | — | Fields for this schema branch. |
flow.nodes[].verification.fields[].format.kind | "date_yyyymmdd" | Required | — |
flow.nodes[].verification.fields[].prompt | object | Required | — |
flow.nodes[].verification.fields[].prompt.en | string | Required | — |
flow.nodes[].verification.fields[].prompt.es | string | Optional | — |
flow.nodes[].verification.required | object | Required | — |
| flow.nodes[].verification.required · variant 1 | object | — | Fields for this schema branch. |
flow.nodes[].verification.required.kind | "fixed" | Required | — |
flow.nodes[].verification.required.count | integer | Required | At least 1. At most 8. |
| flow.nodes[].verification.required · variant 2 | object | — | Fields for this schema branch. |
flow.nodes[].verification.required.kind | "variable" | Required | — |
flow.nodes[].verification.required.name | string | Required | pattern: ^[A-Za-z_][A-Za-z0-9_]{0,255}$. |
flow.nodes[].verification.timeoutMs | integer | Required | At least 1000. At most 180000. |
flow.nodes[].verification.lookup | object | Optional | — |
flow.nodes[].verification.lookup.toolId | string | Required | minLength: 1. |
flow.nodes[].verification.lookup.fieldId | string | Required | pattern: ^[A-Za-z_][A-Za-z0-9_]{0,63}$. |
flow.nodes[].verification.lookup.parameter | string | Required | pattern: ^[A-Za-z_][A-Za-z0-9_]{0,255}$. |
flow.nodes[].verification.lookup.arguments | array of object | Required | maxItems: 64. |
flow.nodes[].verification.lookup.arguments[].parameter | string | Required | pattern: ^[A-Za-z_][A-Za-z0-9_]{0,255}$. |
flow.nodes[].verification.lookup.arguments[].variable | string | Required | pattern: ^[A-Za-z_][A-Za-z0-9_]{0,255}$. |
flow.nodes[].tokenization | object | Optional | — |
flow.nodes[].tokenization.toolId | string | Required | maxLength: 256. |
flow.nodes[].tokenization.subjectVariable | string | Required | pattern: ^(?!(?:proto|constructor|prototype)$)[A-Za-z_][A-Za-z0-9_]{0,255}$. |
flow.nodes[].tokenization.consentPrompt | object | Required | — |
flow.nodes[].tokenization.consentPrompt.en | string | Required | maxLength: 4096. |
flow.nodes[].tokenization.consentPrompt.es | string | Optional | maxLength: 4096. |
flow.nodes[].tokenization.timeoutMs | integer | Required | At least 1000. At most 180000. |
flow.nodes[].tokenization.fields | array of object | Required | maxItems: 7. |
flow.nodes[].tokenization.fields[].id | string | Required | pattern: ^[A-Za-z_][A-Za-z0-9_]{0,63}$. |
flow.nodes[].tokenization.fields[].parameter | string | Required | maxLength: 256. pattern: ^(?!(?:proto|constructor|prototype)(?:.|$))[A-Za-z_][A-Za-z0-9_](?:.(?!(?:proto|constructor|prototype)(?:.|$))[A-Za-z_][A-Za-z0-9_]){0,7}$. |
flow.nodes[].tokenization.fields[].minDigits | integer | Required | At least 1. At most 32. |
flow.nodes[].tokenization.fields[].maxDigits | integer | Required | At least 1. At most 32. |
flow.nodes[].tokenization.fields[].encoding | "string" · "integer" | Required | — |
flow.nodes[].tokenization.fields[].minimum | integer | Optional | At least 0. At most 999999999. |
flow.nodes[].tokenization.fields[].maximum | integer | Optional | At least 0. At most 999999999. |
flow.nodes[].tokenization.fields[].prompt | object | Required | — |
flow.nodes[].tokenization.fields[].prompt.en | string | Required | maxLength: 4096. |
flow.nodes[].tokenization.fields[].prompt.es | string | Optional | maxLength: 4096. |
flow.nodes[].tokenization.arguments | array of object | Required | maxItems: 64. |
flow.nodes[].tokenization.arguments[].parameter | string | Required | maxLength: 256. pattern: ^(?!(?:proto|constructor|prototype)(?:.|$))[A-Za-z_][A-Za-z0-9_](?:.(?!(?:proto|constructor|prototype)(?:.|$))[A-Za-z_][A-Za-z0-9_]){0,7}$. |
flow.nodes[].tokenization.arguments[].source | object | Required | — |
| flow.nodes[].tokenization.arguments[].source · variant 1 | object | — | Fields for this schema branch. |
flow.nodes[].tokenization.arguments[].source.kind | "variable" | Required | — |
flow.nodes[].tokenization.arguments[].source.name | string | Required | pattern: ^(?!(?:proto|constructor|prototype)$)[A-Za-z_][A-Za-z0-9_]{0,255}$. |
| flow.nodes[].tokenization.arguments[].source · variant 2 | object | — | Fields for this schema branch. |
flow.nodes[].tokenization.arguments[].source.kind | "constant" | Required | — |
flow.nodes[].tokenization.arguments[].source.value | string or number or boolean or null | Required | — |
| flow.nodes[].tokenization.arguments[].source.value · variant 1 | string | — | Fields for this schema branch. |
| flow.nodes[].tokenization.arguments[].source.value · variant 2 | number | — | Fields for this schema branch. |
| flow.nodes[].tokenization.arguments[].source.value · variant 3 | boolean | — | Fields for this schema branch. |
flow.nodes[].tokenization.tokenIdPath | string | Required | maxLength: 256. pattern: ^(?!(?:proto|constructor|prototype)(?:.|$))[A-Za-z_][A-Za-z0-9_](?:.(?!(?:proto|constructor|prototype)(?:.|$))[A-Za-z_][A-Za-z0-9_]){0,7}$. |
flow.nodes[].tokenization.tokenVariable | string | Required | pattern: ^(?!(?:proto|constructor|prototype)$)[A-Za-z_][A-Za-z0-9_]{0,255}$. |
flow.nodes[].tokenization.last4Variable | string | Required | pattern: ^(?!(?:proto|constructor|prototype)$)[A-Za-z_][A-Za-z0-9_]{0,255}$. |
flow.nodes[].tokenization.last4Field | string | Required | maxLength: 64. |
flow.tools | array of object | Required | — |
flow.tools[].id | string | Required | minLength: 1. maxLength: 256. |
flow.tools[].type | "custom" | Required | — |
flow.tools[].name | string | Required | minLength: 1. maxLength: 256. |
flow.tools[].description | string | Required | — |
flow.tools[].method | "GET" · "POST" · "PUT" · "PATCH" · "DELETE" | Required | — |
flow.tools[].responseVariables | object | Required | — |
flow.tools[].responseVariables.* | string | Optional | Additional keys are allowed. |
flow.tools[].responseVariablePolicy | "required" · "replace_available" | Optional | — |
flow.tools[].speakAfterExecution | boolean | Optional | — |
flow.components | array of object | Required | — |
flow.components[].id | string | Required | minLength: 1. maxLength: 256. |
flow.components[].startNodeId | string | Required | minLength: 1. maxLength: 256. |
flow.components[].nodes | array of object | Required | — |
flow.components[].nodes[].id | string | Required | minLength: 1. maxLength: 256. |
flow.components[].nodes[].kind | "conversation" · "end" · "branch" · "transfer_call" · "function" · "extract_dynamic_variables" · "verify_identity" · "tokenize_private" · "component" | Required | — |
flow.components[].nodes[].edges | array of object | Required | — |
flow.components[].nodes[].edges[].id | string | Optional | minLength: 1. maxLength: 256. |
flow.components[].nodes[].edges[].destinationNodeId | string | Optional | minLength: 1. maxLength: 256. |
flow.components[].nodes[].edges[].slot | "edges" · "else_edge" · "skip_response_edge" · "always_edge" · "edge" · "success_edge" | Required | — |
flow.components[].nodes[].edges[].condition | object | Required | — |
| flow.components[].nodes[].edges[].condition · variant 1 | object | — | Fields for this schema branch. |
flow.components[].nodes[].edges[].condition.type | "always" | Required | — |
| flow.components[].nodes[].edges[].condition · variant 2 | object | — | Fields for this schema branch. |
flow.components[].nodes[].edges[].condition.type | "conversation_language" | Required | — |
flow.components[].nodes[].edges[].condition.language | "en" · "es" | Required | — |
| flow.components[].nodes[].edges[].condition · variant 3 | object | — | Fields for this schema branch. |
flow.components[].nodes[].edges[].condition.type | "prompt" | Required | — |
flow.components[].nodes[].edges[].condition.prompt | string | Required | — |
| flow.components[].nodes[].edges[].condition · variant 4 | object | — | Fields for this schema branch. |
flow.components[].nodes[].edges[].condition.type | "equation" | Required | — |
flow.components[].nodes[].edges[].condition.operator | "&&" · "||" | Required | — |
flow.components[].nodes[].edges[].condition.equations | array of object | Required | minItems: 1. |
flow.components[].nodes[].edges[].condition.equations[].left | string | Required | — |
flow.components[].nodes[].edges[].condition.equations[].operator | "==" · "!=" · ">" · "<" · ">=" · "<=" · "contains" · "is_set" · "is_not_set" | Required | — |
flow.components[].nodes[].edges[].condition.equations[].right | string | Required | — |
flow.components[].nodes[].edges[].compliance | object | Optional | — |
flow.components[].nodes[].edges[].compliance.sets | array of "rpc_confirmed" | Required | minItems: 1. |
flow.components[].nodes[].name | string | Optional | — |
flow.components[].nodes[].instruction | object | Optional | — |
flow.components[].nodes[].instruction.type | "prompt" · "static_text" | Required | — |
flow.components[].nodes[].instruction.text | string | Required | — |
flow.components[].nodes[].startSpeaker | "agent" · "user" | Optional | — |
flow.components[].nodes[].interruptionSensitivity | number | Optional | At least 0. At most 1. |
flow.components[].nodes[].voiceSpeed | number | Optional | At least 0.5. At most 2. |
flow.components[].nodes[].languageLocked | boolean | Optional | — |
flow.components[].nodes[].globalNodeSetting | object | Optional | — |
flow.components[].nodes[].globalNodeSetting.condition | string | Required | — |
flow.components[].nodes[].globalNodeSetting.coolDown | number | Optional | At least 0. |
flow.components[].nodes[].toolId | string | Optional | minLength: 1. maxLength: 256. |
flow.components[].nodes[].waitForResult | boolean | Optional | — |
flow.components[].nodes[].speakDuringExecution | boolean | Optional | — |
flow.components[].nodes[].executionMessage | object | Optional | — |
flow.components[].nodes[].executionMessage.type | "prompt" · "static_text" | Required | — |
flow.components[].nodes[].executionMessage.text | string | Required | — |
flow.components[].nodes[].transfer | object | Optional | — |
flow.components[].nodes[].transfer.destination | object | Required | — |
| flow.components[].nodes[].transfer.destination · variant 1 | object | — | Fields for this schema branch. |
flow.components[].nodes[].transfer.destination.type | "predefined" | Required | — |
flow.components[].nodes[].transfer.destination.number | string | Required | — |
| flow.components[].nodes[].transfer.destination · variant 2 | object | — | Fields for this schema branch. |
flow.components[].nodes[].transfer.destination.type | "inferred" | Required | — |
flow.components[].nodes[].transfer.destination.prompt | string | Required | — |
flow.components[].nodes[].transfer.option | object | Required | — |
flow.components[].nodes[].transfer.option.type | "cold_transfer" · "warm_transfer" | Required | — |
flow.components[].nodes[].transfer.option.showTransfereeAsCaller | boolean | Optional | — |
flow.components[].nodes[].transfer.option.optOutHumanDetection | boolean | Optional | — |
flow.components[].nodes[].transfer.option.enableBridgeAudioCue | boolean | Optional | — |
flow.components[].nodes[].transfer.option.onHoldMusic | string | Optional | — |
flow.components[].nodes[].transfer.option.agentDetectionTimeoutMs | integer | Optional | At least 0. At most 9007199254740991. |
flow.components[].nodes[].transfer.option.agentDetectionPrompt | string | Optional | — |
flow.components[].nodes[].transfer.option.transferMessage | object | Optional | — |
flow.components[].nodes[].transfer.option.transferMessage.type | "prompt" · "static_text" | Required | — |
flow.components[].nodes[].transfer.option.transferMessage.text | string | Required | — |
flow.components[].nodes[].transfer.option.privateHandoffMessage | object | Optional | — |
flow.components[].nodes[].transfer.option.privateHandoffMessage.type | "prompt" · "static_text" | Required | — |
flow.components[].nodes[].transfer.option.privateHandoffMessage.text | string | Required | — |
flow.components[].nodes[].transfer.option.coldTransferMode | string | Optional | — |
flow.components[].nodes[].transfer.ignoreE164Validation | boolean | Required | — |
flow.components[].nodes[].variables | array of object | Optional | — |
flow.components[].nodes[].variables[].name | string | Required | maxLength: 256. |
flow.components[].nodes[].variables[].type | "string" · "number" · "boolean" · "enum" | Required | — |
flow.components[].nodes[].variables[].description | string | Required | — |
flow.components[].nodes[].variables[].choices | array of string | Optional | — |
flow.components[].nodes[].modelChoice | object | Optional | — |
flow.components[].nodes[].modelChoice.model | object | Required | — |
flow.components[].nodes[].modelChoice.model.model_id | string | Required | minLength: 1. pattern: \S. |
flow.components[].nodes[].modelChoice.model.provider | string | Required | minLength: 1. pattern: \S. |
flow.components[].nodes[].modelChoice.model.tier | "frontier" · "cumulus-served" · "customer-gpu" | Required | — |
flow.components[].nodes[].modelChoice.credential | object | Optional | — |
flow.components[].nodes[].modelChoice.credential.id | string | Required | minLength: 1. maxLength: 256. |
flow.components[].nodes[].modelChoice.credential.version | string | Required | minLength: 1. maxLength: 256. |
flow.components[].nodes[].modelChoice.credential.provider | string | Required | minLength: 1. maxLength: 256. |
flow.components[].nodes[].modelChoice.type | "cascading" | Required | — |
flow.components[].nodes[].modelChoice.highPriority | boolean | Required | — |
flow.components[].nodes[].modelChoice.reasoningEffort | "low" · "medium" · "high" | Optional | — |
flow.components[].nodes[].componentId | string | Optional | minLength: 1. maxLength: 256. |
flow.components[].nodes[].verification | object | Optional | — |
flow.components[].nodes[].verification.subjectVariable | string | Required | pattern: ^[A-Za-z_][A-Za-z0-9_]{0,255}$. |
flow.components[].nodes[].verification.fields | array of object | Required | maxItems: 8. |
flow.components[].nodes[].verification.fields[].id | string | Required | pattern: ^[A-Za-z_][A-Za-z0-9_]{0,63}$. |
flow.components[].nodes[].verification.fields[].expectedVariable | string | Required | pattern: ^[A-Za-z_][A-Za-z0-9_]{0,255}$. |
flow.components[].nodes[].verification.fields[].privateAliases | array of string | Optional | maxItems: 16. |
flow.components[].nodes[].verification.fields[].enabledVariable | string | Required | pattern: ^[A-Za-z_][A-Za-z0-9_]{0,255}$. |
flow.components[].nodes[].verification.fields[].format | object | Required | — |
| flow.components[].nodes[].verification.fields[].format · variant 1 | object | — | Fields for this schema branch. |
flow.components[].nodes[].verification.fields[].format.kind | "digits" | Required | — |
flow.components[].nodes[].verification.fields[].format.length | integer | Required | At least 1. At most 32. |
| flow.components[].nodes[].verification.fields[].format · variant 2 | object | — | Fields for this schema branch. |
flow.components[].nodes[].verification.fields[].format.kind | "date_yyyymmdd" | Required | — |
flow.components[].nodes[].verification.fields[].prompt | object | Required | — |
flow.components[].nodes[].verification.fields[].prompt.en | string | Required | — |
flow.components[].nodes[].verification.fields[].prompt.es | string | Optional | — |
flow.components[].nodes[].verification.required | object | Required | — |
| flow.components[].nodes[].verification.required · variant 1 | object | — | Fields for this schema branch. |
flow.components[].nodes[].verification.required.kind | "fixed" | Required | — |
flow.components[].nodes[].verification.required.count | integer | Required | At least 1. At most 8. |
| flow.components[].nodes[].verification.required · variant 2 | object | — | Fields for this schema branch. |
flow.components[].nodes[].verification.required.kind | "variable" | Required | — |
flow.components[].nodes[].verification.required.name | string | Required | pattern: ^[A-Za-z_][A-Za-z0-9_]{0,255}$. |
flow.components[].nodes[].verification.timeoutMs | integer | Required | At least 1000. At most 180000. |
flow.components[].nodes[].verification.lookup | object | Optional | — |
flow.components[].nodes[].verification.lookup.toolId | string | Required | minLength: 1. |
flow.components[].nodes[].verification.lookup.fieldId | string | Required | pattern: ^[A-Za-z_][A-Za-z0-9_]{0,63}$. |
flow.components[].nodes[].verification.lookup.parameter | string | Required | pattern: ^[A-Za-z_][A-Za-z0-9_]{0,255}$. |
flow.components[].nodes[].verification.lookup.arguments | array of object | Required | maxItems: 64. |
flow.components[].nodes[].verification.lookup.arguments[].parameter | string | Required | pattern: ^[A-Za-z_][A-Za-z0-9_]{0,255}$. |
flow.components[].nodes[].verification.lookup.arguments[].variable | string | Required | pattern: ^[A-Za-z_][A-Za-z0-9_]{0,255}$. |
flow.components[].nodes[].tokenization | object | Optional | — |
flow.components[].nodes[].tokenization.toolId | string | Required | maxLength: 256. |
flow.components[].nodes[].tokenization.subjectVariable | string | Required | pattern: ^(?!(?:proto|constructor|prototype)$)[A-Za-z_][A-Za-z0-9_]{0,255}$. |
flow.components[].nodes[].tokenization.consentPrompt | object | Required | — |
flow.components[].nodes[].tokenization.consentPrompt.en | string | Required | maxLength: 4096. |
flow.components[].nodes[].tokenization.consentPrompt.es | string | Optional | maxLength: 4096. |
flow.components[].nodes[].tokenization.timeoutMs | integer | Required | At least 1000. At most 180000. |
flow.components[].nodes[].tokenization.fields | array of object | Required | maxItems: 7. |
flow.components[].nodes[].tokenization.fields[].id | string | Required | pattern: ^[A-Za-z_][A-Za-z0-9_]{0,63}$. |
flow.components[].nodes[].tokenization.fields[].parameter | string | Required | maxLength: 256. pattern: ^(?!(?:proto|constructor|prototype)(?:.|$))[A-Za-z_][A-Za-z0-9_](?:.(?!(?:proto|constructor|prototype)(?:.|$))[A-Za-z_][A-Za-z0-9_]){0,7}$. |
flow.components[].nodes[].tokenization.fields[].minDigits | integer | Required | At least 1. At most 32. |
flow.components[].nodes[].tokenization.fields[].maxDigits | integer | Required | At least 1. At most 32. |
flow.components[].nodes[].tokenization.fields[].encoding | "string" · "integer" | Required | — |
flow.components[].nodes[].tokenization.fields[].minimum | integer | Optional | At least 0. At most 999999999. |
flow.components[].nodes[].tokenization.fields[].maximum | integer | Optional | At least 0. At most 999999999. |
flow.components[].nodes[].tokenization.fields[].prompt | object | Required | — |
flow.components[].nodes[].tokenization.fields[].prompt.en | string | Required | maxLength: 4096. |
flow.components[].nodes[].tokenization.fields[].prompt.es | string | Optional | maxLength: 4096. |
flow.components[].nodes[].tokenization.arguments | array of object | Required | maxItems: 64. |
flow.components[].nodes[].tokenization.arguments[].parameter | string | Required | maxLength: 256. pattern: ^(?!(?:proto|constructor|prototype)(?:.|$))[A-Za-z_][A-Za-z0-9_](?:.(?!(?:proto|constructor|prototype)(?:.|$))[A-Za-z_][A-Za-z0-9_]){0,7}$. |
flow.components[].nodes[].tokenization.arguments[].source | object | Required | — |
| flow.components[].nodes[].tokenization.arguments[].source · variant 1 | object | — | Fields for this schema branch. |
flow.components[].nodes[].tokenization.arguments[].source.kind | "variable" | Required | — |
flow.components[].nodes[].tokenization.arguments[].source.name | string | Required | pattern: ^(?!(?:proto|constructor|prototype)$)[A-Za-z_][A-Za-z0-9_]{0,255}$. |
| flow.components[].nodes[].tokenization.arguments[].source · variant 2 | object | — | Fields for this schema branch. |
flow.components[].nodes[].tokenization.arguments[].source.kind | "constant" | Required | — |
flow.components[].nodes[].tokenization.arguments[].source.value | string or number or boolean or null | Required | — |
| flow.components[].nodes[].tokenization.arguments[].source.value · variant 1 | string | — | Fields for this schema branch. |
| flow.components[].nodes[].tokenization.arguments[].source.value · variant 2 | number | — | Fields for this schema branch. |
| flow.components[].nodes[].tokenization.arguments[].source.value · variant 3 | boolean | — | Fields for this schema branch. |
flow.components[].nodes[].tokenization.tokenIdPath | string | Required | maxLength: 256. pattern: ^(?!(?:proto|constructor|prototype)(?:.|$))[A-Za-z_][A-Za-z0-9_](?:.(?!(?:proto|constructor|prototype)(?:.|$))[A-Za-z_][A-Za-z0-9_]){0,7}$. |
flow.components[].nodes[].tokenization.tokenVariable | string | Required | pattern: ^(?!(?:proto|constructor|prototype)$)[A-Za-z_][A-Za-z0-9_]{0,255}$. |
flow.components[].nodes[].tokenization.last4Variable | string | Required | pattern: ^(?!(?:proto|constructor|prototype)$)[A-Za-z_][A-Za-z0-9_]{0,255}$. |
flow.components[].nodes[].tokenization.last4Field | string | Required | maxLength: 64. |
flow.components[].tools | array of object | Required | — |
flow.components[].tools[].id | string | Required | minLength: 1. maxLength: 256. |
flow.components[].tools[].type | "custom" | Required | — |
flow.components[].tools[].name | string | Required | minLength: 1. maxLength: 256. |
flow.components[].tools[].description | string | Required | — |
flow.components[].tools[].method | "GET" · "POST" · "PUT" · "PATCH" · "DELETE" | Required | — |
flow.components[].tools[].responseVariables | object | Required | — |
flow.components[].tools[].responseVariables.* | string | Optional | Additional keys are allowed. |
flow.components[].tools[].responseVariablePolicy | "required" · "replace_available" | Optional | — |
flow.components[].tools[].speakAfterExecution | boolean | Optional | — |
flow.components[].flexMode | boolean | Optional | — |
flow.defaultDynamicVariables | object | Required | — |
flow.defaultDynamicVariables.* | string | Optional | Additional keys are allowed. |
flow.callContextVariables | array of string | Optional | — |
flow.modelChoice | object | Optional | — |
flow.modelChoice.model | object | Required | — |
flow.modelChoice.model.model_id | string | Required | minLength: 1. pattern: \S. |
flow.modelChoice.model.provider | string | Required | minLength: 1. pattern: \S. |
flow.modelChoice.model.tier | "frontier" · "cumulus-served" · "customer-gpu" | Required | — |
flow.modelChoice.credential | object | Optional | — |
flow.modelChoice.credential.id | string | Required | minLength: 1. maxLength: 256. |
flow.modelChoice.credential.version | string | Required | minLength: 1. maxLength: 256. |
flow.modelChoice.credential.provider | string | Required | minLength: 1. maxLength: 256. |
flow.modelChoice.type | "cascading" | Required | — |
flow.modelChoice.highPriority | boolean | Required | — |
flow.modelChoice.reasoningEffort | "low" · "medium" · "high" | Optional | — |
flow.toolCallStrictMode | boolean | Required | — |
settings | object | Required | — |
settings.voiceId | string | Optional | minLength: 1. maxLength: 256. |
settings.voiceModel | string | Optional | minLength: 1. maxLength: 256. |
settings.voiceSpeed | number | Optional | At least 0.5. At most 2. |
settings.voiceTemperature | number | Optional | At least 0. At most 2. |
settings.volume | number | Optional | At least 0. At most 2. |
settings.language | string or array of string | Optional | — |
| settings.language · variant 1 | string | — | Fields for this schema branch. |
| settings.language · variant 2 | array of string | — | Fields for this schema branch. |
settings.responsiveness | number | Optional | At least 0. At most 1. |
settings.interruptionSensitivity | number | Optional | At least 0. At most 1. |
settings.enableBackchannel | boolean | Optional | — |
settings.backchannelFrequency | number | Optional | At least 0. At most 1. |
settings.backchannelWords | array of string | Optional | — |
settings.reminderTriggerMs | integer | Optional | At least 0. At most 3600000. |
settings.reminderMaxCount | integer | Optional | At least 0. At most 100. |
settings.maxCallDurationMs | integer | Optional | At least 1000. At most 86400000. |
settings.endCallAfterSilenceMs | integer | Optional | At least 1000. At most 3600000. |
settings.ringDurationMs | integer | Optional | At least 1000. At most 300000. |
settings.beginMessageDelayMs | integer | Optional | At least 0. At most 60000. |
settings.normalizeForSpeech | boolean | Optional | — |
settings.openerWaitsForCallee | boolean | Optional | — |
settings.voicemail | object | Optional | — |
settings.voicemail.enabled | boolean | Required | — |
settings.voicemail.detectionTimeoutMs | integer | Optional | Greater than 0. At most 9007199254740991. |
settings.voicemail.action | "hangup" · "leave_message" | Optional | — |
settings.voicemail.message | object | Optional | — |
settings.voicemail.message.type | "prompt" · "static_text" | Required | — |
settings.voicemail.message.text | string | Required | — |
settings.ambientSound | string | Optional | — |
settings.ambientSoundVolume | number | Optional | At least 0. At most 2. |
settings.boostedKeywords | array of string | Optional | — |
settings.pronunciationDictionary | array of object | Optional | — |
settings.pronunciationDictionary[].word | string | Required | minLength: 1. maxLength: 256. |
settings.pronunciationDictionary[].alphabet | "ipa" · "cmu" | Required | — |
settings.pronunciationDictionary[].phoneme | string | Required | minLength: 1. maxLength: 256. |
settings.denoisingMode | string | Optional | — |
settings.sttMode | string | Optional | — |
settings.allowUserDtmf | boolean | Optional | — |
settings.allowDtmfInterruption | boolean | Optional | — |
settings.userDtmfOptions | object or null | Optional | — |
settings.userDtmfOptions.digitLimit | integer or null | Optional | Greater than 0. At most 9007199254740991. |
settings.userDtmfOptions.terminationKey | "0" · "1" · "2" · "3" · "4" · "5" · "6" · "7" · "8" · "9" · "*" · "#" or null | Optional | — |
settings.userDtmfOptions.timeoutMs | integer | Optional | Greater than 0. At most 9007199254740991. |
settings.dataStorageSetting | "everything" · "everything_except_pii" · "basic_attributes_only" | Optional | — |
settings.optInSignedUrl | boolean | Optional | — |
settings.piiConfig | object | Optional | — |
settings.piiConfig.mode | "post_call" | Required | — |
settings.piiConfig.categories | array of "person_name" · "address" · "email" · "phone_number" · "ssn" · "passport" · "driver_license" · "credit_card" · "bank_account" · "password" · "pin" · "medical_id" · "date_of_birth" · "customer_account_number" | Required | — |
settings.handbookConfig | object | Optional | — |
settings.handbookConfig.defaultPersonality | boolean | Optional | — |
settings.handbookConfig.conversationalPersonality | boolean | Optional | — |
settings.handbookConfig.naturalFillerWords | boolean | Optional | — |
settings.handbookConfig.highEmpathy | boolean | Optional | — |
settings.handbookConfig.echoVerification | boolean | Optional | — |
settings.handbookConfig.natoPhoneticAlphabet | boolean | Optional | — |
settings.handbookConfig.speechNormalization | boolean | Optional | — |
settings.handbookConfig.smartMatching | boolean | Optional | — |
settings.handbookConfig.aiDisclosure | boolean | Optional | — |
settings.handbookConfig.scopeBoundaries | boolean | Optional | — |
settings.ivr | object | Optional | — |
| settings.ivr · variant 1 | object | — | Fields for this schema branch. |
settings.ivr.enabled | false | Required | — |
| settings.ivr · variant 2 | object | — | Fields for this schema branch. |
settings.ivr.enabled | true | Required | — |
settings.ivr.action | "hangup" | Required | — |
settings.ivr.detectionWindowMs | 180000 | Required | — |
settings.ivr.detectionPrompt | string or null | Optional | — |
settings.screener | object | Optional | — |
| settings.screener · variant 1 | object | — | Fields for this schema branch. |
settings.screener.action | "hangup" | Required | — |
| settings.screener · variant 2 | object | — | Fields for this schema branch. |
settings.screener.action | "wait" | Required | — |
settings.screener.waitMs | integer | Optional | At least 5000. At most 120000. |
| settings.screener · variant 3 | object | — | Fields for this schema branch. |
settings.screener.action | "play_line" | Required | — |
settings.screener.waitMs | integer | Optional | At least 5000. At most 120000. |
settings.screener.line | object | Required | — |
settings.screener.line.en | string | Optional | minLength: 1. maxLength: 500. |
settings.screener.line.es | string | Optional | minLength: 1. maxLength: 500. |
| settings.screener · variant 4 | object | — | Fields for this schema branch. |
settings.screener.action | "treat_as_human" | Required | — |
settings.postCallAnalysisModel | object | Optional | — |
settings.postCallAnalysisModel.model | object | Required | — |
settings.postCallAnalysisModel.model.model_id | string | Required | minLength: 1. pattern: \S. |
settings.postCallAnalysisModel.model.provider | string | Required | minLength: 1. pattern: \S. |
settings.postCallAnalysisModel.model.tier | "frontier" · "cumulus-served" · "customer-gpu" | Required | — |
settings.postCallAnalysisModel.credential | object | Optional | — |
settings.postCallAnalysisModel.credential.id | string | Required | minLength: 1. maxLength: 256. |
settings.postCallAnalysisModel.credential.version | string | Required | minLength: 1. maxLength: 256. |
settings.postCallAnalysisModel.credential.provider | string | Required | minLength: 1. maxLength: 256. |
settings.compliance | object | Optional | — |
settings.compliance.profile | "fdcpa" | Optional | — |
analysis | array of object | Required | — |
analysis[].name | string | Required | maxLength: 256. |
analysis[].type | "string" · "number" · "boolean" · "enum" | Required | — |
analysis[].description | string | Required | — |
analysis[].choices | array of string | Optional | — |
analysis[].examples | array of string | Optional | — |
providers | object | Required | — |
providers.llm | object | Required | — |
providers.llm.provider | "openai" · "simulated_openai" · "self_hosted" · "simulated_self_hosted" | Required | — |
providers.llm.model | object | Required | — |
providers.llm.model.model_id | string | Required | minLength: 1. pattern: \S. |
providers.llm.model.provider | string | Required | minLength: 1. pattern: \S. |
providers.llm.model.tier | "frontier" · "cumulus-served" · "customer-gpu" | Required | — |
providers.stt | object or null | Required | — |
providers.stt.provider | string | Required in a non-null parent | — |
providers.stt.model | string | Required in a non-null parent | — |
providers.stt.voiceId | string | Optional | — |
providers.tts | object or null | Required | — |
providers.tts.provider | string | Required in a non-null parent | — |
providers.tts.model | string | Required in a non-null parent | — |
providers.tts.voiceId | string | Optional | — |
telephony | object or null | Required | — |
telephony.trunkId | string | Required in a non-null parent | minLength: 1. maxLength: 256. |
telephony.from | string | Optional | pattern: ^+[1-9][0-9]{6,14}$. |
inbound_context | object | Optional | — |
inbound_context.action_id | string | Required | pattern: ^[a-z][a-z0-9_]{0,62}$. |
inbound_context.variables | array of string | Required | minItems: 1. maxItems: 256. |
recording | object or null | Required | — |
recording.required | boolean | Required in a non-null parent | — |
recording.channels | "dual" | Required in a non-null parent | — |
cloud | object or null | Required | — |
cloud.modes | array of "task" · "chat" · "background" | Required in a non-null parent | minItems: 1. |
cloud.input_schema | object | Required in a non-null parent | — |
cloud.input_schema.* | any JSON value | Optional | Additional keys are allowed. |
cloud.output_schema | object | Required in a non-null parent | — |
cloud.output_schema.* | any JSON value | Optional | Additional keys are allowed. |
cloud.max_turns | integer | Required in a non-null parent | At least 1. At most 200. |
cloud.idle_timeout_ms | integer | Required in a non-null parent | At least 10000. At most 86400000. |
cloud.deadline_ms | integer | Required in a non-null parent | At least 1000. At most 3600000. |
actions | array of object | Required | — |
actions[].purpose | "tokenization" | Optional | — |
actions[].name | string | Required | pattern: ^[a-z][a-z0-9_]{0,62}$. |
actions[].description | string | Required | minLength: 1. maxLength: 1024. |
actions[].channels | array of "cloud" · "phone" | Required | minItems: 1. |
actions[].method | "GET" · "POST" · "PUT" · "PATCH" · "DELETE" | Required | — |
actions[].url | string (uri) | Required | — |
actions[].headers | object | Optional | Default: {}. |
actions[].headers.* | string | Optional | Additional keys are allowed. |
actions[].auth | object | Required | — |
| actions[].auth · variant 1 | object | — | Fields for this schema branch. |
actions[].auth.scheme | "none" | Required | — |
| actions[].auth · variant 2 | object | — | Fields for this schema branch. |
actions[].auth.scheme | "bearer" · "basic" | Required | — |
actions[].auth.secret_ref | object | Required | — |
actions[].auth.secret_ref.id | string | Required | minLength: 1. maxLength: 128. |
actions[].auth.secret_ref.version | string | Required | minLength: 1. maxLength: 128. |
| actions[].auth · variant 3 | object | — | Fields for this schema branch. |
actions[].auth.scheme | "retell_signature" | Required | — |
actions[].auth.secret_ref | object | Required | — |
actions[].auth.secret_ref.id | string | Required | minLength: 1. maxLength: 128. |
actions[].auth.secret_ref.version | string | Required | minLength: 1. maxLength: 128. |
| actions[].auth · variant 4 | object | — | Fields for this schema branch. |
actions[].auth.scheme | "header" | Required | — |
actions[].auth.header_name | string | Required | minLength: 1. maxLength: 128. |
actions[].auth.secret_ref | object | Required | — |
actions[].auth.secret_ref.id | string | Required | minLength: 1. maxLength: 128. |
actions[].auth.secret_ref.version | string | Required | minLength: 1. maxLength: 128. |
actions[].input_schema | object | Required | — |
actions[].input_schema.* | any JSON value | Optional | Additional keys are allowed. |
actions[].output_schema | object | Required | — |
actions[].output_schema.* | any JSON value | Optional | Additional keys are allowed. |
actions[].idempotency | object | Required | — |
| actions[].idempotency · variant 1 | object | — | Fields for this schema branch. |
actions[].idempotency.mode | "effect_key" | Required | — |
| actions[].idempotency · variant 2 | object | — | Fields for this schema branch. |
actions[].idempotency.mode | "template" | Required | — |
actions[].idempotency.header | string | Optional | Default: "Idempotency-Key". |
actions[].idempotency.template | string | Required | minLength: 1. maxLength: 512. |
| actions[].idempotency · variant 3 | object | — | Fields for this schema branch. |
actions[].idempotency.mode | "none_read_only" | Required | — |
actions[].timeout_ms | integer | Required | At least 500. At most 120000. |
actions[].on_uncertain | "failure_edge" · "uncertain_edge" | Optional | Default: "failure_edge". |
notifications | array of object | Required | — |
notifications[].id | string | Required | minLength: 1. maxLength: 128. |
notifications[].url | string (uri) | Required | — |
notifications[].secret_ref | object | Required | — |
notifications[].secret_ref.id | string | Required | minLength: 1. maxLength: 128. |
notifications[].secret_ref.version | string | Required | minLength: 1. maxLength: 128. |
notifications[].format | "semantic.v1" | Required | — |
notifications[].events | array of "run.admitted" · "run.ended" · "recording.updated" · "analysis.updated" | Required | minItems: 1. |
knowledge | object or null | Required | — |
knowledge.document_ids | array of string (uuid) | Required in a non-null parent | — |
triggers | array of object | Required | — |
| triggers[] · variant 1 | object | — | Fields for this schema branch. |
triggers[].kind | "schedule" | Required | — |
triggers[].id | string | Required | minLength: 1. maxLength: 128. |
triggers[].cron | string | Required | pattern: ^(\S+\s+){4}\S+$. |
triggers[].timezone | string | Required | minLength: 1. maxLength: 64. |
triggers[].input | object | Required | — |
triggers[].input.* | any JSON value | Optional | Additional keys are allowed. |
| triggers[] · variant 2 | object | — | Fields for this schema branch. |
triggers[].kind | "event" | Required | — |
triggers[].id | string | Required | minLength: 1. maxLength: 128. |
triggers[].event_type | "run.ended" · "analysis.updated" | Required | — |
triggers[].source | object | Required | — |
triggers[].source.agent_id | string | Optional | Agent identifier in the environment selected by your API key. minLength: 1. maxLength: 256. pattern: ^[A-Za-z0-9][A-Za-z0-9_.:-]*$. |
triggers[].source.channel | "cloud" · "phone" · "web" | Optional | — |
triggers[].source.dispositions | array of string | Optional | maxItems: 32. |
triggers[].input_mapping | object | Required | — |
triggers[].input_mapping.* | string | Optional | Additional keys are allowed. |
layout | object | Required | — |
layout.flow | object | Required | — |
layout.flow.nodes | object | Required | — |
layout.flow.nodes.* | object | Optional | Additional keys are allowed. |
layout.flow.start | object | Optional | — |
layout.flow.start.x | number | Required | At least -10000000. At most 10000000. |
layout.flow.start.y | number | Required | At least -10000000. At most 10000000. |
layout.flow.viewport | object | Optional | — |
layout.flow.viewport.x | number | Required | At least -10000000. At most 10000000. |
layout.flow.viewport.y | number | Required | At least -10000000. At most 10000000. |
layout.flow.viewport.zoom | number | Required | At least 0.01. At most 100. |
layout.components | object | Required | — |
layout.components.* | object | Optional | Additional keys are allowed. |
Error responses
| HTTP | Description |
|---|---|
| 4XX | Typed error (ApiError) |
| 5XX | Typed error (ApiError) |
Errors use the shared error envelope. Inspect error.code, retryable, outcome and details before retrying.
Complete OpenAPI schema
{
"200": {
"description": "Read the open draft",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/DraftsGetResponse200"
}
}
}
},
"4XX": {
"description": "Typed error (ApiError)",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ApiError"
}
}
}
},
"5XX": {
"description": "Typed error (ApiError)",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ApiError"
}
}
}
}
}
Referenced schemas
Expand the complete OpenAPI definitions for integrations that generate their own clients.
Complete OpenAPI schema
{
"components": {
"schemas": {
"DraftsGetResponse200": {
"type": "object",
"properties": {
"state": {
"$ref": "#/components/schemas/DraftsEditResponse200"
},
"name": {
"type": "string",
"minLength": 1,
"maxLength": 256
},
"channels": {
"minItems": 1,
"type": "array",
"items": {
"type": "string",
"enum": [
"cloud",
"phone"
]
}
},
"languages": {
"minItems": 1,
"type": "array",
"items": {
"type": "string",
"enum": [
"en",
"es"
]
}
},
"flow": {
"type": "object",
"properties": {
"schemaVersion": {
"type": "number",
"enum": [
2
]
},
"id": {
"type": "string",
"minLength": 1,
"maxLength": 256
},
"version": {
"type": "integer",
"minimum": 0,
"maximum": 2147483647
},
"startNodeId": {
"type": "string",
"minLength": 1,
"maxLength": 256
},
"startSpeaker": {
"type": "string",
"enum": [
"agent",
"user"
]
},
"globalPrompt": {
"type": "string"
},
"nodes": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "string",
"minLength": 1,
"maxLength": 256
},
"kind": {
"type": "string",
"enum": [
"conversation",
"end",
"branch",
"transfer_call",
"function",
"extract_dynamic_variables",
"verify_identity",
"tokenize_private",
"component"
]
},
"edges": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "string",
"minLength": 1,
"maxLength": 256
},
"destinationNodeId": {
"type": "string",
"minLength": 1,
"maxLength": 256
},
"slot": {
"type": "string",
"enum": [
"edges",
"else_edge",
"skip_response_edge",
"always_edge",
"edge",
"success_edge"
]
},
"condition": {
"oneOf": [
{
"type": "object",
"properties": {
"type": {
"type": "string",
"enum": [
"always"
]
}
},
"required": [
"type"
],
"additionalProperties": false
},
{
"type": "object",
"properties": {
"type": {
"type": "string",
"enum": [
"conversation_language"
]
},
"language": {
"type": "string",
"enum": [
"en",
"es"
]
}
},
"required": [
"type",
"language"
],
"additionalProperties": false
},
{
"type": "object",
"properties": {
"type": {
"type": "string",
"enum": [
"prompt"
]
},
"prompt": {
"type": "string"
}
},
"required": [
"type",
"prompt"
],
"additionalProperties": false
},
{
"type": "object",
"properties": {
"type": {
"type": "string",
"enum": [
"equation"
]
},
"operator": {
"type": "string",
"enum": [
"&&",
"||"
]
},
"equations": {
"minItems": 1,
"type": "array",
"items": {
"type": "object",
"properties": {
"left": {
"type": "string"
},
"operator": {
"type": "string",
"enum": [
"==",
"!=",
">",
"<",
">=",
"<=",
"contains",
"is_set",
"is_not_set"
]
},
"right": {
"type": "string"
}
},
"required": [
"left",
"operator",
"right"
],
"additionalProperties": false
}
}
},
"required": [
"type",
"operator",
"equations"
],
"additionalProperties": false
}
]
},
"compliance": {
"type": "object",
"properties": {
"sets": {
"minItems": 1,
"type": "array",
"items": {
"type": "string",
"enum": [
"rpc_confirmed"
]
}
}
},
"required": [
"sets"
],
"additionalProperties": false
}
},
"required": [
"slot",
"condition"
],
"additionalProperties": false
}
},
"name": {
"type": "string"
},
"instruction": {
"type": "object",
"properties": {
"type": {
"type": "string",
"enum": [
"prompt",
"static_text"
]
},
"text": {
"type": "string"
}
},
"required": [
"type",
"text"
],
"additionalProperties": false
},
"startSpeaker": {
"type": "string",
"enum": [
"agent",
"user"
]
},
"interruptionSensitivity": {
"type": "number",
"minimum": 0,
"maximum": 1
},
"voiceSpeed": {
"type": "number",
"minimum": 0.5,
"maximum": 2
},
"languageLocked": {
"type": "boolean"
},
"globalNodeSetting": {
"type": "object",
"properties": {
"condition": {
"type": "string"
},
"coolDown": {
"type": "number",
"minimum": 0
}
},
"required": [
"condition"
],
"additionalProperties": false
},
"toolId": {
"type": "string",
"minLength": 1,
"maxLength": 256
},
"waitForResult": {
"type": "boolean"
},
"speakDuringExecution": {
"type": "boolean"
},
"executionMessage": {
"type": "object",
"properties": {
"type": {
"type": "string",
"enum": [
"prompt",
"static_text"
]
},
"text": {
"type": "string"
}
},
"required": [
"type",
"text"
],
"additionalProperties": false
},
"transfer": {
"type": "object",
"properties": {
"destination": {
"oneOf": [
{
"type": "object",
"properties": {
"type": {
"type": "string",
"enum": [
"predefined"
]
},
"number": {
"type": "string"
}
},
"required": [
"type",
"number"
],
"additionalProperties": false
},
{
"type": "object",
"properties": {
"type": {
"type": "string",
"enum": [
"inferred"
]
},
"prompt": {
"type": "string"
}
},
"required": [
"type",
"prompt"
],
"additionalProperties": false
}
]
},
"option": {
"type": "object",
"properties": {
"type": {
"type": "string",
"enum": [
"cold_transfer",
"warm_transfer"
]
},
"showTransfereeAsCaller": {
"type": "boolean"
},
"optOutHumanDetection": {
"type": "boolean"
},
"enableBridgeAudioCue": {
"type": "boolean"
},
"onHoldMusic": {
"type": "string"
},
"agentDetectionTimeoutMs": {
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991
},
"agentDetectionPrompt": {
"type": "string"
},
"transferMessage": {
"type": "object",
"properties": {
"type": {
"type": "string",
"enum": [
"prompt",
"static_text"
]
},
"text": {
"type": "string"
}
},
"required": [
"type",
"text"
],
"additionalProperties": false
},
"privateHandoffMessage": {
"type": "object",
"properties": {
"type": {
"type": "string",
"enum": [
"prompt",
"static_text"
]
},
"text": {
"type": "string"
}
},
"required": [
"type",
"text"
],
"additionalProperties": false
},
"coldTransferMode": {
"type": "string"
}
},
"required": [
"type"
],
"additionalProperties": false
},
"ignoreE164Validation": {
"type": "boolean"
}
},
"required": [
"destination",
"option",
"ignoreE164Validation"
],
"additionalProperties": false
},
"variables": {
"type": "array",
"items": {
"type": "object",
"properties": {
"name": {
"type": "string",
"maxLength": 256
},
"type": {
"type": "string",
"enum": [
"string",
"number",
"boolean",
"enum"
]
},
"description": {
"type": "string"
},
"choices": {
"type": "array",
"items": {
"type": "string"
}
}
},
"required": [
"name",
"type",
"description"
],
"additionalProperties": false
}
},
"modelChoice": {
"type": "object",
"properties": {
"model": {
"$ref": "#/components/schemas/ModelIdentity"
},
"credential": {
"type": "object",
"properties": {
"id": {
"type": "string",
"minLength": 1,
"maxLength": 256
},
"version": {
"type": "string",
"minLength": 1,
"maxLength": 256
},
"provider": {
"type": "string",
"minLength": 1,
"maxLength": 256
}
},
"required": [
"id",
"version",
"provider"
],
"additionalProperties": false
},
"type": {
"type": "string",
"enum": [
"cascading"
]
},
"highPriority": {
"type": "boolean"
},
"reasoningEffort": {
"type": "string",
"enum": [
"low",
"medium",
"high"
]
}
},
"required": [
"model",
"type",
"highPriority"
],
"additionalProperties": false
},
"componentId": {
"type": "string",
"minLength": 1,
"maxLength": 256
},
"verification": {
"type": "object",
"properties": {
"subjectVariable": {
"type": "string",
"pattern": "^[A-Za-z_][A-Za-z0-9_]{0,255}$"
},
"fields": {
"maxItems": 8,
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "string",
"pattern": "^[A-Za-z_][A-Za-z0-9_]{0,63}$"
},
"expectedVariable": {
"type": "string",
"pattern": "^[A-Za-z_][A-Za-z0-9_]{0,255}$"
},
"privateAliases": {
"maxItems": 16,
"type": "array",
"items": {
"type": "string",
"pattern": "^[A-Za-z_][A-Za-z0-9_]{0,255}$"
}
},
"enabledVariable": {
"type": "string",
"pattern": "^[A-Za-z_][A-Za-z0-9_]{0,255}$"
},
"format": {
"oneOf": [
{
"type": "object",
"properties": {
"kind": {
"type": "string",
"enum": [
"digits"
]
},
"length": {
"type": "integer",
"minimum": 1,
"maximum": 32
}
},
"required": [
"kind",
"length"
],
"additionalProperties": false
},
{
"type": "object",
"properties": {
"kind": {
"type": "string",
"enum": [
"date_yyyymmdd"
]
}
},
"required": [
"kind"
],
"additionalProperties": false
}
]
},
"prompt": {
"type": "object",
"properties": {
"en": {
"type": "string"
},
"es": {
"type": "string"
}
},
"required": [
"en"
],
"additionalProperties": false
}
},
"required": [
"id",
"expectedVariable",
"enabledVariable",
"format",
"prompt"
],
"additionalProperties": false
}
},
"required": {
"oneOf": [
{
"type": "object",
"properties": {
"kind": {
"type": "string",
"enum": [
"fixed"
]
},
"count": {
"type": "integer",
"minimum": 1,
"maximum": 8
}
},
"required": [
"kind",
"count"
],
"additionalProperties": false
},
{
"type": "object",
"properties": {
"kind": {
"type": "string",
"enum": [
"variable"
]
},
"name": {
"type": "string",
"pattern": "^[A-Za-z_][A-Za-z0-9_]{0,255}$"
}
},
"required": [
"kind",
"name"
],
"additionalProperties": false
}
]
},
"timeoutMs": {
"type": "integer",
"minimum": 1000,
"maximum": 180000
},
"lookup": {
"type": "object",
"properties": {
"toolId": {
"type": "string",
"minLength": 1
},
"fieldId": {
"type": "string",
"pattern": "^[A-Za-z_][A-Za-z0-9_]{0,63}$"
},
"parameter": {
"type": "string",
"pattern": "^[A-Za-z_][A-Za-z0-9_]{0,255}$"
},
"arguments": {
"maxItems": 64,
"type": "array",
"items": {
"type": "object",
"properties": {
"parameter": {
"type": "string",
"pattern": "^[A-Za-z_][A-Za-z0-9_]{0,255}$"
},
"variable": {
"type": "string",
"pattern": "^[A-Za-z_][A-Za-z0-9_]{0,255}$"
}
},
"required": [
"parameter",
"variable"
],
"additionalProperties": false
}
}
},
"required": [
"toolId",
"fieldId",
"parameter",
"arguments"
],
"additionalProperties": false
}
},
"required": [
"subjectVariable",
"fields",
"required",
"timeoutMs"
],
"additionalProperties": false
},
"tokenization": {
"type": "object",
"properties": {
"toolId": {
"type": "string",
"maxLength": 256
},
"subjectVariable": {
"type": "string",
"pattern": "^(?!(?:__proto__|constructor|prototype)$)[A-Za-z_][A-Za-z0-9_]{0,255}$"
},
"consentPrompt": {
"type": "object",
"properties": {
"en": {
"type": "string",
"maxLength": 4096
},
"es": {
"type": "string",
"maxLength": 4096
}
},
"required": [
"en"
],
"additionalProperties": false
},
"timeoutMs": {
"type": "integer",
"minimum": 1000,
"maximum": 180000
},
"fields": {
"maxItems": 7,
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "string",
"pattern": "^[A-Za-z_][A-Za-z0-9_]{0,63}$"
},
"parameter": {
"type": "string",
"maxLength": 256,
"pattern": "^(?!(?:__proto__|constructor|prototype)(?:\\.|$))[A-Za-z_][A-Za-z0-9_]*(?:\\.(?!(?:__proto__|constructor|prototype)(?:\\.|$))[A-Za-z_][A-Za-z0-9_]*){0,7}$"
},
"minDigits": {
"type": "integer",
"minimum": 1,
"maximum": 32
},
"maxDigits": {
"type": "integer",
"minimum": 1,
"maximum": 32
},
"encoding": {
"type": "string",
"enum": [
"string",
"integer"
]
},
"minimum": {
"type": "integer",
"minimum": 0,
"maximum": 999999999
},
"maximum": {
"type": "integer",
"minimum": 0,
"maximum": 999999999
},
"prompt": {
"type": "object",
"properties": {
"en": {
"type": "string",
"maxLength": 4096
},
"es": {
"type": "string",
"maxLength": 4096
}
},
"required": [
"en"
],
"additionalProperties": false
}
},
"required": [
"id",
"parameter",
"minDigits",
"maxDigits",
"encoding",
"prompt"
],
"additionalProperties": false
}
},
"arguments": {
"maxItems": 64,
"type": "array",
"items": {
"type": "object",
"properties": {
"parameter": {
"type": "string",
"maxLength": 256,
"pattern": "^(?!(?:__proto__|constructor|prototype)(?:\\.|$))[A-Za-z_][A-Za-z0-9_]*(?:\\.(?!(?:__proto__|constructor|prototype)(?:\\.|$))[A-Za-z_][A-Za-z0-9_]*){0,7}$"
},
"source": {
"oneOf": [
{
"type": "object",
"properties": {
"kind": {
"type": "string",
"enum": [
"variable"
]
},
"name": {
"type": "string",
"pattern": "^(?!(?:__proto__|constructor|prototype)$)[A-Za-z_][A-Za-z0-9_]{0,255}$"
}
},
"required": [
"kind",
"name"
],
"additionalProperties": false
},
{
"type": "object",
"properties": {
"kind": {
"type": "string",
"enum": [
"constant"
]
},
"value": {
"nullable": true,
"anyOf": [
{
"type": "string",
"maxLength": 512
},
{
"type": "number"
},
{
"type": "boolean"
}
]
}
},
"required": [
"kind",
"value"
],
"additionalProperties": false
}
]
}
},
"required": [
"parameter",
"source"
],
"additionalProperties": false
}
},
"tokenIdPath": {
"type": "string",
"maxLength": 256,
"pattern": "^(?!(?:__proto__|constructor|prototype)(?:\\.|$))[A-Za-z_][A-Za-z0-9_]*(?:\\.(?!(?:__proto__|constructor|prototype)(?:\\.|$))[A-Za-z_][A-Za-z0-9_]*){0,7}$"
},
"tokenVariable": {
"type": "string",
"pattern": "^(?!(?:__proto__|constructor|prototype)$)[A-Za-z_][A-Za-z0-9_]{0,255}$"
},
"last4Variable": {
"type": "string",
"pattern": "^(?!(?:__proto__|constructor|prototype)$)[A-Za-z_][A-Za-z0-9_]{0,255}$"
},
"last4Field": {
"type": "string",
"maxLength": 64
}
},
"required": [
"toolId",
"subjectVariable",
"consentPrompt",
"timeoutMs",
"fields",
"arguments",
"tokenIdPath",
"tokenVariable",
"last4Variable",
"last4Field"
],
"additionalProperties": false
}
},
"required": [
"id",
"kind",
"edges"
],
"additionalProperties": false
}
},
"tools": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "string",
"minLength": 1,
"maxLength": 256
},
"type": {
"type": "string",
"enum": [
"custom"
]
},
"name": {
"type": "string",
"minLength": 1,
"maxLength": 256
},
"description": {
"type": "string"
},
"method": {
"type": "string",
"enum": [
"GET",
"POST",
"PUT",
"PATCH",
"DELETE"
]
},
"responseVariables": {
"type": "object",
"additionalProperties": {
"type": "string"
}
},
"responseVariablePolicy": {
"type": "string",
"enum": [
"required",
"replace_available"
]
},
"speakAfterExecution": {
"type": "boolean"
}
},
"required": [
"id",
"type",
"name",
"description",
"method",
"responseVariables"
],
"additionalProperties": false
}
},
"components": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "string",
"minLength": 1,
"maxLength": 256
},
"startNodeId": {
"type": "string",
"minLength": 1,
"maxLength": 256
},
"nodes": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "string",
"minLength": 1,
"maxLength": 256
},
"kind": {
"type": "string",
"enum": [
"conversation",
"end",
"branch",
"transfer_call",
"function",
"extract_dynamic_variables",
"verify_identity",
"tokenize_private",
"component"
]
},
"edges": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "string",
"minLength": 1,
"maxLength": 256
},
"destinationNodeId": {
"type": "string",
"minLength": 1,
"maxLength": 256
},
"slot": {
"type": "string",
"enum": [
"edges",
"else_edge",
"skip_response_edge",
"always_edge",
"edge",
"success_edge"
]
},
"condition": {
"oneOf": [
{
"type": "object",
"properties": {
"type": {
"type": "string",
"enum": [
"always"
]
}
},
"required": [
"type"
],
"additionalProperties": false
},
{
"type": "object",
"properties": {
"type": {
"type": "string",
"enum": [
"conversation_language"
]
},
"language": {
"type": "string",
"enum": [
"en",
"es"
]
}
},
"required": [
"type",
"language"
],
"additionalProperties": false
},
{
"type": "object",
"properties": {
"type": {
"type": "string",
"enum": [
"prompt"
]
},
"prompt": {
"type": "string"
}
},
"required": [
"type",
"prompt"
],
"additionalProperties": false
},
{
"type": "object",
"properties": {
"type": {
"type": "string",
"enum": [
"equation"
]
},
"operator": {
"type": "string",
"enum": [
"&&",
"||"
]
},
"equations": {
"minItems": 1,
"type": "array",
"items": {
"type": "object",
"properties": {
"left": {
"type": "string"
},
"operator": {
"type": "string",
"enum": [
"==",
"!=",
">",
"<",
">=",
"<=",
"contains",
"is_set",
"is_not_set"
]
},
"right": {
"type": "string"
}
},
"required": [
"left",
"operator",
"right"
],
"additionalProperties": false
}
}
},
"required": [
"type",
"operator",
"equations"
],
"additionalProperties": false
}
]
},
"compliance": {
"type": "object",
"properties": {
"sets": {
"minItems": 1,
"type": "array",
"items": {
"type": "string",
"enum": [
"rpc_confirmed"
]
}
}
},
"required": [
"sets"
],
"additionalProperties": false
}
},
"required": [
"slot",
"condition"
],
"additionalProperties": false
}
},
"name": {
"type": "string"
},
"instruction": {
"type": "object",
"properties": {
"type": {
"type": "string",
"enum": [
"prompt",
"static_text"
]
},
"text": {
"type": "string"
}
},
"required": [
"type",
"text"
],
"additionalProperties": false
},
"startSpeaker": {
"type": "string",
"enum": [
"agent",
"user"
]
},
"interruptionSensitivity": {
"type": "number",
"minimum": 0,
"maximum": 1
},
"voiceSpeed": {
"type": "number",
"minimum": 0.5,
"maximum": 2
},
"languageLocked": {
"type": "boolean"
},
"globalNodeSetting": {
"type": "object",
"properties": {
"condition": {
"type": "string"
},
"coolDown": {
"type": "number",
"minimum": 0
}
},
"required": [
"condition"
],
"additionalProperties": false
},
"toolId": {
"type": "string",
"minLength": 1,
"maxLength": 256
},
"waitForResult": {
"type": "boolean"
},
"speakDuringExecution": {
"type": "boolean"
},
"executionMessage": {
"type": "object",
"properties": {
"type": {
"type": "string",
"enum": [
"prompt",
"static_text"
]
},
"text": {
"type": "string"
}
},
"required": [
"type",
"text"
],
"additionalProperties": false
},
"transfer": {
"type": "object",
"properties": {
"destination": {
"oneOf": [
{
"type": "object",
"properties": {
"type": {
"type": "string",
"enum": [
"predefined"
]
},
"number": {
"type": "string"
}
},
"required": [
"type",
"number"
],
"additionalProperties": false
},
{
"type": "object",
"properties": {
"type": {
"type": "string",
"enum": [
"inferred"
]
},
"prompt": {
"type": "string"
}
},
"required": [
"type",
"prompt"
],
"additionalProperties": false
}
]
},
"option": {
"type": "object",
"properties": {
"type": {
"type": "string",
"enum": [
"cold_transfer",
"warm_transfer"
]
},
"showTransfereeAsCaller": {
"type": "boolean"
},
"optOutHumanDetection": {
"type": "boolean"
},
"enableBridgeAudioCue": {
"type": "boolean"
},
"onHoldMusic": {
"type": "string"
},
"agentDetectionTimeoutMs": {
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991
},
"agentDetectionPrompt": {
"type": "string"
},
"transferMessage": {
"type": "object",
"properties": {
"type": {
"type": "string",
"enum": [
"prompt",
"static_text"
]
},
"text": {
"type": "string"
}
},
"required": [
"type",
"text"
],
"additionalProperties": false
},
"privateHandoffMessage": {
"type": "object",
"properties": {
"type": {
"type": "string",
"enum": [
"prompt",
"static_text"
]
},
"text": {
"type": "string"
}
},
"required": [
"type",
"text"
],
"additionalProperties": false
},
"coldTransferMode": {
"type": "string"
}
},
"required": [
"type"
],
"additionalProperties": false
},
"ignoreE164Validation": {
"type": "boolean"
}
},
"required": [
"destination",
"option",
"ignoreE164Validation"
],
"additionalProperties": false
},
"variables": {
"type": "array",
"items": {
"type": "object",
"properties": {
"name": {
"type": "string",
"maxLength": 256
},
"type": {
"type": "string",
"enum": [
"string",
"number",
"boolean",
"enum"
]
},
"description": {
"type": "string"
},
"choices": {
"type": "array",
"items": {
"type": "string"
}
}
},
"required": [
"name",
"type",
"description"
],
"additionalProperties": false
}
},
"modelChoice": {
"type": "object",
"properties": {
"model": {
"$ref": "#/components/schemas/ModelIdentity"
},
"credential": {
"type": "object",
"properties": {
"id": {
"type": "string",
"minLength": 1,
"maxLength": 256
},
"version": {
"type": "string",
"minLength": 1,
"maxLength": 256
},
"provider": {
"type": "string",
"minLength": 1,
"maxLength": 256
}
},
"required": [
"id",
"version",
"provider"
],
"additionalProperties": false
},
"type": {
"type": "string",
"enum": [
"cascading"
]
},
"highPriority": {
"type": "boolean"
},
"reasoningEffort": {
"type": "string",
"enum": [
"low",
"medium",
"high"
]
}
},
"required": [
"model",
"type",
"highPriority"
],
"additionalProperties": false
},
"componentId": {
"type": "string",
"minLength": 1,
"maxLength": 256
},
"verification": {
"type": "object",
"properties": {
"subjectVariable": {
"type": "string",
"pattern": "^[A-Za-z_][A-Za-z0-9_]{0,255}$"
},
"fields": {
"maxItems": 8,
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "string",
"pattern": "^[A-Za-z_][A-Za-z0-9_]{0,63}$"
},
"expectedVariable": {
"type": "string",
"pattern": "^[A-Za-z_][A-Za-z0-9_]{0,255}$"
},
"privateAliases": {
"maxItems": 16,
"type": "array",
"items": {
"type": "string",
"pattern": "^[A-Za-z_][A-Za-z0-9_]{0,255}$"
}
},
"enabledVariable": {
"type": "string",
"pattern": "^[A-Za-z_][A-Za-z0-9_]{0,255}$"
},
"format": {
"oneOf": [
{
"type": "object",
"properties": {
"kind": {
"type": "string",
"enum": [
"digits"
]
},
"length": {
"type": "integer",
"minimum": 1,
"maximum": 32
}
},
"required": [
"kind",
"length"
],
"additionalProperties": false
},
{
"type": "object",
"properties": {
"kind": {
"type": "string",
"enum": [
"date_yyyymmdd"
]
}
},
"required": [
"kind"
],
"additionalProperties": false
}
]
},
"prompt": {
"type": "object",
"properties": {
"en": {
"type": "string"
},
"es": {
"type": "string"
}
},
"required": [
"en"
],
"additionalProperties": false
}
},
"required": [
"id",
"expectedVariable",
"enabledVariable",
"format",
"prompt"
],
"additionalProperties": false
}
},
"required": {
"oneOf": [
{
"type": "object",
"properties": {
"kind": {
"type": "string",
"enum": [
"fixed"
]
},
"count": {
"type": "integer",
"minimum": 1,
"maximum": 8
}
},
"required": [
"kind",
"count"
],
"additionalProperties": false
},
{
"type": "object",
"properties": {
"kind": {
"type": "string",
"enum": [
"variable"
]
},
"name": {
"type": "string",
"pattern": "^[A-Za-z_][A-Za-z0-9_]{0,255}$"
}
},
"required": [
"kind",
"name"
],
"additionalProperties": false
}
]
},
"timeoutMs": {
"type": "integer",
"minimum": 1000,
"maximum": 180000
},
"lookup": {
"type": "object",
"properties": {
"toolId": {
"type": "string",
"minLength": 1
},
"fieldId": {
"type": "string",
"pattern": "^[A-Za-z_][A-Za-z0-9_]{0,63}$"
},
"parameter": {
"type": "string",
"pattern": "^[A-Za-z_][A-Za-z0-9_]{0,255}$"
},
"arguments": {
"maxItems": 64,
"type": "array",
"items": {
"type": "object",
"properties": {
"parameter": {
"type": "string",
"pattern": "^[A-Za-z_][A-Za-z0-9_]{0,255}$"
},
"variable": {
"type": "string",
"pattern": "^[A-Za-z_][A-Za-z0-9_]{0,255}$"
}
},
"required": [
"parameter",
"variable"
],
"additionalProperties": false
}
}
},
"required": [
"toolId",
"fieldId",
"parameter",
"arguments"
],
"additionalProperties": false
}
},
"required": [
"subjectVariable",
"fields",
"required",
"timeoutMs"
],
"additionalProperties": false
},
"tokenization": {
"type": "object",
"properties": {
"toolId": {
"type": "string",
"maxLength": 256
},
"subjectVariable": {
"type": "string",
"pattern": "^(?!(?:__proto__|constructor|prototype)$)[A-Za-z_][A-Za-z0-9_]{0,255}$"
},
"consentPrompt": {
"type": "object",
"properties": {
"en": {
"type": "string",
"maxLength": 4096
},
"es": {
"type": "string",
"maxLength": 4096
}
},
"required": [
"en"
],
"additionalProperties": false
},
"timeoutMs": {
"type": "integer",
"minimum": 1000,
"maximum": 180000
},
"fields": {
"maxItems": 7,
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "string",
"pattern": "^[A-Za-z_][A-Za-z0-9_]{0,63}$"
},
"parameter": {
"type": "string",
"maxLength": 256,
"pattern": "^(?!(?:__proto__|constructor|prototype)(?:\\.|$))[A-Za-z_][A-Za-z0-9_]*(?:\\.(?!(?:__proto__|constructor|prototype)(?:\\.|$))[A-Za-z_][A-Za-z0-9_]*){0,7}$"
},
"minDigits": {
"type": "integer",
"minimum": 1,
"maximum": 32
},
"maxDigits": {
"type": "integer",
"minimum": 1,
"maximum": 32
},
"encoding": {
"type": "string",
"enum": [
"string",
"integer"
]
},
"minimum": {
"type": "integer",
"minimum": 0,
"maximum": 999999999
},
"maximum": {
"type": "integer",
"minimum": 0,
"maximum": 999999999
},
"prompt": {
"type": "object",
"properties": {
"en": {
"type": "string",
"maxLength": 4096
},
"es": {
"type": "string",
"maxLength": 4096
}
},
"required": [
"en"
],
"additionalProperties": false
}
},
"required": [
"id",
"parameter",
"minDigits",
"maxDigits",
"encoding",
"prompt"
],
"additionalProperties": false
}
},
"arguments": {
"maxItems": 64,
"type": "array",
"items": {
"type": "object",
"properties": {
"parameter": {
"type": "string",
"maxLength": 256,
"pattern": "^(?!(?:__proto__|constructor|prototype)(?:\\.|$))[A-Za-z_][A-Za-z0-9_]*(?:\\.(?!(?:__proto__|constructor|prototype)(?:\\.|$))[A-Za-z_][A-Za-z0-9_]*){0,7}$"
},
"source": {
"oneOf": [
{
"type": "object",
"properties": {
"kind": {
"type": "string",
"enum": [
"variable"
]
},
"name": {
"type": "string",
"pattern": "^(?!(?:__proto__|constructor|prototype)$)[A-Za-z_][A-Za-z0-9_]{0,255}$"
}
},
"required": [
"kind",
"name"
],
"additionalProperties": false
},
{
"type": "object",
"properties": {
"kind": {
"type": "string",
"enum": [
"constant"
]
},
"value": {
"nullable": true,
"anyOf": [
{
"type": "string",
"maxLength": 512
},
{
"type": "number"
},
{
"type": "boolean"
}
]
}
},
"required": [
"kind",
"value"
],
"additionalProperties": false
}
]
}
},
"required": [
"parameter",
"source"
],
"additionalProperties": false
}
},
"tokenIdPath": {
"type": "string",
"maxLength": 256,
"pattern": "^(?!(?:__proto__|constructor|prototype)(?:\\.|$))[A-Za-z_][A-Za-z0-9_]*(?:\\.(?!(?:__proto__|constructor|prototype)(?:\\.|$))[A-Za-z_][A-Za-z0-9_]*){0,7}$"
},
"tokenVariable": {
"type": "string",
"pattern": "^(?!(?:__proto__|constructor|prototype)$)[A-Za-z_][A-Za-z0-9_]{0,255}$"
},
"last4Variable": {
"type": "string",
"pattern": "^(?!(?:__proto__|constructor|prototype)$)[A-Za-z_][A-Za-z0-9_]{0,255}$"
},
"last4Field": {
"type": "string",
"maxLength": 64
}
},
"required": [
"toolId",
"subjectVariable",
"consentPrompt",
"timeoutMs",
"fields",
"arguments",
"tokenIdPath",
"tokenVariable",
"last4Variable",
"last4Field"
],
"additionalProperties": false
}
},
"required": [
"id",
"kind",
"edges"
],
"additionalProperties": false
}
},
"tools": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "string",
"minLength": 1,
"maxLength": 256
},
"type": {
"type": "string",
"enum": [
"custom"
]
},
"name": {
"type": "string",
"minLength": 1,
"maxLength": 256
},
"description": {
"type": "string"
},
"method": {
"type": "string",
"enum": [
"GET",
"POST",
"PUT",
"PATCH",
"DELETE"
]
},
"responseVariables": {
"type": "object",
"additionalProperties": {
"type": "string"
}
},
"responseVariablePolicy": {
"type": "string",
"enum": [
"required",
"replace_available"
]
},
"speakAfterExecution": {
"type": "boolean"
}
},
"required": [
"id",
"type",
"name",
"description",
"method",
"responseVariables"
],
"additionalProperties": false
}
},
"flexMode": {
"type": "boolean"
}
},
"required": [
"id",
"startNodeId",
"nodes",
"tools"
],
"additionalProperties": false
}
},
"defaultDynamicVariables": {
"type": "object",
"additionalProperties": {
"type": "string"
}
},
"callContextVariables": {
"type": "array",
"items": {
"type": "string",
"minLength": 1,
"maxLength": 256
}
},
"modelChoice": {
"type": "object",
"properties": {
"model": {
"$ref": "#/components/schemas/ModelIdentity"
},
"credential": {
"type": "object",
"properties": {
"id": {
"type": "string",
"minLength": 1,
"maxLength": 256
},
"version": {
"type": "string",
"minLength": 1,
"maxLength": 256
},
"provider": {
"type": "string",
"minLength": 1,
"maxLength": 256
}
},
"required": [
"id",
"version",
"provider"
],
"additionalProperties": false
},
"type": {
"type": "string",
"enum": [
"cascading"
]
},
"highPriority": {
"type": "boolean"
},
"reasoningEffort": {
"type": "string",
"enum": [
"low",
"medium",
"high"
]
}
},
"required": [
"model",
"type",
"highPriority"
],
"additionalProperties": false
},
"toolCallStrictMode": {
"type": "boolean"
}
},
"required": [
"schemaVersion",
"id",
"version",
"startNodeId",
"startSpeaker",
"globalPrompt",
"nodes",
"tools",
"components",
"defaultDynamicVariables",
"toolCallStrictMode"
],
"additionalProperties": false
},
"settings": {
"type": "object",
"properties": {
"voiceId": {
"type": "string",
"minLength": 1,
"maxLength": 256
},
"voiceModel": {
"type": "string",
"minLength": 1,
"maxLength": 256
},
"voiceSpeed": {
"type": "number",
"minimum": 0.5,
"maximum": 2
},
"voiceTemperature": {
"type": "number",
"minimum": 0,
"maximum": 2
},
"volume": {
"type": "number",
"minimum": 0,
"maximum": 2
},
"language": {
"anyOf": [
{
"type": "string",
"minLength": 1,
"maxLength": 256
},
{
"minItems": 1,
"type": "array",
"items": {
"type": "string",
"minLength": 1,
"maxLength": 256
}
}
]
},
"responsiveness": {
"type": "number",
"minimum": 0,
"maximum": 1
},
"interruptionSensitivity": {
"type": "number",
"minimum": 0,
"maximum": 1
},
"enableBackchannel": {
"type": "boolean"
},
"backchannelFrequency": {
"type": "number",
"minimum": 0,
"maximum": 1
},
"backchannelWords": {
"type": "array",
"items": {
"type": "string"
}
},
"reminderTriggerMs": {
"type": "integer",
"minimum": 0,
"maximum": 3600000
},
"reminderMaxCount": {
"type": "integer",
"minimum": 0,
"maximum": 100
},
"maxCallDurationMs": {
"type": "integer",
"minimum": 1000,
"maximum": 86400000
},
"endCallAfterSilenceMs": {
"type": "integer",
"minimum": 1000,
"maximum": 3600000
},
"ringDurationMs": {
"type": "integer",
"minimum": 1000,
"maximum": 300000
},
"beginMessageDelayMs": {
"type": "integer",
"minimum": 0,
"maximum": 60000
},
"normalizeForSpeech": {
"type": "boolean"
},
"openerWaitsForCallee": {
"type": "boolean"
},
"voicemail": {
"type": "object",
"properties": {
"enabled": {
"type": "boolean"
},
"detectionTimeoutMs": {
"type": "integer",
"minimum": 0,
"exclusiveMinimum": true,
"maximum": 9007199254740991
},
"action": {
"type": "string",
"enum": [
"hangup",
"leave_message"
]
},
"message": {
"type": "object",
"properties": {
"type": {
"type": "string",
"enum": [
"prompt",
"static_text"
]
},
"text": {
"type": "string"
}
},
"required": [
"type",
"text"
],
"additionalProperties": false
}
},
"required": [
"enabled"
],
"additionalProperties": false
},
"ambientSound": {
"type": "string"
},
"ambientSoundVolume": {
"type": "number",
"minimum": 0,
"maximum": 2
},
"boostedKeywords": {
"type": "array",
"items": {
"type": "string"
}
},
"pronunciationDictionary": {
"type": "array",
"items": {
"type": "object",
"properties": {
"word": {
"type": "string",
"minLength": 1,
"maxLength": 256
},
"alphabet": {
"type": "string",
"enum": [
"ipa",
"cmu"
]
},
"phoneme": {
"type": "string",
"minLength": 1,
"maxLength": 256
}
},
"required": [
"word",
"alphabet",
"phoneme"
],
"additionalProperties": false
}
},
"denoisingMode": {
"type": "string"
},
"sttMode": {
"type": "string"
},
"allowUserDtmf": {
"type": "boolean"
},
"allowDtmfInterruption": {
"type": "boolean"
},
"userDtmfOptions": {
"nullable": true,
"type": "object",
"properties": {
"digitLimit": {
"nullable": true,
"type": "integer",
"minimum": 0,
"exclusiveMinimum": true,
"maximum": 9007199254740991
},
"terminationKey": {
"nullable": true,
"type": "string",
"enum": [
"0",
"1",
"2",
"3",
"4",
"5",
"6",
"7",
"8",
"9",
"*",
"#"
]
},
"timeoutMs": {
"type": "integer",
"minimum": 0,
"exclusiveMinimum": true,
"maximum": 9007199254740991
}
},
"additionalProperties": false
},
"dataStorageSetting": {
"type": "string",
"enum": [
"everything",
"everything_except_pii",
"basic_attributes_only"
]
},
"optInSignedUrl": {
"type": "boolean"
},
"piiConfig": {
"type": "object",
"properties": {
"mode": {
"type": "string",
"enum": [
"post_call"
]
},
"categories": {
"type": "array",
"items": {
"type": "string",
"enum": [
"person_name",
"address",
"email",
"phone_number",
"ssn",
"passport",
"driver_license",
"credit_card",
"bank_account",
"password",
"pin",
"medical_id",
"date_of_birth",
"customer_account_number"
]
}
}
},
"required": [
"mode",
"categories"
],
"additionalProperties": false
},
"handbookConfig": {
"type": "object",
"properties": {
"defaultPersonality": {
"type": "boolean"
},
"conversationalPersonality": {
"type": "boolean"
},
"naturalFillerWords": {
"type": "boolean"
},
"highEmpathy": {
"type": "boolean"
},
"echoVerification": {
"type": "boolean"
},
"natoPhoneticAlphabet": {
"type": "boolean"
},
"speechNormalization": {
"type": "boolean"
},
"smartMatching": {
"type": "boolean"
},
"aiDisclosure": {
"type": "boolean"
},
"scopeBoundaries": {
"type": "boolean"
}
},
"additionalProperties": false
},
"ivr": {
"oneOf": [
{
"type": "object",
"properties": {
"enabled": {
"type": "boolean",
"enum": [
false
]
}
},
"required": [
"enabled"
],
"additionalProperties": false
},
{
"type": "object",
"properties": {
"enabled": {
"type": "boolean",
"enum": [
true
]
},
"action": {
"type": "string",
"enum": [
"hangup"
]
},
"detectionWindowMs": {
"type": "number",
"enum": [
180000
]
},
"detectionPrompt": {
"nullable": true,
"type": "string"
}
},
"required": [
"enabled",
"action",
"detectionWindowMs"
],
"additionalProperties": false
}
]
},
"screener": {
"oneOf": [
{
"type": "object",
"properties": {
"action": {
"type": "string",
"enum": [
"hangup"
]
}
},
"required": [
"action"
],
"additionalProperties": false
},
{
"type": "object",
"properties": {
"action": {
"type": "string",
"enum": [
"wait"
]
},
"waitMs": {
"type": "integer",
"minimum": 5000,
"maximum": 120000
}
},
"required": [
"action"
],
"additionalProperties": false
},
{
"type": "object",
"properties": {
"action": {
"type": "string",
"enum": [
"play_line"
]
},
"waitMs": {
"type": "integer",
"minimum": 5000,
"maximum": 120000
},
"line": {
"type": "object",
"properties": {
"en": {
"type": "string",
"minLength": 1,
"maxLength": 500
},
"es": {
"type": "string",
"minLength": 1,
"maxLength": 500
}
},
"additionalProperties": false
}
},
"required": [
"action",
"line"
],
"additionalProperties": false
},
{
"type": "object",
"properties": {
"action": {
"type": "string",
"enum": [
"treat_as_human"
]
}
},
"required": [
"action"
],
"additionalProperties": false
}
]
},
"postCallAnalysisModel": {
"type": "object",
"properties": {
"model": {
"$ref": "#/components/schemas/ModelIdentity"
},
"credential": {
"type": "object",
"properties": {
"id": {
"type": "string",
"minLength": 1,
"maxLength": 256
},
"version": {
"type": "string",
"minLength": 1,
"maxLength": 256
},
"provider": {
"type": "string",
"minLength": 1,
"maxLength": 256
}
},
"required": [
"id",
"version",
"provider"
],
"additionalProperties": false
}
},
"required": [
"model"
],
"additionalProperties": false
},
"compliance": {
"type": "object",
"properties": {
"profile": {
"type": "string",
"enum": [
"fdcpa"
]
}
},
"additionalProperties": false
}
},
"additionalProperties": false
},
"analysis": {
"type": "array",
"items": {
"type": "object",
"properties": {
"name": {
"type": "string",
"maxLength": 256
},
"type": {
"type": "string",
"enum": [
"string",
"number",
"boolean",
"enum"
]
},
"description": {
"type": "string"
},
"choices": {
"type": "array",
"items": {
"type": "string"
}
},
"examples": {
"type": "array",
"items": {
"type": "string"
}
}
},
"required": [
"name",
"type",
"description"
],
"additionalProperties": false
}
},
"providers": {
"type": "object",
"properties": {
"llm": {
"type": "object",
"properties": {
"provider": {
"type": "string",
"enum": [
"openai",
"simulated_openai",
"self_hosted",
"simulated_self_hosted"
]
},
"model": {
"$ref": "#/components/schemas/ModelIdentity"
}
},
"required": [
"provider",
"model"
],
"additionalProperties": false
},
"stt": {
"nullable": true,
"type": "object",
"properties": {
"provider": {
"type": "string"
},
"model": {
"type": "string"
},
"voiceId": {
"type": "string"
}
},
"required": [
"provider",
"model"
],
"additionalProperties": false
},
"tts": {
"nullable": true,
"type": "object",
"properties": {
"provider": {
"type": "string"
},
"model": {
"type": "string"
},
"voiceId": {
"type": "string"
}
},
"required": [
"provider",
"model"
],
"additionalProperties": false
}
},
"required": [
"llm",
"stt",
"tts"
],
"additionalProperties": false
},
"telephony": {
"nullable": true,
"type": "object",
"properties": {
"trunkId": {
"type": "string",
"minLength": 1,
"maxLength": 256
},
"from": {
"type": "string",
"pattern": "^\\+[1-9][0-9]{6,14}$"
}
},
"required": [
"trunkId"
],
"additionalProperties": false
},
"inbound_context": {
"type": "object",
"properties": {
"action_id": {
"type": "string",
"pattern": "^[a-z][a-z0-9_]{0,62}$"
},
"variables": {
"minItems": 1,
"maxItems": 256,
"type": "array",
"items": {
"type": "string",
"pattern": "^[A-Za-z_][A-Za-z0-9_.-]{0,127}$"
}
}
},
"required": [
"action_id",
"variables"
],
"additionalProperties": false
},
"recording": {
"nullable": true,
"type": "object",
"properties": {
"required": {
"type": "boolean"
},
"channels": {
"type": "string",
"enum": [
"dual"
]
}
},
"required": [
"required",
"channels"
],
"additionalProperties": false
},
"cloud": {
"nullable": true,
"type": "object",
"properties": {
"modes": {
"minItems": 1,
"type": "array",
"items": {
"type": "string",
"enum": [
"task",
"chat",
"background"
]
}
},
"input_schema": {
"type": "object",
"additionalProperties": {}
},
"output_schema": {
"type": "object",
"additionalProperties": {}
},
"max_turns": {
"type": "integer",
"minimum": 1,
"maximum": 200
},
"idle_timeout_ms": {
"type": "integer",
"minimum": 10000,
"maximum": 86400000
},
"deadline_ms": {
"type": "integer",
"minimum": 1000,
"maximum": 3600000
}
},
"required": [
"modes",
"input_schema",
"output_schema",
"max_turns",
"idle_timeout_ms",
"deadline_ms"
],
"additionalProperties": false
},
"actions": {
"type": "array",
"items": {
"type": "object",
"properties": {
"purpose": {
"type": "string",
"enum": [
"tokenization"
]
},
"name": {
"type": "string",
"pattern": "^[a-z][a-z0-9_]{0,62}$"
},
"description": {
"type": "string",
"minLength": 1,
"maxLength": 1024
},
"channels": {
"minItems": 1,
"type": "array",
"items": {
"type": "string",
"enum": [
"cloud",
"phone"
]
}
},
"method": {
"type": "string",
"enum": [
"GET",
"POST",
"PUT",
"PATCH",
"DELETE"
]
},
"url": {
"type": "string",
"format": "uri"
},
"headers": {
"default": {},
"type": "object",
"additionalProperties": {
"type": "string",
"maxLength": 1024
}
},
"auth": {
"oneOf": [
{
"type": "object",
"properties": {
"scheme": {
"type": "string",
"enum": [
"none"
]
}
},
"required": [
"scheme"
],
"additionalProperties": false
},
{
"type": "object",
"properties": {
"scheme": {
"type": "string",
"enum": [
"bearer",
"basic"
]
},
"secret_ref": {
"type": "object",
"properties": {
"id": {
"type": "string",
"minLength": 1,
"maxLength": 128
},
"version": {
"type": "string",
"minLength": 1,
"maxLength": 128
}
},
"required": [
"id",
"version"
],
"additionalProperties": false
}
},
"required": [
"scheme",
"secret_ref"
],
"additionalProperties": false
},
{
"type": "object",
"properties": {
"scheme": {
"type": "string",
"enum": [
"retell_signature"
]
},
"secret_ref": {
"type": "object",
"properties": {
"id": {
"type": "string",
"minLength": 1,
"maxLength": 128
},
"version": {
"type": "string",
"minLength": 1,
"maxLength": 128
}
},
"required": [
"id",
"version"
],
"additionalProperties": false
}
},
"required": [
"scheme",
"secret_ref"
],
"additionalProperties": false
},
{
"type": "object",
"properties": {
"scheme": {
"type": "string",
"enum": [
"header"
]
},
"header_name": {
"type": "string",
"minLength": 1,
"maxLength": 128
},
"secret_ref": {
"type": "object",
"properties": {
"id": {
"type": "string",
"minLength": 1,
"maxLength": 128
},
"version": {
"type": "string",
"minLength": 1,
"maxLength": 128
}
},
"required": [
"id",
"version"
],
"additionalProperties": false
}
},
"required": [
"scheme",
"header_name",
"secret_ref"
],
"additionalProperties": false
}
]
},
"input_schema": {
"type": "object",
"additionalProperties": {}
},
"output_schema": {
"type": "object",
"additionalProperties": {}
},
"idempotency": {
"oneOf": [
{
"type": "object",
"properties": {
"mode": {
"type": "string",
"enum": [
"effect_key"
]
}
},
"required": [
"mode"
],
"additionalProperties": false
},
{
"type": "object",
"properties": {
"mode": {
"type": "string",
"enum": [
"template"
]
},
"header": {
"default": "Idempotency-Key",
"type": "string"
},
"template": {
"type": "string",
"minLength": 1,
"maxLength": 512
}
},
"required": [
"mode",
"template"
],
"additionalProperties": false
},
{
"type": "object",
"properties": {
"mode": {
"type": "string",
"enum": [
"none_read_only"
]
}
},
"required": [
"mode"
],
"additionalProperties": false
}
]
},
"timeout_ms": {
"type": "integer",
"minimum": 500,
"maximum": 120000
},
"on_uncertain": {
"default": "failure_edge",
"type": "string",
"enum": [
"failure_edge",
"uncertain_edge"
]
}
},
"required": [
"name",
"description",
"channels",
"method",
"url",
"auth",
"input_schema",
"output_schema",
"idempotency",
"timeout_ms"
],
"additionalProperties": false
}
},
"notifications": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"type": "string",
"minLength": 1,
"maxLength": 128
},
"url": {
"type": "string",
"format": "uri"
},
"secret_ref": {
"type": "object",
"properties": {
"id": {
"type": "string",
"minLength": 1,
"maxLength": 128
},
"version": {
"type": "string",
"minLength": 1,
"maxLength": 128
}
},
"required": [
"id",
"version"
],
"additionalProperties": false
},
"format": {
"type": "string",
"enum": [
"semantic.v1"
]
},
"events": {
"minItems": 1,
"type": "array",
"items": {
"type": "string",
"enum": [
"run.admitted",
"run.ended",
"recording.updated",
"analysis.updated"
]
}
}
},
"required": [
"id",
"url",
"secret_ref",
"format",
"events"
],
"additionalProperties": false
}
},
"knowledge": {
"nullable": true,
"type": "object",
"properties": {
"document_ids": {
"type": "array",
"items": {
"type": "string",
"format": "uuid",
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$"
}
}
},
"required": [
"document_ids"
],
"additionalProperties": false
},
"triggers": {
"type": "array",
"items": {
"oneOf": [
{
"type": "object",
"properties": {
"kind": {
"type": "string",
"enum": [
"schedule"
]
},
"id": {
"type": "string",
"minLength": 1,
"maxLength": 128
},
"cron": {
"type": "string",
"pattern": "^(\\S+\\s+){4}\\S+$"
},
"timezone": {
"type": "string",
"minLength": 1,
"maxLength": 64
},
"input": {
"type": "object",
"additionalProperties": {}
}
},
"required": [
"kind",
"id",
"cron",
"timezone",
"input"
],
"additionalProperties": false
},
{
"type": "object",
"properties": {
"kind": {
"type": "string",
"enum": [
"event"
]
},
"id": {
"type": "string",
"minLength": 1,
"maxLength": 128
},
"event_type": {
"type": "string",
"enum": [
"run.ended",
"analysis.updated"
]
},
"source": {
"type": "object",
"properties": {
"agent_id": {
"type": "string",
"minLength": 1,
"maxLength": 256,
"pattern": "^[A-Za-z0-9][A-Za-z0-9_.:-]*$"
},
"channel": {
"type": "string",
"enum": [
"cloud",
"phone",
"web"
]
},
"dispositions": {
"maxItems": 32,
"type": "array",
"items": {
"type": "string",
"minLength": 1
}
}
},
"additionalProperties": false
},
"input_mapping": {
"type": "object",
"additionalProperties": {
"type": "string",
"pattern": "^\\/[A-Za-z0-9_/-]*$"
}
}
},
"required": [
"kind",
"id",
"event_type",
"source",
"input_mapping"
],
"additionalProperties": false
}
]
}
},
"layout": {
"$ref": "#/components/schemas/AgentLayout"
}
},
"required": [
"state",
"name",
"channels",
"languages",
"flow",
"settings",
"analysis",
"providers",
"telephony",
"recording",
"cloud",
"actions",
"notifications",
"knowledge",
"triggers",
"layout"
],
"additionalProperties": false
},
"DraftsEditResponse200": {
"type": "object",
"properties": {
"agent": {
"type": "object",
"properties": {
"tenant_id": {
"type": "string",
"format": "uuid",
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$"
},
"kind": {
"type": "string",
"enum": [
"agent"
]
},
"id": {
"type": "string",
"minLength": 1,
"maxLength": 256,
"pattern": "^[A-Za-z0-9][A-Za-z0-9_.:-]*$"
}
},
"required": [
"tenant_id",
"kind",
"id"
],
"additionalProperties": false
},
"draft_id": {
"type": "string",
"format": "uuid",
"pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$"
},
"revision": {
"type": "integer",
"minimum": 0,
"exclusiveMinimum": true,
"maximum": 2147483647
},
"base_version": {
"nullable": true,
"type": "integer",
"minimum": 0,
"maximum": 2147483647
},
"published_revision": {
"nullable": true,
"type": "integer",
"minimum": 0,
"exclusiveMinimum": true,
"maximum": 2147483647
},
"updated_at": {
"type": "string",
"format": "date-time",
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
}
},
"required": [
"agent",
"draft_id",
"revision",
"base_version",
"published_revision",
"updated_at"
],
"additionalProperties": false
},
"ModelIdentity": {
"type": "object",
"properties": {
"model_id": {
"type": "string",
"minLength": 1,
"pattern": "\\S"
},
"provider": {
"type": "string",
"minLength": 1,
"pattern": "\\S"
},
"tier": {
"type": "string",
"enum": [
"frontier",
"cumulus-served",
"customer-gpu"
]
}
},
"required": [
"model_id",
"provider",
"tier"
],
"additionalProperties": false
},
"AgentLayout": {
"type": "object",
"properties": {
"flow": {
"type": "object",
"properties": {
"nodes": {
"type": "object",
"additionalProperties": {
"type": "object",
"properties": {
"x": {
"type": "number",
"minimum": -10000000,
"maximum": 10000000
},
"y": {
"type": "number",
"minimum": -10000000,
"maximum": 10000000
}
},
"required": [
"x",
"y"
],
"additionalProperties": false
}
},
"start": {
"type": "object",
"properties": {
"x": {
"type": "number",
"minimum": -10000000,
"maximum": 10000000
},
"y": {
"type": "number",
"minimum": -10000000,
"maximum": 10000000
}
},
"required": [
"x",
"y"
],
"additionalProperties": false
},
"viewport": {
"type": "object",
"properties": {
"x": {
"type": "number",
"minimum": -10000000,
"maximum": 10000000
},
"y": {
"type": "number",
"minimum": -10000000,
"maximum": 10000000
},
"zoom": {
"type": "number",
"minimum": 0.01,
"maximum": 100
}
},
"required": [
"x",
"y",
"zoom"
],
"additionalProperties": false
}
},
"required": [
"nodes"
],
"additionalProperties": false
},
"components": {
"type": "object",
"additionalProperties": {
"type": "object",
"properties": {
"nodes": {
"type": "object",
"additionalProperties": {
"type": "object",
"properties": {
"x": {
"type": "number",
"minimum": -10000000,
"maximum": 10000000
},
"y": {
"type": "number",
"minimum": -10000000,
"maximum": 10000000
}
},
"required": [
"x",
"y"
],
"additionalProperties": false
}
},
"start": {
"type": "object",
"properties": {
"x": {
"type": "number",
"minimum": -10000000,
"maximum": 10000000
},
"y": {
"type": "number",
"minimum": -10000000,
"maximum": 10000000
}
},
"required": [
"x",
"y"
],
"additionalProperties": false
},
"viewport": {
"type": "object",
"properties": {
"x": {
"type": "number",
"minimum": -10000000,
"maximum": 10000000
},
"y": {
"type": "number",
"minimum": -10000000,
"maximum": 10000000
},
"zoom": {
"type": "number",
"minimum": 0.01,
"maximum": 100
}
},
"required": [
"x",
"y",
"zoom"
],
"additionalProperties": false
}
},
"required": [
"nodes"
],
"additionalProperties": false
}
}
},
"required": [
"flow",
"components"
],
"additionalProperties": false
},
"ApiError": {
"type": "object",
"properties": {
"error": {
"type": "object",
"properties": {
"code": {
"type": "string",
"enum": [
"unauthenticated",
"forbidden",
"not_found",
"conflict",
"invalid_request",
"idempotency_conflict",
"policy_denied",
"capability_unavailable",
"provider_unavailable",
"knowledge_unavailable",
"publication_invalid",
"run_not_active",
"rate_limited",
"outcome_unknown",
"internal"
]
},
"message": {
"type": "string"
},
"retryable": {
"type": "boolean"
},
"outcome": {
"type": "string",
"enum": [
"none",
"unknown"
]
},
"details": {
"type": "object",
"additionalProperties": {}
}
},
"required": [
"code",
"message",
"retryable",
"outcome"
],
"additionalProperties": false
}
},
"required": [
"error"
],
"additionalProperties": false
}
}
}
}
Errors and recovery
See API error handling and Troubleshooting.