CumulusDocs
Open Studio
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 use path).
  • MCP tool: sdk_client_call with operationId: "drafts.get" (path arguments use input.path). Legacy alias: drafts_get. Connect to your authenticated /mcp endpoint 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
curl --fail-with-body -sS "${CUMULUS_BASE_URL%/}/api/v1/agents/${AGENT_ID}/draft" \
  -H "Authorization: Bearer $CUMULUS_API_KEY"

TypeScript

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
OpenAPI JSON
{
  "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

FieldType or valuesRequiredDescription and limits
stateobjectRequired—
state.agentobjectRequired—
state.agent.tenant_idstring (uuid)Requiredpattern: ^([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.idstringRequiredminLength: 1. maxLength: 256. pattern: ^[A-Za-z0-9][A-Za-z0-9_.:-]*$.
state.draft_idstring (uuid)RequiredIdentifier 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.revisionintegerRequiredGreater than 0. At most 2147483647.
state.base_versioninteger or nullRequiredAt least 0. At most 2147483647.
state.published_revisioninteger or nullRequiredGreater than 0. At most 2147483647.
state.updated_atstring (date-time)Requiredpattern: ^(?:(?:\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))$.
namestringRequiredminLength: 1. maxLength: 256.
channelsarray of "cloud" · "phone"RequiredminItems: 1.
languagesarray of "en" · "es"RequiredminItems: 1.
flowobjectRequired—
flow.schemaVersion2Required—
flow.idstringRequiredminLength: 1. maxLength: 256.
flow.versionintegerRequiredAt least 0. At most 2147483647.
flow.startNodeIdstringRequiredminLength: 1. maxLength: 256.
flow.startSpeaker"agent" · "user"Required—
flow.globalPromptstringRequired—
flow.nodesarray of objectRequired—
flow.nodes[].idstringRequiredminLength: 1. maxLength: 256.
flow.nodes[].kind"conversation" · "end" · "branch" · "transfer_call" · "function" · "extract_dynamic_variables" · "verify_identity" · "tokenize_private" · "component"Required—
flow.nodes[].edgesarray of objectRequired—
flow.nodes[].edges[].idstringOptionalminLength: 1. maxLength: 256.
flow.nodes[].edges[].destinationNodeIdstringOptionalminLength: 1. maxLength: 256.
flow.nodes[].edges[].slot"edges" · "else_edge" · "skip_response_edge" · "always_edge" · "edge" · "success_edge"Required—
flow.nodes[].edges[].conditionobjectRequired—
flow.nodes[].edges[].condition · variant 1object—Fields for this schema branch.
flow.nodes[].edges[].condition.type"always"Required—
flow.nodes[].edges[].condition · variant 2object—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 3object—Fields for this schema branch.
flow.nodes[].edges[].condition.type"prompt"Required—
flow.nodes[].edges[].condition.promptstringRequired—
flow.nodes[].edges[].condition · variant 4object—Fields for this schema branch.
flow.nodes[].edges[].condition.type"equation"Required—
flow.nodes[].edges[].condition.operator"&&" · "||"Required—
flow.nodes[].edges[].condition.equationsarray of objectRequiredminItems: 1.
flow.nodes[].edges[].condition.equations[].leftstringRequired—
flow.nodes[].edges[].condition.equations[].operator"==" · "!=" · ">" · "<" · ">=" · "<=" · "contains" · "is_set" · "is_not_set"Required—
flow.nodes[].edges[].condition.equations[].rightstringRequired—
flow.nodes[].edges[].complianceobjectOptional—
flow.nodes[].edges[].compliance.setsarray of "rpc_confirmed"RequiredminItems: 1.
flow.nodes[].namestringOptional—
flow.nodes[].instructionobjectOptional—
flow.nodes[].instruction.type"prompt" · "static_text"Required—
flow.nodes[].instruction.textstringRequired—
flow.nodes[].startSpeaker"agent" · "user"Optional—
flow.nodes[].interruptionSensitivitynumberOptionalAt least 0. At most 1.
flow.nodes[].voiceSpeednumberOptionalAt least 0.5. At most 2.
flow.nodes[].languageLockedbooleanOptional—
flow.nodes[].globalNodeSettingobjectOptional—
flow.nodes[].globalNodeSetting.conditionstringRequired—
flow.nodes[].globalNodeSetting.coolDownnumberOptionalAt least 0.
flow.nodes[].toolIdstringOptionalminLength: 1. maxLength: 256.
flow.nodes[].waitForResultbooleanOptional—
flow.nodes[].speakDuringExecutionbooleanOptional—
flow.nodes[].executionMessageobjectOptional—
flow.nodes[].executionMessage.type"prompt" · "static_text"Required—
flow.nodes[].executionMessage.textstringRequired—
flow.nodes[].transferobjectOptional—
flow.nodes[].transfer.destinationobjectRequired—
flow.nodes[].transfer.destination · variant 1object—Fields for this schema branch.
flow.nodes[].transfer.destination.type"predefined"Required—
flow.nodes[].transfer.destination.numberstringRequired—
flow.nodes[].transfer.destination · variant 2object—Fields for this schema branch.
flow.nodes[].transfer.destination.type"inferred"Required—
flow.nodes[].transfer.destination.promptstringRequired—
flow.nodes[].transfer.optionobjectRequired—
flow.nodes[].transfer.option.type"cold_transfer" · "warm_transfer"Required—
flow.nodes[].transfer.option.showTransfereeAsCallerbooleanOptional—
flow.nodes[].transfer.option.optOutHumanDetectionbooleanOptional—
flow.nodes[].transfer.option.enableBridgeAudioCuebooleanOptional—
flow.nodes[].transfer.option.onHoldMusicstringOptional—
flow.nodes[].transfer.option.agentDetectionTimeoutMsintegerOptionalAt least 0. At most 9007199254740991.
flow.nodes[].transfer.option.agentDetectionPromptstringOptional—
flow.nodes[].transfer.option.transferMessageobjectOptional—
flow.nodes[].transfer.option.transferMessage.type"prompt" · "static_text"Required—
flow.nodes[].transfer.option.transferMessage.textstringRequired—
flow.nodes[].transfer.option.privateHandoffMessageobjectOptional—
flow.nodes[].transfer.option.privateHandoffMessage.type"prompt" · "static_text"Required—
flow.nodes[].transfer.option.privateHandoffMessage.textstringRequired—
flow.nodes[].transfer.option.coldTransferModestringOptional—
flow.nodes[].transfer.ignoreE164ValidationbooleanRequired—
flow.nodes[].variablesarray of objectOptional—
flow.nodes[].variables[].namestringRequiredmaxLength: 256.
flow.nodes[].variables[].type"string" · "number" · "boolean" · "enum"Required—
flow.nodes[].variables[].descriptionstringRequired—
flow.nodes[].variables[].choicesarray of stringOptional—
flow.nodes[].modelChoiceobjectOptional—
flow.nodes[].modelChoice.modelobjectRequired—
flow.nodes[].modelChoice.model.model_idstringRequiredminLength: 1. pattern: \S.
flow.nodes[].modelChoice.model.providerstringRequiredminLength: 1. pattern: \S.
flow.nodes[].modelChoice.model.tier"frontier" · "cumulus-served" · "customer-gpu"Required—
flow.nodes[].modelChoice.credentialobjectOptional—
flow.nodes[].modelChoice.credential.idstringRequiredminLength: 1. maxLength: 256.
flow.nodes[].modelChoice.credential.versionstringRequiredminLength: 1. maxLength: 256.
flow.nodes[].modelChoice.credential.providerstringRequiredminLength: 1. maxLength: 256.
flow.nodes[].modelChoice.type"cascading"Required—
flow.nodes[].modelChoice.highPrioritybooleanRequired—
flow.nodes[].modelChoice.reasoningEffort"low" · "medium" · "high"Optional—
flow.nodes[].componentIdstringOptionalminLength: 1. maxLength: 256.
flow.nodes[].verificationobjectOptional—
flow.nodes[].verification.subjectVariablestringRequiredpattern: ^[A-Za-z_][A-Za-z0-9_]{0,255}$.
flow.nodes[].verification.fieldsarray of objectRequiredmaxItems: 8.
flow.nodes[].verification.fields[].idstringRequiredpattern: ^[A-Za-z_][A-Za-z0-9_]{0,63}$.
flow.nodes[].verification.fields[].expectedVariablestringRequiredpattern: ^[A-Za-z_][A-Za-z0-9_]{0,255}$.
flow.nodes[].verification.fields[].privateAliasesarray of stringOptionalmaxItems: 16.
flow.nodes[].verification.fields[].enabledVariablestringRequiredpattern: ^[A-Za-z_][A-Za-z0-9_]{0,255}$.
flow.nodes[].verification.fields[].formatobjectRequired—
flow.nodes[].verification.fields[].format · variant 1object—Fields for this schema branch.
flow.nodes[].verification.fields[].format.kind"digits"Required—
flow.nodes[].verification.fields[].format.lengthintegerRequiredAt least 1. At most 32.
flow.nodes[].verification.fields[].format · variant 2object—Fields for this schema branch.
flow.nodes[].verification.fields[].format.kind"date_yyyymmdd"Required—
flow.nodes[].verification.fields[].promptobjectRequired—
flow.nodes[].verification.fields[].prompt.enstringRequired—
flow.nodes[].verification.fields[].prompt.esstringOptional—
flow.nodes[].verification.requiredobjectRequired—
flow.nodes[].verification.required · variant 1object—Fields for this schema branch.
flow.nodes[].verification.required.kind"fixed"Required—
flow.nodes[].verification.required.countintegerRequiredAt least 1. At most 8.
flow.nodes[].verification.required · variant 2object—Fields for this schema branch.
flow.nodes[].verification.required.kind"variable"Required—
flow.nodes[].verification.required.namestringRequiredpattern: ^[A-Za-z_][A-Za-z0-9_]{0,255}$.
flow.nodes[].verification.timeoutMsintegerRequiredAt least 1000. At most 180000.
flow.nodes[].verification.lookupobjectOptional—
flow.nodes[].verification.lookup.toolIdstringRequiredminLength: 1.
flow.nodes[].verification.lookup.fieldIdstringRequiredpattern: ^[A-Za-z_][A-Za-z0-9_]{0,63}$.
flow.nodes[].verification.lookup.parameterstringRequiredpattern: ^[A-Za-z_][A-Za-z0-9_]{0,255}$.
flow.nodes[].verification.lookup.argumentsarray of objectRequiredmaxItems: 64.
flow.nodes[].verification.lookup.arguments[].parameterstringRequiredpattern: ^[A-Za-z_][A-Za-z0-9_]{0,255}$.
flow.nodes[].verification.lookup.arguments[].variablestringRequiredpattern: ^[A-Za-z_][A-Za-z0-9_]{0,255}$.
flow.nodes[].tokenizationobjectOptional—
flow.nodes[].tokenization.toolIdstringRequiredmaxLength: 256.
flow.nodes[].tokenization.subjectVariablestringRequiredpattern: ^(?!(?:proto|constructor|prototype)$)[A-Za-z_][A-Za-z0-9_]{0,255}$.
flow.nodes[].tokenization.consentPromptobjectRequired—
flow.nodes[].tokenization.consentPrompt.enstringRequiredmaxLength: 4096.
flow.nodes[].tokenization.consentPrompt.esstringOptionalmaxLength: 4096.
flow.nodes[].tokenization.timeoutMsintegerRequiredAt least 1000. At most 180000.
flow.nodes[].tokenization.fieldsarray of objectRequiredmaxItems: 7.
flow.nodes[].tokenization.fields[].idstringRequiredpattern: ^[A-Za-z_][A-Za-z0-9_]{0,63}$.
flow.nodes[].tokenization.fields[].parameterstringRequiredmaxLength: 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[].minDigitsintegerRequiredAt least 1. At most 32.
flow.nodes[].tokenization.fields[].maxDigitsintegerRequiredAt least 1. At most 32.
flow.nodes[].tokenization.fields[].encoding"string" · "integer"Required—
flow.nodes[].tokenization.fields[].minimumintegerOptionalAt least 0. At most 999999999.
flow.nodes[].tokenization.fields[].maximumintegerOptionalAt least 0. At most 999999999.
flow.nodes[].tokenization.fields[].promptobjectRequired—
flow.nodes[].tokenization.fields[].prompt.enstringRequiredmaxLength: 4096.
flow.nodes[].tokenization.fields[].prompt.esstringOptionalmaxLength: 4096.
flow.nodes[].tokenization.argumentsarray of objectRequiredmaxItems: 64.
flow.nodes[].tokenization.arguments[].parameterstringRequiredmaxLength: 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[].sourceobjectRequired—
flow.nodes[].tokenization.arguments[].source · variant 1object—Fields for this schema branch.
flow.nodes[].tokenization.arguments[].source.kind"variable"Required—
flow.nodes[].tokenization.arguments[].source.namestringRequiredpattern: ^(?!(?:proto|constructor|prototype)$)[A-Za-z_][A-Za-z0-9_]{0,255}$.
flow.nodes[].tokenization.arguments[].source · variant 2object—Fields for this schema branch.
flow.nodes[].tokenization.arguments[].source.kind"constant"Required—
flow.nodes[].tokenization.arguments[].source.valuestring or number or boolean or nullRequired—
flow.nodes[].tokenization.arguments[].source.value · variant 1string—Fields for this schema branch.
flow.nodes[].tokenization.arguments[].source.value · variant 2number—Fields for this schema branch.
flow.nodes[].tokenization.arguments[].source.value · variant 3boolean—Fields for this schema branch.
flow.nodes[].tokenization.tokenIdPathstringRequiredmaxLength: 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.tokenVariablestringRequiredpattern: ^(?!(?:proto|constructor|prototype)$)[A-Za-z_][A-Za-z0-9_]{0,255}$.
flow.nodes[].tokenization.last4VariablestringRequiredpattern: ^(?!(?:proto|constructor|prototype)$)[A-Za-z_][A-Za-z0-9_]{0,255}$.
flow.nodes[].tokenization.last4FieldstringRequiredmaxLength: 64.
flow.toolsarray of objectRequired—
flow.tools[].idstringRequiredminLength: 1. maxLength: 256.
flow.tools[].type"custom"Required—
flow.tools[].namestringRequiredminLength: 1. maxLength: 256.
flow.tools[].descriptionstringRequired—
flow.tools[].method"GET" · "POST" · "PUT" · "PATCH" · "DELETE"Required—
flow.tools[].responseVariablesobjectRequired—
flow.tools[].responseVariables.*stringOptionalAdditional keys are allowed.
flow.tools[].responseVariablePolicy"required" · "replace_available"Optional—
flow.tools[].speakAfterExecutionbooleanOptional—
flow.componentsarray of objectRequired—
flow.components[].idstringRequiredminLength: 1. maxLength: 256.
flow.components[].startNodeIdstringRequiredminLength: 1. maxLength: 256.
flow.components[].nodesarray of objectRequired—
flow.components[].nodes[].idstringRequiredminLength: 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[].edgesarray of objectRequired—
flow.components[].nodes[].edges[].idstringOptionalminLength: 1. maxLength: 256.
flow.components[].nodes[].edges[].destinationNodeIdstringOptionalminLength: 1. maxLength: 256.
flow.components[].nodes[].edges[].slot"edges" · "else_edge" · "skip_response_edge" · "always_edge" · "edge" · "success_edge"Required—
flow.components[].nodes[].edges[].conditionobjectRequired—
flow.components[].nodes[].edges[].condition · variant 1object—Fields for this schema branch.
flow.components[].nodes[].edges[].condition.type"always"Required—
flow.components[].nodes[].edges[].condition · variant 2object—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 3object—Fields for this schema branch.
flow.components[].nodes[].edges[].condition.type"prompt"Required—
flow.components[].nodes[].edges[].condition.promptstringRequired—
flow.components[].nodes[].edges[].condition · variant 4object—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.equationsarray of objectRequiredminItems: 1.
flow.components[].nodes[].edges[].condition.equations[].leftstringRequired—
flow.components[].nodes[].edges[].condition.equations[].operator"==" · "!=" · ">" · "<" · ">=" · "<=" · "contains" · "is_set" · "is_not_set"Required—
flow.components[].nodes[].edges[].condition.equations[].rightstringRequired—
flow.components[].nodes[].edges[].complianceobjectOptional—
flow.components[].nodes[].edges[].compliance.setsarray of "rpc_confirmed"RequiredminItems: 1.
flow.components[].nodes[].namestringOptional—
flow.components[].nodes[].instructionobjectOptional—
flow.components[].nodes[].instruction.type"prompt" · "static_text"Required—
flow.components[].nodes[].instruction.textstringRequired—
flow.components[].nodes[].startSpeaker"agent" · "user"Optional—
flow.components[].nodes[].interruptionSensitivitynumberOptionalAt least 0. At most 1.
flow.components[].nodes[].voiceSpeednumberOptionalAt least 0.5. At most 2.
flow.components[].nodes[].languageLockedbooleanOptional—
flow.components[].nodes[].globalNodeSettingobjectOptional—
flow.components[].nodes[].globalNodeSetting.conditionstringRequired—
flow.components[].nodes[].globalNodeSetting.coolDownnumberOptionalAt least 0.
flow.components[].nodes[].toolIdstringOptionalminLength: 1. maxLength: 256.
flow.components[].nodes[].waitForResultbooleanOptional—
flow.components[].nodes[].speakDuringExecutionbooleanOptional—
flow.components[].nodes[].executionMessageobjectOptional—
flow.components[].nodes[].executionMessage.type"prompt" · "static_text"Required—
flow.components[].nodes[].executionMessage.textstringRequired—
flow.components[].nodes[].transferobjectOptional—
flow.components[].nodes[].transfer.destinationobjectRequired—
flow.components[].nodes[].transfer.destination · variant 1object—Fields for this schema branch.
flow.components[].nodes[].transfer.destination.type"predefined"Required—
flow.components[].nodes[].transfer.destination.numberstringRequired—
flow.components[].nodes[].transfer.destination · variant 2object—Fields for this schema branch.
flow.components[].nodes[].transfer.destination.type"inferred"Required—
flow.components[].nodes[].transfer.destination.promptstringRequired—
flow.components[].nodes[].transfer.optionobjectRequired—
flow.components[].nodes[].transfer.option.type"cold_transfer" · "warm_transfer"Required—
flow.components[].nodes[].transfer.option.showTransfereeAsCallerbooleanOptional—
flow.components[].nodes[].transfer.option.optOutHumanDetectionbooleanOptional—
flow.components[].nodes[].transfer.option.enableBridgeAudioCuebooleanOptional—
flow.components[].nodes[].transfer.option.onHoldMusicstringOptional—
flow.components[].nodes[].transfer.option.agentDetectionTimeoutMsintegerOptionalAt least 0. At most 9007199254740991.
flow.components[].nodes[].transfer.option.agentDetectionPromptstringOptional—
flow.components[].nodes[].transfer.option.transferMessageobjectOptional—
flow.components[].nodes[].transfer.option.transferMessage.type"prompt" · "static_text"Required—
flow.components[].nodes[].transfer.option.transferMessage.textstringRequired—
flow.components[].nodes[].transfer.option.privateHandoffMessageobjectOptional—
flow.components[].nodes[].transfer.option.privateHandoffMessage.type"prompt" · "static_text"Required—
flow.components[].nodes[].transfer.option.privateHandoffMessage.textstringRequired—
flow.components[].nodes[].transfer.option.coldTransferModestringOptional—
flow.components[].nodes[].transfer.ignoreE164ValidationbooleanRequired—
flow.components[].nodes[].variablesarray of objectOptional—
flow.components[].nodes[].variables[].namestringRequiredmaxLength: 256.
flow.components[].nodes[].variables[].type"string" · "number" · "boolean" · "enum"Required—
flow.components[].nodes[].variables[].descriptionstringRequired—
flow.components[].nodes[].variables[].choicesarray of stringOptional—
flow.components[].nodes[].modelChoiceobjectOptional—
flow.components[].nodes[].modelChoice.modelobjectRequired—
flow.components[].nodes[].modelChoice.model.model_idstringRequiredminLength: 1. pattern: \S.
flow.components[].nodes[].modelChoice.model.providerstringRequiredminLength: 1. pattern: \S.
flow.components[].nodes[].modelChoice.model.tier"frontier" · "cumulus-served" · "customer-gpu"Required—
flow.components[].nodes[].modelChoice.credentialobjectOptional—
flow.components[].nodes[].modelChoice.credential.idstringRequiredminLength: 1. maxLength: 256.
flow.components[].nodes[].modelChoice.credential.versionstringRequiredminLength: 1. maxLength: 256.
flow.components[].nodes[].modelChoice.credential.providerstringRequiredminLength: 1. maxLength: 256.
flow.components[].nodes[].modelChoice.type"cascading"Required—
flow.components[].nodes[].modelChoice.highPrioritybooleanRequired—
flow.components[].nodes[].modelChoice.reasoningEffort"low" · "medium" · "high"Optional—
flow.components[].nodes[].componentIdstringOptionalminLength: 1. maxLength: 256.
flow.components[].nodes[].verificationobjectOptional—
flow.components[].nodes[].verification.subjectVariablestringRequiredpattern: ^[A-Za-z_][A-Za-z0-9_]{0,255}$.
flow.components[].nodes[].verification.fieldsarray of objectRequiredmaxItems: 8.
flow.components[].nodes[].verification.fields[].idstringRequiredpattern: ^[A-Za-z_][A-Za-z0-9_]{0,63}$.
flow.components[].nodes[].verification.fields[].expectedVariablestringRequiredpattern: ^[A-Za-z_][A-Za-z0-9_]{0,255}$.
flow.components[].nodes[].verification.fields[].privateAliasesarray of stringOptionalmaxItems: 16.
flow.components[].nodes[].verification.fields[].enabledVariablestringRequiredpattern: ^[A-Za-z_][A-Za-z0-9_]{0,255}$.
flow.components[].nodes[].verification.fields[].formatobjectRequired—
flow.components[].nodes[].verification.fields[].format · variant 1object—Fields for this schema branch.
flow.components[].nodes[].verification.fields[].format.kind"digits"Required—
flow.components[].nodes[].verification.fields[].format.lengthintegerRequiredAt least 1. At most 32.
flow.components[].nodes[].verification.fields[].format · variant 2object—Fields for this schema branch.
flow.components[].nodes[].verification.fields[].format.kind"date_yyyymmdd"Required—
flow.components[].nodes[].verification.fields[].promptobjectRequired—
flow.components[].nodes[].verification.fields[].prompt.enstringRequired—
flow.components[].nodes[].verification.fields[].prompt.esstringOptional—
flow.components[].nodes[].verification.requiredobjectRequired—
flow.components[].nodes[].verification.required · variant 1object—Fields for this schema branch.
flow.components[].nodes[].verification.required.kind"fixed"Required—
flow.components[].nodes[].verification.required.countintegerRequiredAt least 1. At most 8.
flow.components[].nodes[].verification.required · variant 2object—Fields for this schema branch.
flow.components[].nodes[].verification.required.kind"variable"Required—
flow.components[].nodes[].verification.required.namestringRequiredpattern: ^[A-Za-z_][A-Za-z0-9_]{0,255}$.
flow.components[].nodes[].verification.timeoutMsintegerRequiredAt least 1000. At most 180000.
flow.components[].nodes[].verification.lookupobjectOptional—
flow.components[].nodes[].verification.lookup.toolIdstringRequiredminLength: 1.
flow.components[].nodes[].verification.lookup.fieldIdstringRequiredpattern: ^[A-Za-z_][A-Za-z0-9_]{0,63}$.
flow.components[].nodes[].verification.lookup.parameterstringRequiredpattern: ^[A-Za-z_][A-Za-z0-9_]{0,255}$.
flow.components[].nodes[].verification.lookup.argumentsarray of objectRequiredmaxItems: 64.
flow.components[].nodes[].verification.lookup.arguments[].parameterstringRequiredpattern: ^[A-Za-z_][A-Za-z0-9_]{0,255}$.
flow.components[].nodes[].verification.lookup.arguments[].variablestringRequiredpattern: ^[A-Za-z_][A-Za-z0-9_]{0,255}$.
flow.components[].nodes[].tokenizationobjectOptional—
flow.components[].nodes[].tokenization.toolIdstringRequiredmaxLength: 256.
flow.components[].nodes[].tokenization.subjectVariablestringRequiredpattern: ^(?!(?:proto|constructor|prototype)$)[A-Za-z_][A-Za-z0-9_]{0,255}$.
flow.components[].nodes[].tokenization.consentPromptobjectRequired—
flow.components[].nodes[].tokenization.consentPrompt.enstringRequiredmaxLength: 4096.
flow.components[].nodes[].tokenization.consentPrompt.esstringOptionalmaxLength: 4096.
flow.components[].nodes[].tokenization.timeoutMsintegerRequiredAt least 1000. At most 180000.
flow.components[].nodes[].tokenization.fieldsarray of objectRequiredmaxItems: 7.
flow.components[].nodes[].tokenization.fields[].idstringRequiredpattern: ^[A-Za-z_][A-Za-z0-9_]{0,63}$.
flow.components[].nodes[].tokenization.fields[].parameterstringRequiredmaxLength: 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[].minDigitsintegerRequiredAt least 1. At most 32.
flow.components[].nodes[].tokenization.fields[].maxDigitsintegerRequiredAt least 1. At most 32.
flow.components[].nodes[].tokenization.fields[].encoding"string" · "integer"Required—
flow.components[].nodes[].tokenization.fields[].minimumintegerOptionalAt least 0. At most 999999999.
flow.components[].nodes[].tokenization.fields[].maximumintegerOptionalAt least 0. At most 999999999.
flow.components[].nodes[].tokenization.fields[].promptobjectRequired—
flow.components[].nodes[].tokenization.fields[].prompt.enstringRequiredmaxLength: 4096.
flow.components[].nodes[].tokenization.fields[].prompt.esstringOptionalmaxLength: 4096.
flow.components[].nodes[].tokenization.argumentsarray of objectRequiredmaxItems: 64.
flow.components[].nodes[].tokenization.arguments[].parameterstringRequiredmaxLength: 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[].sourceobjectRequired—
flow.components[].nodes[].tokenization.arguments[].source · variant 1object—Fields for this schema branch.
flow.components[].nodes[].tokenization.arguments[].source.kind"variable"Required—
flow.components[].nodes[].tokenization.arguments[].source.namestringRequiredpattern: ^(?!(?:proto|constructor|prototype)$)[A-Za-z_][A-Za-z0-9_]{0,255}$.
flow.components[].nodes[].tokenization.arguments[].source · variant 2object—Fields for this schema branch.
flow.components[].nodes[].tokenization.arguments[].source.kind"constant"Required—
flow.components[].nodes[].tokenization.arguments[].source.valuestring or number or boolean or nullRequired—
flow.components[].nodes[].tokenization.arguments[].source.value · variant 1string—Fields for this schema branch.
flow.components[].nodes[].tokenization.arguments[].source.value · variant 2number—Fields for this schema branch.
flow.components[].nodes[].tokenization.arguments[].source.value · variant 3boolean—Fields for this schema branch.
flow.components[].nodes[].tokenization.tokenIdPathstringRequiredmaxLength: 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.tokenVariablestringRequiredpattern: ^(?!(?:proto|constructor|prototype)$)[A-Za-z_][A-Za-z0-9_]{0,255}$.
flow.components[].nodes[].tokenization.last4VariablestringRequiredpattern: ^(?!(?:proto|constructor|prototype)$)[A-Za-z_][A-Za-z0-9_]{0,255}$.
flow.components[].nodes[].tokenization.last4FieldstringRequiredmaxLength: 64.
flow.components[].toolsarray of objectRequired—
flow.components[].tools[].idstringRequiredminLength: 1. maxLength: 256.
flow.components[].tools[].type"custom"Required—
flow.components[].tools[].namestringRequiredminLength: 1. maxLength: 256.
flow.components[].tools[].descriptionstringRequired—
flow.components[].tools[].method"GET" · "POST" · "PUT" · "PATCH" · "DELETE"Required—
flow.components[].tools[].responseVariablesobjectRequired—
flow.components[].tools[].responseVariables.*stringOptionalAdditional keys are allowed.
flow.components[].tools[].responseVariablePolicy"required" · "replace_available"Optional—
flow.components[].tools[].speakAfterExecutionbooleanOptional—
flow.components[].flexModebooleanOptional—
flow.defaultDynamicVariablesobjectRequired—
flow.defaultDynamicVariables.*stringOptionalAdditional keys are allowed.
flow.callContextVariablesarray of stringOptional—
flow.modelChoiceobjectOptional—
flow.modelChoice.modelobjectRequired—
flow.modelChoice.model.model_idstringRequiredminLength: 1. pattern: \S.
flow.modelChoice.model.providerstringRequiredminLength: 1. pattern: \S.
flow.modelChoice.model.tier"frontier" · "cumulus-served" · "customer-gpu"Required—
flow.modelChoice.credentialobjectOptional—
flow.modelChoice.credential.idstringRequiredminLength: 1. maxLength: 256.
flow.modelChoice.credential.versionstringRequiredminLength: 1. maxLength: 256.
flow.modelChoice.credential.providerstringRequiredminLength: 1. maxLength: 256.
flow.modelChoice.type"cascading"Required—
flow.modelChoice.highPrioritybooleanRequired—
flow.modelChoice.reasoningEffort"low" · "medium" · "high"Optional—
flow.toolCallStrictModebooleanRequired—
settingsobjectRequired—
settings.voiceIdstringOptionalminLength: 1. maxLength: 256.
settings.voiceModelstringOptionalminLength: 1. maxLength: 256.
settings.voiceSpeednumberOptionalAt least 0.5. At most 2.
settings.voiceTemperaturenumberOptionalAt least 0. At most 2.
settings.volumenumberOptionalAt least 0. At most 2.
settings.languagestring or array of stringOptional—
settings.language · variant 1string—Fields for this schema branch.
settings.language · variant 2array of string—Fields for this schema branch.
settings.responsivenessnumberOptionalAt least 0. At most 1.
settings.interruptionSensitivitynumberOptionalAt least 0. At most 1.
settings.enableBackchannelbooleanOptional—
settings.backchannelFrequencynumberOptionalAt least 0. At most 1.
settings.backchannelWordsarray of stringOptional—
settings.reminderTriggerMsintegerOptionalAt least 0. At most 3600000.
settings.reminderMaxCountintegerOptionalAt least 0. At most 100.
settings.maxCallDurationMsintegerOptionalAt least 1000. At most 86400000.
settings.endCallAfterSilenceMsintegerOptionalAt least 1000. At most 3600000.
settings.ringDurationMsintegerOptionalAt least 1000. At most 300000.
settings.beginMessageDelayMsintegerOptionalAt least 0. At most 60000.
settings.normalizeForSpeechbooleanOptional—
settings.openerWaitsForCalleebooleanOptional—
settings.voicemailobjectOptional—
settings.voicemail.enabledbooleanRequired—
settings.voicemail.detectionTimeoutMsintegerOptionalGreater than 0. At most 9007199254740991.
settings.voicemail.action"hangup" · "leave_message"Optional—
settings.voicemail.messageobjectOptional—
settings.voicemail.message.type"prompt" · "static_text"Required—
settings.voicemail.message.textstringRequired—
settings.ambientSoundstringOptional—
settings.ambientSoundVolumenumberOptionalAt least 0. At most 2.
settings.boostedKeywordsarray of stringOptional—
settings.pronunciationDictionaryarray of objectOptional—
settings.pronunciationDictionary[].wordstringRequiredminLength: 1. maxLength: 256.
settings.pronunciationDictionary[].alphabet"ipa" · "cmu"Required—
settings.pronunciationDictionary[].phonemestringRequiredminLength: 1. maxLength: 256.
settings.denoisingModestringOptional—
settings.sttModestringOptional—
settings.allowUserDtmfbooleanOptional—
settings.allowDtmfInterruptionbooleanOptional—
settings.userDtmfOptionsobject or nullOptional—
settings.userDtmfOptions.digitLimitinteger or nullOptionalGreater than 0. At most 9007199254740991.
settings.userDtmfOptions.terminationKey"0" · "1" · "2" · "3" · "4" · "5" · "6" · "7" · "8" · "9" · "*" · "#" or nullOptional—
settings.userDtmfOptions.timeoutMsintegerOptionalGreater than 0. At most 9007199254740991.
settings.dataStorageSetting"everything" · "everything_except_pii" · "basic_attributes_only"Optional—
settings.optInSignedUrlbooleanOptional—
settings.piiConfigobjectOptional—
settings.piiConfig.mode"post_call"Required—
settings.piiConfig.categoriesarray 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.handbookConfigobjectOptional—
settings.handbookConfig.defaultPersonalitybooleanOptional—
settings.handbookConfig.conversationalPersonalitybooleanOptional—
settings.handbookConfig.naturalFillerWordsbooleanOptional—
settings.handbookConfig.highEmpathybooleanOptional—
settings.handbookConfig.echoVerificationbooleanOptional—
settings.handbookConfig.natoPhoneticAlphabetbooleanOptional—
settings.handbookConfig.speechNormalizationbooleanOptional—
settings.handbookConfig.smartMatchingbooleanOptional—
settings.handbookConfig.aiDisclosurebooleanOptional—
settings.handbookConfig.scopeBoundariesbooleanOptional—
settings.ivrobjectOptional—
settings.ivr · variant 1object—Fields for this schema branch.
settings.ivr.enabledfalseRequired—
settings.ivr · variant 2object—Fields for this schema branch.
settings.ivr.enabledtrueRequired—
settings.ivr.action"hangup"Required—
settings.ivr.detectionWindowMs180000Required—
settings.ivr.detectionPromptstring or nullOptional—
settings.screenerobjectOptional—
settings.screener · variant 1object—Fields for this schema branch.
settings.screener.action"hangup"Required—
settings.screener · variant 2object—Fields for this schema branch.
settings.screener.action"wait"Required—
settings.screener.waitMsintegerOptionalAt least 5000. At most 120000.
settings.screener · variant 3object—Fields for this schema branch.
settings.screener.action"play_line"Required—
settings.screener.waitMsintegerOptionalAt least 5000. At most 120000.
settings.screener.lineobjectRequired—
settings.screener.line.enstringOptionalminLength: 1. maxLength: 500.
settings.screener.line.esstringOptionalminLength: 1. maxLength: 500.
settings.screener · variant 4object—Fields for this schema branch.
settings.screener.action"treat_as_human"Required—
settings.postCallAnalysisModelobjectOptional—
settings.postCallAnalysisModel.modelobjectRequired—
settings.postCallAnalysisModel.model.model_idstringRequiredminLength: 1. pattern: \S.
settings.postCallAnalysisModel.model.providerstringRequiredminLength: 1. pattern: \S.
settings.postCallAnalysisModel.model.tier"frontier" · "cumulus-served" · "customer-gpu"Required—
settings.postCallAnalysisModel.credentialobjectOptional—
settings.postCallAnalysisModel.credential.idstringRequiredminLength: 1. maxLength: 256.
settings.postCallAnalysisModel.credential.versionstringRequiredminLength: 1. maxLength: 256.
settings.postCallAnalysisModel.credential.providerstringRequiredminLength: 1. maxLength: 256.
settings.complianceobjectOptional—
settings.compliance.profile"fdcpa"Optional—
analysisarray of objectRequired—
analysis[].namestringRequiredmaxLength: 256.
analysis[].type"string" · "number" · "boolean" · "enum"Required—
analysis[].descriptionstringRequired—
analysis[].choicesarray of stringOptional—
analysis[].examplesarray of stringOptional—
providersobjectRequired—
providers.llmobjectRequired—
providers.llm.provider"openai" · "simulated_openai" · "self_hosted" · "simulated_self_hosted"Required—
providers.llm.modelobjectRequired—
providers.llm.model.model_idstringRequiredminLength: 1. pattern: \S.
providers.llm.model.providerstringRequiredminLength: 1. pattern: \S.
providers.llm.model.tier"frontier" · "cumulus-served" · "customer-gpu"Required—
providers.sttobject or nullRequired—
providers.stt.providerstringRequired in a non-null parent—
providers.stt.modelstringRequired in a non-null parent—
providers.stt.voiceIdstringOptional—
providers.ttsobject or nullRequired—
providers.tts.providerstringRequired in a non-null parent—
providers.tts.modelstringRequired in a non-null parent—
providers.tts.voiceIdstringOptional—
telephonyobject or nullRequired—
telephony.trunkIdstringRequired in a non-null parentminLength: 1. maxLength: 256.
telephony.fromstringOptionalpattern: ^+[1-9][0-9]{6,14}$.
inbound_contextobjectOptional—
inbound_context.action_idstringRequiredpattern: ^[a-z][a-z0-9_]{0,62}$.
inbound_context.variablesarray of stringRequiredminItems: 1. maxItems: 256.
recordingobject or nullRequired—
recording.requiredbooleanRequired in a non-null parent—
recording.channels"dual"Required in a non-null parent—
cloudobject or nullRequired—
cloud.modesarray of "task" · "chat" · "background"Required in a non-null parentminItems: 1.
cloud.input_schemaobjectRequired in a non-null parent—
cloud.input_schema.*any JSON valueOptionalAdditional keys are allowed.
cloud.output_schemaobjectRequired in a non-null parent—
cloud.output_schema.*any JSON valueOptionalAdditional keys are allowed.
cloud.max_turnsintegerRequired in a non-null parentAt least 1. At most 200.
cloud.idle_timeout_msintegerRequired in a non-null parentAt least 10000. At most 86400000.
cloud.deadline_msintegerRequired in a non-null parentAt least 1000. At most 3600000.
actionsarray of objectRequired—
actions[].purpose"tokenization"Optional—
actions[].namestringRequiredpattern: ^[a-z][a-z0-9_]{0,62}$.
actions[].descriptionstringRequiredminLength: 1. maxLength: 1024.
actions[].channelsarray of "cloud" · "phone"RequiredminItems: 1.
actions[].method"GET" · "POST" · "PUT" · "PATCH" · "DELETE"Required—
actions[].urlstring (uri)Required—
actions[].headersobjectOptionalDefault: {}.
actions[].headers.*stringOptionalAdditional keys are allowed.
actions[].authobjectRequired—
actions[].auth · variant 1object—Fields for this schema branch.
actions[].auth.scheme"none"Required—
actions[].auth · variant 2object—Fields for this schema branch.
actions[].auth.scheme"bearer" · "basic"Required—
actions[].auth.secret_refobjectRequired—
actions[].auth.secret_ref.idstringRequiredminLength: 1. maxLength: 128.
actions[].auth.secret_ref.versionstringRequiredminLength: 1. maxLength: 128.
actions[].auth · variant 3object—Fields for this schema branch.
actions[].auth.scheme"retell_signature"Required—
actions[].auth.secret_refobjectRequired—
actions[].auth.secret_ref.idstringRequiredminLength: 1. maxLength: 128.
actions[].auth.secret_ref.versionstringRequiredminLength: 1. maxLength: 128.
actions[].auth · variant 4object—Fields for this schema branch.
actions[].auth.scheme"header"Required—
actions[].auth.header_namestringRequiredminLength: 1. maxLength: 128.
actions[].auth.secret_refobjectRequired—
actions[].auth.secret_ref.idstringRequiredminLength: 1. maxLength: 128.
actions[].auth.secret_ref.versionstringRequiredminLength: 1. maxLength: 128.
actions[].input_schemaobjectRequired—
actions[].input_schema.*any JSON valueOptionalAdditional keys are allowed.
actions[].output_schemaobjectRequired—
actions[].output_schema.*any JSON valueOptionalAdditional keys are allowed.
actions[].idempotencyobjectRequired—
actions[].idempotency · variant 1object—Fields for this schema branch.
actions[].idempotency.mode"effect_key"Required—
actions[].idempotency · variant 2object—Fields for this schema branch.
actions[].idempotency.mode"template"Required—
actions[].idempotency.headerstringOptionalDefault: "Idempotency-Key".
actions[].idempotency.templatestringRequiredminLength: 1. maxLength: 512.
actions[].idempotency · variant 3object—Fields for this schema branch.
actions[].idempotency.mode"none_read_only"Required—
actions[].timeout_msintegerRequiredAt least 500. At most 120000.
actions[].on_uncertain"failure_edge" · "uncertain_edge"OptionalDefault: "failure_edge".
notificationsarray of objectRequired—
notifications[].idstringRequiredminLength: 1. maxLength: 128.
notifications[].urlstring (uri)Required—
notifications[].secret_refobjectRequired—
notifications[].secret_ref.idstringRequiredminLength: 1. maxLength: 128.
notifications[].secret_ref.versionstringRequiredminLength: 1. maxLength: 128.
notifications[].format"semantic.v1"Required—
notifications[].eventsarray of "run.admitted" · "run.ended" · "recording.updated" · "analysis.updated"RequiredminItems: 1.
knowledgeobject or nullRequired—
knowledge.document_idsarray of string (uuid)Required in a non-null parent—
triggersarray of objectRequired—
triggers[] · variant 1object—Fields for this schema branch.
triggers[].kind"schedule"Required—
triggers[].idstringRequiredminLength: 1. maxLength: 128.
triggers[].cronstringRequiredpattern: ^(\S+\s+){4}\S+$.
triggers[].timezonestringRequiredminLength: 1. maxLength: 64.
triggers[].inputobjectRequired—
triggers[].input.*any JSON valueOptionalAdditional keys are allowed.
triggers[] · variant 2object—Fields for this schema branch.
triggers[].kind"event"Required—
triggers[].idstringRequiredminLength: 1. maxLength: 128.
triggers[].event_type"run.ended" · "analysis.updated"Required—
triggers[].sourceobjectRequired—
triggers[].source.agent_idstringOptionalAgent 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.dispositionsarray of stringOptionalmaxItems: 32.
triggers[].input_mappingobjectRequired—
triggers[].input_mapping.*stringOptionalAdditional keys are allowed.
layoutobjectRequired—
layout.flowobjectRequired—
layout.flow.nodesobjectRequired—
layout.flow.nodes.*objectOptionalAdditional keys are allowed.
layout.flow.startobjectOptional—
layout.flow.start.xnumberRequiredAt least -10000000. At most 10000000.
layout.flow.start.ynumberRequiredAt least -10000000. At most 10000000.
layout.flow.viewportobjectOptional—
layout.flow.viewport.xnumberRequiredAt least -10000000. At most 10000000.
layout.flow.viewport.ynumberRequiredAt least -10000000. At most 10000000.
layout.flow.viewport.zoomnumberRequiredAt least 0.01. At most 100.
layout.componentsobjectRequired—
layout.components.*objectOptionalAdditional keys are allowed.

Error responses

HTTPDescription
4XXTyped error (ApiError)
5XXTyped error (ApiError)

Errors use the shared error envelope. Inspect error.code, retryable, outcome and details before retrying.

Complete OpenAPI schema
OpenAPI JSON
{
  "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
OpenAPI JSON
{
  "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.

Content version 0e5f8391Customer SDKMarkdown source
Get the draft · Cumulus developer docs