{
"code": "UNAUTHORIZED",
"message": "You are not authorized to access this resource."
}
{
"error": {
"code": "CALL_FLOWS.STEP_TYPE_NOT_IN_PLAN",
"message": "The jumpTo step is not in your plan.",
"target": "/steps/2"
},
"requestId": "c41f0a9e2b"
}
{
"error": {
"code": "CALL_FLOWS.NUMBER_NOT_FOUND",
"message": "No number with this id in your account."
},
"requestId": "c41f0a9e2b"
}
{
"error": {
"code": "CALL_FLOWS.ETAG_MISMATCH",
"message": "The flow changed since your read. Read it again, reapply your change and retry.",
"target": "If-Match"
},
"requestId": "c41f0a9e2b"
}
{
"error": {
"code": "VALIDATION.INVALID_BODY",
"message": "Request body is too large."
},
"requestId": "8c1f4a2e60"
}
{
"error": {
"code": "CALL_FLOWS.UNKNOWN_GROUP",
"message": "Group 568 is not in your account.",
"target": "/steps/3/otherwise/0/groupId",
"details": [
{
"code": "CALL_FLOWS.UNKNOWN_GROUP",
"message": "Group 568 is not in your account.",
"target": "/steps/3/otherwise/0/groupId"
},
{
"code": "CALL_FLOWS.RING_SECONDS_REQUIRED",
"message": "Set ringSeconds, or the onNoAnswer steps never run. 30 seconds suits most calls.",
"target": "/steps/5"
}
]
},
"requestId": "c41f0a9e2b"
}
{
"error": {
"code": "CALL_FLOWS.IF_MATCH_REQUIRED",
"message": "Send If-Match with the ETag of your last read of the flow.",
"target": "If-Match"
},
"requestId": "c41f0a9e2b"
}
Replaces the whole flow with the document you send. Steps you keep carry their id; steps you leave out are deleted; steps without an id are created. It answers the next call, so a mistake reaches callers at once: run Validate a call flow first. To undo the save with Restore a call flow version, keep the versionId of your read: the versionId a save returns names the version that save created. If you did not keep it, or your read had versionId: null, find the version from before your save in List call flow versions (for a first save, the source: baseline version, which keeps the flow as it was) and restore that id.
Concurrency. Send If-Match with the ETag of your last read, so you never overwrite steps you have not seen (see 412).
References. Give a new step a ref (a label you choose) when another step must point at it. A reference field takes an existing step id or a ref from the same document, for example {{input[ask-order]}}.
Jump to steps elsewhere. Deleting a step also deletes every Jump to step, in any number of your account, that pointed at it. Validate lists those numbers first.
Secrets. Send an HTTP Request header without value to keep its stored value.
Size limits. At most 200 steps and a body of at most 1 MiB. A step name takes up to 100 characters and a Collect input pattern up to 255. An HTTP Request step takes a url of up to 2,048 characters, up to 50 headers (name up to 256 characters, value up to 8,192) and up to 50 body fields (key up to 255 characters, value up to 8,192). A Condition splitter takes up to 50 branches with up to 50 conditions each, and a Day/Time splitter up to 50 branches. The Dashboard does not enforce these limits, so a flow saved there can exceed one; such a flow reads normally, but sending it back unchanged is refused with 422 VALIDATION.INVALID_FIELD at the field over its limit. Shorten that field, or edit the flow in the Dashboard.
Ring time. The Dashboard also saves a ring step with steps under “no answer” but no ring time. Such a flow reads normally, but sending it back unchanged is refused with 422 CALL_FLOWS.RING_SECONDS_REQUIRED at that step: add ringSeconds.
Drafts.draft=true saves the document as a draft version instead, through every check of a live save (see 201). Calls keep using the live flow. If-Match is optional: send the ETag of your read, and the same one to Publish a call flow draft.
Every save keeps a version. The legacy Edit a number deletes a flow built here; the next read shows the change, and restore brings back the last saved version.
{
"code": "UNAUTHORIZED",
"message": "You are not authorized to access this resource."
}
{
"error": {
"code": "CALL_FLOWS.STEP_TYPE_NOT_IN_PLAN",
"message": "The jumpTo step is not in your plan.",
"target": "/steps/2"
},
"requestId": "c41f0a9e2b"
}
{
"error": {
"code": "CALL_FLOWS.NUMBER_NOT_FOUND",
"message": "No number with this id in your account."
},
"requestId": "c41f0a9e2b"
}
{
"error": {
"code": "CALL_FLOWS.ETAG_MISMATCH",
"message": "The flow changed since your read. Read it again, reapply your change and retry.",
"target": "If-Match"
},
"requestId": "c41f0a9e2b"
}
{
"error": {
"code": "VALIDATION.INVALID_BODY",
"message": "Request body is too large."
},
"requestId": "8c1f4a2e60"
}
{
"error": {
"code": "CALL_FLOWS.UNKNOWN_GROUP",
"message": "Group 568 is not in your account.",
"target": "/steps/3/otherwise/0/groupId",
"details": [
{
"code": "CALL_FLOWS.UNKNOWN_GROUP",
"message": "Group 568 is not in your account.",
"target": "/steps/3/otherwise/0/groupId"
},
{
"code": "CALL_FLOWS.RING_SECONDS_REQUIRED",
"message": "Set ringSeconds, or the onNoAnswer steps never run. 30 seconds suits most calls.",
"target": "/steps/5"
}
]
},
"requestId": "c41f0a9e2b"
}
{
"error": {
"code": "CALL_FLOWS.IF_MATCH_REQUIRED",
"message": "Send If-Match with the ETag of your last read of the flow.",
"target": "If-Match"
},
"requestId": "c41f0a9e2b"
}
HTTP Basic Authentication. Use your API Access Key ID as the username and your API Access Key Secret as the password. Generate keys in the CloudTalk Dashboard under Account -> Settings -> API Keys (https://dashboard.cloudtalk.io/menu/account/settings/API-keys).
Headers
If-Match
string
Required, except with draft=true. The ETag of the live flow, from your last read. A missing value, or *, is 428 CALL_FLOWS.IF_MATCH_REQUIRED; a value that no longer matches is 412 CALL_FLOWS.ETAG_MISMATCH.
true saves a draft version instead of the live flow.
Body
application/json
The whole flow to save. The read-only fields of a read may be sent back and are ignored; any other unknown field is 400 VALIDATION.INVALID_BODY.
steps
(Ring user · object | Ring favorite user · object | Ring group · object | Voice agent · object | Playback · object | Voicemail · object | Redirect · object | Call recording · object | Fax · object | Change of caller · object | Dial by extension · object | IVR menu · object | Day/time splitter · object | Jump to · object | Condition splitter · object | HTTP request · object | Collect input · object | Mark call as resolved · object | Unsupported step · object)[]
required
1 to 200 steps in the whole flow. Keep a step by sending its id; steps you leave out are deleted, and steps without an id are created. To remove every step, use Delete a number's call flow.
Minimum array length: 1
One step of a call flow. type picks its fields. A step that branches, or that ends the call, is the last in its array. A branch is an array of steps with the same rules.
Ring user
Ring favorite user
Ring group
Voice agent
Playback
Voicemail
Redirect
Call recording
Fax
Change of caller
Dial by extension
IVR menu
Day/time splitter
Jump to
Condition splitter
HTTP request
Collect input
Mark call as resolved
Unsupported step
Show child attributes
note
string
Optional, up to 255 characters: why you made the change, like a commit message. Stored on the version and shown in the version list. Not part of the flow.
Maximum string length: 255
Response
The saved flow, live from the next call, with its new ETag and versionId and any warnings.
The live flow after a save, a restore or a publish. New steps carry their stored id, and the ref you sent, once.
numberId
string
required
read-only
The number. Read-only.
Example:
"600"
etag
string
required
read-only
The same value as the ETag header. Read-only.
Example:
"\"cf1-9fJ2kQx7Lr0aT3\""
editable
boolean
required
read-only
false when the stored flow cannot be sent back unchanged; problems says why. With only DANGLING_REFERENCE problems, correct those fields and the save takes the document. true is not a guarantee: a flow saved in the Dashboard over a size limit, or with a ring step that has no ring time, reads editable: true, but sending it back unchanged is refused with 422, as the call flow document says. Read-only.
problems
object[]
required
read-only
Stored data the API cannot represent. Read-only.
Show child attributes
businessHours
object
required
Whether business hours run before this flow. When closed, they decide what the caller hears, instead of the flow. Read-only.
Show child attributes
steps
(Ring user · object | Ring favorite user · object | Ring group · object | Voice agent · object | Playback · object | Voicemail · object | Redirect · object | Call recording · object | Fax · object | Change of caller · object | Dial by extension · object | IVR menu · object | Day/time splitter · object | Jump to · object | Condition splitter · object | HTTP request · object | Collect input · object | Mark call as resolved · object | Unsupported step · object)[]
required
The main sequence, from "Call comes in". The first step runs first, then the next one in the array. A step that branches, or that ends the call, is the last in its array. 1 to 200 steps in the whole flow on a save; a number with no steps reads [].
One step of a call flow. type picks its fields. A step that branches, or that ends the call, is the last in its array. A branch is an array of steps with the same rules.
Ring user
Ring favorite user
Ring group
Voice agent
Playback
Voicemail
Redirect
Call recording
Fax
Change of caller
Dial by extension
IVR menu
Day/time splitter
Jump to
Condition splitter
HTTP request
Collect input
Mark call as resolved
Unsupported step
Show child attributes
updatedAt
string<date-time>
required
read-only
Time of the latest saved version, or of the latest step change when no version exists. Read-only.
versionId
string | null
required
read-only
The latest version other than a draft, or null before the flow's first save. Read-only.
dashboardUrl
string
required
read-only
Opens this flow in the Dashboard designer, for an Admin. Read-only.
warnings
object[]
required
Warnings about the saved flow. They never stop a save.
Show child attributes
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"CloudTalk Help Center","description":"CloudTalk developer documentation — REST API reference and integration guides.","colors":{"primary":"#0527FF","light":"#8495FF","dark":"#0420D5"},"logo":{"light":"https://mintcdn.com/cloudtalk/M_FX1uE099dO0_78/logo/light.svg?fit=max\u0026auto=format\u0026n=M_FX1uE099dO0_78\u0026q=85\u0026s=9efde0e0ef215d0b41a2f8f92056e144","dark":"https://mintcdn.com/cloudtalk/M_FX1uE099dO0_78/logo/dark.svg?fit=max\u0026auto=format\u0026n=M_FX1uE099dO0_78\u0026q=85\u0026s=4f13ec15ddcb5aaaac1005fe27b20494"},"favicon":"https://mintcdn.com/cloudtalk/M_FX1uE099dO0_78/favicon.svg?fit=max\u0026auto=format\u0026n=M_FX1uE099dO0_78\u0026q=85\u0026s=b8634fcc454e4f7d772d4c384046ec0b","api":{"examples":{"prefill":true,"autogenerate":true}},"background":{"color":{"light":"#F9FAFB","dark":"#1A1B1E"}},"navbar":{"links":[{"href":"https://support.cloudtalk.io/","label":"Support"}],"primary":{"type":"button","label":"Log in","href":"https://dashboard.cloudtalk.io/"}},"footer":{"socials":{"linkedin":"https://www.linkedin.com/company/cloudtalk.io","youtube":"https://www.youtube.com/channel/UCIVoouQBQ9u6ahSJJ7f5orQ","facebook":"https://www.facebook.com/CloudTalkCallCenter","instagram":"https://www.instagram.com/cloudtalk_io"},"links":[{"header":"Product","items":[{"label":"Pricing","href":"https://www.cloudtalk.io/pricing"},{"label":"AI Voice Agents","href":"https://www.cloudtalk.io/ai-voice-agents"},{"label":"AI Sales Dialer","href":"https://www.cloudtalk.io/dialer"},{"label":"AI Receptionist","href":"https://www.cloudtalk.io/ai-receptionist"},{"label":"Inbound Call Center","href":"https://www.cloudtalk.io/inbound-support-center"},{"label":"Outbound Call Center","href":"https://www.cloudtalk.io/outbound-sales"}]},{"header":"Support","items":[{"label":"Help Center","href":"https://help.cloudtalk.io/en"},{"label":"Status Page","href":"https://status.cloudtalk.io/"},{"label":"Contact Us","href":"https://www.cloudtalk.io/contact"},{"label":"Request a Free Trial","href":"https://www.cloudtalk.io/signup"}]},{"header":"Company","items":[{"label":"Our Story","href":"https://www.cloudtalk.io/our-story"},{"label":"Careers","href":"https://www.cloudtalk.io/careers"},{"label":"Security","href":"https://www.cloudtalk.io/security"},{"label":"Trust Center","href":"https://trust.cloudtalk.io/"},{"label":"Brand Assets","href":"https://www.cloudtalk.io/brand-assets"}]},{"header":"Legal","items":[{"label":"Terms \u0026 Conditions","href":"https://www.cloudtalk.io/terms-and-conditions"},{"label":"Privacy Notice","href":"https://www.cloudtalk.io/privacy-notice"}]}]},"fonts":{"family":"Public Sans"},"styling":{"codeblocks":"system","latex":true},"integrations":{"ga4":{"measurementId":"G-FMQKD83J1Q"}},"contextual":{"options":["copy","view","mcp","cursor","vscode","chatgpt","claude","perplexity"],"display":"header"},"markdown":{"schema":false},"navigation":{"languages":[{"language":"en","href":"en"},{"language":"de","href":"de"},{"language":"es","href":"es"},{"language":"fr","href":"fr"},{"language":"nl","href":"nl"},{"language":"pt","href":"pt"}]}},"deployment":{"deploymentMetadataValue":{"subdomain":"cloudtalk","hasAudioNarration":false,"actualSubdomain":"cloudtalk","customDomains":["help.cloudtalk.io"],"gitSource":{"type":"github","owner":"cloudtalk-io","repo":"developer-docs","deployBranch":"main","contentDirectory":"","isPrivate":true,"mountPath":"","label":""},"feedback":{"thumbs":true,"agentFeedback":true},"entitlements":{"AI_CHAT":{"status":"ENABLED"},"WEB_MCP":{"status":"ENABLED"},"NARRATION":{"status":"ENABLED"}},"buildId":"6b09e996788878469b2d6706","clientVersion":"0.0.4342","searchFilterCounts":[{"language":"en","tag":"Help Center","count":463},{"language":"de","tag":"Hilfecenter","count":460},{"language":"es","tag":"Centro de ayuda","count":460},{"language":"fr","tag":"Centre d'aide","count":460},{"language":"nl","tag":"Helpcentrum","count":460},{"language":"pt","tag":"Centro de ajuda","count":460},{"language":"en","tag":"API","count":182},{"language":"en","tag":"API Reference","count":168},{"language":"en","tag":"Integrations","count":99},{"language":"de","tag":"Integrationen","count":99},{"language":"es","tag":"Integraciones","count":99},{"language":"fr","tag":"Intégrations","count":99},{"language":"nl","tag":"Integraties","count":99},{"language":"pt","tag":"Integrações","count":99},{"language":"en","tag":"Dashboard","count":92},{"language":"de","tag":"Dashboard","count":91},{"language":"es","tag":"Dashboard","count":91},{"language":"fr","tag":"Dashboard","count":91},{"language":"nl","tag":"Dashboard","count":91},{"language":"pt","tag":"Dashboard","count":91},{"language":"en","tag":"Numbers \u0026 porting","count":69},{"language":"de","tag":"Nummern \u0026 Portierung","count":69},{"language":"es","tag":"Números y portabilidad","count":69},{"language":"fr","tag":"Numéros et portabilité","count":69},{"language":"nl","tag":"Nummers \u0026 portering","count":69},{"language":"pt","tag":"Números e portabilidade","count":69},{"language":"en","tag":"CRM","count":53},{"language":"de","tag":"CRM","count":53},{"language":"es","tag":"CRM","count":53},{"language":"fr","tag":"CRM","count":53},{"language":"nl","tag":"CRM","count":53},{"language":"pt","tag":"CRM","count":53},{"language":"en","tag":"AI","count":43},{"language":"de","tag":"KI","count":42},{"language":"es","tag":"IA","count":42},{"language":"fr","tag":"IA","count":42},{"language":"nl","tag":"AI","count":42},{"language":"pt","tag":"IA","count":42},{"language":"en","tag":"CloudTalk Phone \u0026 Go","count":40},{"language":"en","tag":"Porting by country","count":40},{"language":"de","tag":"CloudTalk Phone \u0026 Go","count":40},{"language":"de","tag":"Portierung nach Land","count":40},{"language":"es","tag":"CloudTalk Phone y Go","count":40},{"language":"es","tag":"Portabilidad por país","count":40},{"language":"fr","tag":"CloudTalk Phone et Go","count":40},{"language":"fr","tag":"Portabilité par pays","count":40},{"language":"nl","tag":"CloudTalk Phone \u0026 Go","count":40},{"language":"nl","tag":"Portering per land","count":40},{"language":"pt","tag":"CloudTalk Phone e Go","count":40},{"language":"pt","tag":"Portabilidade por país","count":40},{"language":"de","tag":"Erste Schritte","count":35},{"language":"es","tag":"Primeros pasos","count":35},{"language":"fr","tag":"Premiers pas","count":35},{"language":"nl","tag":"Aan de slag","count":35},{"language":"pt","tag":"Primeiros passos","count":35},{"language":"de","tag":"Abrechnung \u0026 Abonnement","count":29},{"language":"es","tag":"Facturación y suscripción","count":29},{"language":"fr","tag":"Facturation et abonnement","count":29},{"language":"nl","tag":"Facturering \u0026 abonnement","count":29},{"language":"pt","tag":"Faturação e subscrição","count":29}],"searchSettings":{"maxResults":8,"showContentSnippets":true}},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":false,"enableContextualStarterQuestions":false,"enableAskAiSearchBar":true},"basePath":"","hasChatPermissions":true,"hasWebMcpPermissions":true,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-rbac-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"site-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"starter-pricing","enabled":true,"variant":{"name":"treatment","enabled":true,"payload":{"type":"string","value":"treatment"},"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"wildcard-email-auth","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"starterQuestions":[],"privacy":{"consentBanner":{"enabled":true}},"googleFontsInlined":true},"customCss":[{"filePath":"style.css","content":"html:not(.dark) #navbar>div:first-child{background:#f5f5f5}#navbar img.nav-logo{height:1.3125rem}#navbar a[href^=\"https://dashboard.cloudtalk.io\"],#navbar a[href^=\"https://dashboard.cloudtalk.io\"] *{color:#ffffff!important}#navbar a[href^=\"https://dashboard.cloudtalk.io\"]{background:#0420d5;height:2.25rem;padding:0 0.875rem;border-radius:0.625rem;font-weight:600}#navbar a[href^=\"https://dashboard.cloudtalk.io\"]:hover{background:#031aaa;color:#ffffff!important}.dark #navbar a[href^=\"https://dashboard.cloudtalk.io\"]{background:#0527ff}.dark #navbar a[href^=\"https://dashboard.cloudtalk.io\"]:hover{background:#304cff}#navbar a[href^=\"https://support.cloudtalk.io\"]{background:transparent;color:#181d27!important;box-shadow:inset 0 0 0 1px #d5d7da;height:2.25rem;padding:0 0.875rem;border-radius:0.625rem;font-weight:600}#navbar a[href^=\"https://support.cloudtalk.io\"]:hover{background:#e9eaeb;color:#181d27!important}.dark #navbar a[href^=\"https://support.cloudtalk.io\"]{background:transparent;color:#ececed!important;box-shadow:inset 0 0 0 1px #373a41}.dark #navbar a[href^=\"https://support.cloudtalk.io\"]:hover{background:#2b303b;color:#ececed!important}html:not(.dark) #assistant-entry{background:#ffffff}#navbar nav[aria-label=\"Main\"]>ul>li:not(:last-child){margin-inline-end:0.75rem}#sidebar-content>div.border-t{display:none}nav#sidebar-content{border-right:0}@media (min-width: 1024px){main#content-container{padding-left:3rem!important}}#sidebar-content>button{display:none}.ct-search{display:flex;align-items:center;gap:0.625rem;width:100%;height:3rem;margin:0.5rem 0 2rem;padding:0 1rem;border-radius:0.75rem;background:#fff;color:rgb(107 114 128);font-size:0.9375rem;cursor:text;box-shadow:0 0 0 1px rgb(156 163 175 / 0.3), 0 1px 2px rgb(0 0 0 / 0.04);transition:box-shadow 0.15s}.ct-search:hover,.ct-search:focus-visible{outline:none;box-shadow:0 0 0 1px #0527ff, 0 0 0 4px rgb(5 39 255 / 0.12)}.dark .ct-search{background:rgb(255 255 255 / 0.03);color:rgb(255 255 255 / 0.5);box-shadow:0 0 0 1px rgb(75 85 99 / 0.3)}.dark .ct-search:hover,.dark .ct-search:focus-visible{box-shadow:0 0 0 1px #0527ff, 0 0 0 4px rgb(5 39 255 / 0.25)}.ct-search-label{flex:1;min-width:0;text-align:left;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.ct-search-kbd{font-family:inherit;font-size:0.75rem;padding:0.125rem 0.375rem;border-radius:0.375rem;box-shadow:0 0 0 1px rgb(156 163 175 / 0.3)}@media (max-width: 768px){.ct-search-kbd{display:none}}body:has([data-ct-search]) #page-context-menu{display:none!important}body:not(:has([data-ct-search])) .mdx-content hr{margin-top:1.5rem;margin-bottom:1.5rem}body:not(:has([data-ct-search])) .mdx-content hr+:is(h2,h3,h4){margin-top:0}body:not(:has([data-ct-search])) .mdx-content{margin-top:1.5rem}body:not(:has([data-ct-search])) .mdx-content>:first-child{margin-top:0!important}"}]}
{"page":{"pagePath":"api-reference/call-flows/replace-a-numbers-call-flow","slug":"/api-reference/call-flows/replace-a-numbers-call-flow","pageMetadata":{"title":"Replace a number's call flow","description":"Replaces the whole flow with the document you send. Steps you keep carry their `id`; steps you leave out are deleted; steps without an `id` are created. **It answers the next call**, so a mistake reaches callers at once: run [Validate a call flow](/api-reference/call-flows/validate-a-call-flow) first. To undo the save with [Restore a call flow version](/api-reference/call-flows/restore-a-call-flow-version), keep the `versionId` of your read: the `versionId` a save returns names the version that save created. If you did not keep it, or your read had `versionId: null`, find the version from before your save in [List call flow versions](/api-reference/call-flows/list-call-flow-versions) (for a first save, the `source: baseline` version, which keeps the flow as it was) and restore that id.\n\n- **Concurrency.** Send `If-Match` with the `ETag` of your last read, so you never overwrite steps you have not seen (see `412`).\n- **References.** Give a new step a `ref` (a label you choose) when another step must point at it. A reference field takes an existing step id or a `ref` from the same document, for example `{{input[ask-order]}}`.\n- **Jump to steps elsewhere.** Deleting a step also deletes every Jump to step, in any number of your account, that pointed at it. Validate lists those numbers first.\n- **Secrets.** Send an HTTP Request header without `value` to keep its stored value.\n- **Size limits.** At most 200 steps and a body of at most 1 MiB. A step `name` takes up to 100 characters and a Collect input `pattern` up to 255. An HTTP Request step takes a `url` of up to 2,048 characters, up to 50 headers (name up to 256 characters, value up to 8,192) and up to 50 body fields (key up to 255 characters, value up to 8,192). A Condition splitter takes up to 50 branches with up to 50 conditions each, and a Day/Time splitter up to 50 branches. The Dashboard does not enforce these limits, so a flow saved there can exceed one; such a flow reads normally, but sending it back unchanged is refused with `422 VALIDATION.INVALID_FIELD` at the field over its limit. Shorten that field, or edit the flow in the Dashboard.\n- **Ring time.** The Dashboard also saves a ring step with steps under \"no answer\" but no ring time. Such a flow reads normally, but sending it back unchanged is refused with `422 CALL_FLOWS.RING_SECONDS_REQUIRED` at that step: add `ringSeconds`.\n- **Drafts.** `draft=true` saves the document as a draft version instead, through every check of a live save (see `201`). Calls keep using the live flow. `If-Match` is optional: send the `ETag` of your read, and the same one to [Publish a call flow draft](/api-reference/call-flows/publish-a-call-flow-draft).\n\nEvery save keeps a version. The legacy [Edit a number](/api-reference/numbers-legacy/edit-a-number) deletes a flow built here; the next read shows the change, and restore brings back the last saved version.","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json put /numbers/{numberId}/call-flow","href":"/api-reference/call-flows/replace-a-numbers-call-flow","autogeneratedByOpenApi":true},"description":{"compiledSource":"\"use strict\";\nconst {Fragment: _Fragment, jsx: _jsx, jsxs: _jsxs} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n a: \"a\",\n code: \"code\",\n li: \"li\",\n p: \"p\",\n strong: \"strong\",\n ul: \"ul\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsxs(_Fragment, {\n children: [_jsxs(_components.p, {\n children: [\"Replaces the whole flow with the document you send. Steps you keep carry their \", _jsx(_components.code, {\n children: \"id\"\n }), \"; steps you leave out are deleted; steps without an \", _jsx(_components.code, {\n children: \"id\"\n }), \" are created. \", _jsx(_components.strong, {\n children: \"It answers the next call\"\n }), \", so a mistake reaches callers at once: run \", _jsx(_components.a, {\n href: \"/api-reference/call-flows/validate-a-call-flow\",\n children: \"Validate a call flow\"\n }), \" first. To undo the save with \", _jsx(_components.a, {\n href: \"/api-reference/call-flows/restore-a-call-flow-version\",\n children: \"Restore a call flow version\"\n }), \", keep the \", _jsx(_components.code, {\n children: \"versionId\"\n }), \" of your read: the \", _jsx(_components.code, {\n children: \"versionId\"\n }), \" a save returns names the version that save created. If you did not keep it, or your read had \", _jsx(_components.code, {\n children: \"versionId: null\"\n }), \", find the version from before your save in \", _jsx(_components.a, {\n href: \"/api-reference/call-flows/list-call-flow-versions\",\n children: \"List call flow versions\"\n }), \" (for a first save, the \", _jsx(_components.code, {\n children: \"source: baseline\"\n }), \" version, which keeps the flow as it was) and restore that id.\"]\n }), \"\\n\", _jsxs(_components.ul, {\n children: [\"\\n\", _jsxs(_components.li, {\n children: [_jsx(_components.strong, {\n children: \"Concurrency.\"\n }), \" Send \", _jsx(_components.code, {\n children: \"If-Match\"\n }), \" with the \", _jsx(_components.code, {\n children: \"ETag\"\n }), \" of your last read, so you never overwrite steps you have not seen (see \", _jsx(_components.code, {\n children: \"412\"\n }), \").\"]\n }), \"\\n\", _jsxs(_components.li, {\n children: [_jsx(_components.strong, {\n children: \"References.\"\n }), \" Give a new step a \", _jsx(_components.code, {\n children: \"ref\"\n }), \" (a label you choose) when another step must point at it. A reference field takes an existing step id or a \", _jsx(_components.code, {\n children: \"ref\"\n }), \" from the same document, for example \", _jsx(_components.code, {\n children: \"{{input[ask-order]}}\"\n }), \".\"]\n }), \"\\n\", _jsxs(_components.li, {\n children: [_jsx(_components.strong, {\n children: \"Jump to steps elsewhere.\"\n }), \" Deleting a step also deletes every Jump to step, in any number of your account, that pointed at it. Validate lists those numbers first.\"]\n }), \"\\n\", _jsxs(_components.li, {\n children: [_jsx(_components.strong, {\n children: \"Secrets.\"\n }), \" Send an HTTP Request header without \", _jsx(_components.code, {\n children: \"value\"\n }), \" to keep its stored value.\"]\n }), \"\\n\", _jsxs(_components.li, {\n children: [_jsx(_components.strong, {\n children: \"Size limits.\"\n }), \" At most 200 steps and a body of at most 1 MiB. A step \", _jsx(_components.code, {\n children: \"name\"\n }), \" takes up to 100 characters and a Collect input \", _jsx(_components.code, {\n children: \"pattern\"\n }), \" up to 255. An HTTP Request step takes a \", _jsx(_components.code, {\n children: \"url\"\n }), \" of up to 2,048 characters, up to 50 headers (name up to 256 characters, value up to 8,192) and up to 50 body fields (key up to 255 characters, value up to 8,192). A Condition splitter takes up to 50 branches with up to 50 conditions each, and a Day/Time splitter up to 50 branches. The Dashboard does not enforce these limits, so a flow saved there can exceed one; such a flow reads normally, but sending it back unchanged is refused with \", _jsx(_components.code, {\n children: \"422 VALIDATION.INVALID_FIELD\"\n }), \" at the field over its limit. Shorten that field, or edit the flow in the Dashboard.\"]\n }), \"\\n\", _jsxs(_components.li, {\n children: [_jsx(_components.strong, {\n children: \"Ring time.\"\n }), \" The Dashboard also saves a ring step with steps under “no answer” but no ring time. Such a flow reads normally, but sending it back unchanged is refused with \", _jsx(_components.code, {\n children: \"422 CALL_FLOWS.RING_SECONDS_REQUIRED\"\n }), \" at that step: add \", _jsx(_components.code, {\n children: \"ringSeconds\"\n }), \".\"]\n }), \"\\n\", _jsxs(_components.li, {\n children: [_jsx(_components.strong, {\n children: \"Drafts.\"\n }), \" \", _jsx(_components.code, {\n children: \"draft=true\"\n }), \" saves the document as a draft version instead, through every check of a live save (see \", _jsx(_components.code, {\n children: \"201\"\n }), \"). Calls keep using the live flow. \", _jsx(_components.code, {\n children: \"If-Match\"\n }), \" is optional: send the \", _jsx(_components.code, {\n children: \"ETag\"\n }), \" of your read, and the same one to \", _jsx(_components.a, {\n href: \"/api-reference/call-flows/publish-a-call-flow-draft\",\n children: \"Publish a call flow draft\"\n }), \".\"]\n }), \"\\n\"]\n }), \"\\n\", _jsxs(_components.p, {\n children: [\"Every save keeps a version. The legacy \", _jsx(_components.a, {\n href: \"/api-reference/numbers-legacy/edit-a-number\",\n children: \"Edit a number\"\n }), \" deletes a flow built here; the next read shows the change, and restore brings back the last saved version.\"]\n })]\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){return _jsx(_Fragment,{})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent}","frontmatter":{},"scope":{"codeStyling":"system","config":{},"pageMetadata":{"title":"Replace a number's call flow","description":"Replaces the whole flow with the document you send. Steps you keep carry their `id`; steps you leave out are deleted; steps without an `id` are created. **It answers the next call**, so a mistake reaches callers at once: run [Validate a call flow](/api-reference/call-flows/validate-a-call-flow) first. To undo the save with [Restore a call flow version](/api-reference/call-flows/restore-a-call-flow-version), keep the `versionId` of your read: the `versionId` a save returns names the version that save created. If you did not keep it, or your read had `versionId: null`, find the version from before your save in [List call flow versions](/api-reference/call-flows/list-call-flow-versions) (for a first save, the `source: baseline` version, which keeps the flow as it was) and restore that id.\n\n- **Concurrency.** Send `If-Match` with the `ETag` of your last read, so you never overwrite steps you have not seen (see `412`).\n- **References.** Give a new step a `ref` (a label you choose) when another step must point at it. A reference field takes an existing step id or a `ref` from the same document, for example `{{input[ask-order]}}`.\n- **Jump to steps elsewhere.** Deleting a step also deletes every Jump to step, in any number of your account, that pointed at it. Validate lists those numbers first.\n- **Secrets.** Send an HTTP Request header without `value` to keep its stored value.\n- **Size limits.** At most 200 steps and a body of at most 1 MiB. A step `name` takes up to 100 characters and a Collect input `pattern` up to 255. An HTTP Request step takes a `url` of up to 2,048 characters, up to 50 headers (name up to 256 characters, value up to 8,192) and up to 50 body fields (key up to 255 characters, value up to 8,192). A Condition splitter takes up to 50 branches with up to 50 conditions each, and a Day/Time splitter up to 50 branches. The Dashboard does not enforce these limits, so a flow saved there can exceed one; such a flow reads normally, but sending it back unchanged is refused with `422 VALIDATION.INVALID_FIELD` at the field over its limit. Shorten that field, or edit the flow in the Dashboard.\n- **Ring time.** The Dashboard also saves a ring step with steps under \"no answer\" but no ring time. Such a flow reads normally, but sending it back unchanged is refused with `422 CALL_FLOWS.RING_SECONDS_REQUIRED` at that step: add `ringSeconds`.\n- **Drafts.** `draft=true` saves the document as a draft version instead, through every check of a live save (see `201`). Calls keep using the live flow. `If-Match` is optional: send the `ETag` of your read, and the same one to [Publish a call flow draft](/api-reference/call-flows/publish-a-call-flow-draft).\n\nEvery save keeps a version. The legacy [Edit a number](/api-reference/numbers-legacy/edit-a-number) deletes a flow built here; the next read shows the change, and restore brings back the last saved version.","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json put /numbers/{numberId}/call-flow","href":"/api-reference/call-flows/replace-a-numbers-call-flow","autogeneratedByOpenApi":true}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[],"codeExamples":{}},"jsLinks":["/_mintlify/custom/cloudtalk/3405988015c78c5c/theme-toggle.js","/_mintlify/custom/cloudtalk/52d99a1dd6436cd5/home-search.js"],"openApiReferenceData":{"operation":{"servers":["c68bc1a6-7d01-4daf-aa42-04461084c48e"],"tags":["Call flows"],"summary":"Replace a number's call flow","description":"Replaces the whole flow with the document you send. Steps you keep carry their `id`; steps you leave out are deleted; steps without an `id` are created. **It answers the next call**, so a mistake reaches callers at once: run [Validate a call flow](/api-reference/call-flows/validate-a-call-flow) first. To undo the save with [Restore a call flow version](/api-reference/call-flows/restore-a-call-flow-version), keep the `versionId` of your read: the `versionId` a save returns names the version that save created. If you did not keep it, or your read had `versionId: null`, find the version from before your save in [List call flow versions](/api-reference/call-flows/list-call-flow-versions) (for a first save, the `source: baseline` version, which keeps the flow as it was) and restore that id.\n\n- **Concurrency.** Send `If-Match` with the `ETag` of your last read, so you never overwrite steps you have not seen (see `412`).\n- **References.** Give a new step a `ref` (a label you choose) when another step must point at it. A reference field takes an existing step id or a `ref` from the same document, for example `{{input[ask-order]}}`.\n- **Jump to steps elsewhere.** Deleting a step also deletes every Jump to step, in any number of your account, that pointed at it. Validate lists those numbers first.\n- **Secrets.** Send an HTTP Request header without `value` to keep its stored value.\n- **Size limits.** At most 200 steps and a body of at most 1 MiB. A step `name` takes up to 100 characters and a Collect input `pattern` up to 255. An HTTP Request step takes a `url` of up to 2,048 characters, up to 50 headers (name up to 256 characters, value up to 8,192) and up to 50 body fields (key up to 255 characters, value up to 8,192). A Condition splitter takes up to 50 branches with up to 50 conditions each, and a Day/Time splitter up to 50 branches. The Dashboard does not enforce these limits, so a flow saved there can exceed one; such a flow reads normally, but sending it back unchanged is refused with `422 VALIDATION.INVALID_FIELD` at the field over its limit. Shorten that field, or edit the flow in the Dashboard.\n- **Ring time.** The Dashboard also saves a ring step with steps under \"no answer\" but no ring time. Such a flow reads normally, but sending it back unchanged is refused with `422 CALL_FLOWS.RING_SECONDS_REQUIRED` at that step: add `ringSeconds`.\n- **Drafts.** `draft=true` saves the document as a draft version instead, through every check of a live save (see `201`). Calls keep using the live flow. `If-Match` is optional: send the `ETag` of your read, and the same one to [Publish a call flow draft](/api-reference/call-flows/publish-a-call-flow-draft).\n\nEvery save keeps a version. The legacy [Edit a number](/api-reference/numbers-legacy/edit-a-number) deletes a flow built here; the next read shows the change, and restore brings back the last saved version.","operationId":"public-v1-replace-call-flow","parameters":["94f2e9a3-461f-4ee0-beb0-cb83af1d1473","bfaf30b1-43c4-41cb-9a54-dae7113fd09e","ec5558c4-568b-456d-bc16-48012edac276"],"requestBody":"6bf84f6d-7b1f-4225-ba3a-88a1dadc0be9","responses":{"200":"fc815245-c29f-4718-9f9a-f13710fe40da","201":"b0f057cb-b871-4670-a911-69e47b082fc0","400":"0f2764c1-a5fe-4c4a-9113-a4949f98d0eb","401":"cac37626-3d8a-4059-984d-ce5980df31fd","403":"4abd59cd-71e6-4629-83aa-f1cae3dff5fa","404":"2e086f9f-dd58-4468-b17b-ee8796ba9625","409":"70b0ff25-ccaa-46e8-a861-3f03458dd073","412":"04622dbf-dffd-425d-86f3-051a138ffe72","413":"eda5c882-4e6d-4fa4-86cf-0d848ed10341","415":"aff2cdc8-f815-4c89-bb60-c90dc8f7850e","422":"976b2e04-ceab-4523-9588-8514f129d6d6","428":"7a4f3b28-57bc-428f-9193-c8975e31acbc","429":"5b45ba82-d1ef-4343-b3c5-39a7080e9539","500":"7d84eba9-b196-4dbe-a930-7327be64fa1d","502":"82680ac8-445e-4c5c-8c08-a1da5b476de8"},"method":"put","type":"path","security":["fb8f040b-d777-4598-a42b-217a477e9e95"],"path":"/numbers/{numberId}/call-flow","baseUrlOptions":["https://api.cloudtalk.io/v1"],"title":"Replace a number's call flow","codeSamples":[],"requiredOnlyExamples":false,"requestExampleType":"generated","responseExampleType":"generated","prefillPlaygroundWithExample":true,"prefillPlaygroundExamples":[{"body.steps.items.0.oneOf.4.type":"playback","body.steps.items.0.oneOf.4.soundId.oneOf.0":"79","body.steps.items.1.oneOf.16.type":"collectInput","body.steps.items.1.oneOf.16.soundId.oneOf.0":"80","body.steps.items.1.oneOf.16.waitSeconds.oneOf.0":8,"body.steps.items.1.oneOf.16.pattern.oneOf.0":"6","body.steps.items.1.oneOf.16.ref":"ask-order","body.steps.items.1.oneOf.16.retryOnInvalid":true,"body.steps.items.2.oneOf.15.type":"httpRequest","body.steps.items.2.oneOf.15.method.oneOf.0":"POST","body.steps.items.2.oneOf.15.url.oneOf.0":"https://erp.example.com/orders/lookup","body.steps.items.2.oneOf.15.parseResponse":true,"body.steps.items.2.oneOf.15.keepResponseAfterCall":false,"body.steps.items.2.oneOf.15.ref":"order-lookup","body.steps.items.2.oneOf.15.headers.items.0.name":"Authorization","body.steps.items.2.oneOf.15.headers.items.0.value.oneOf.0":"Bearer example-token","body.steps.items.2.oneOf.15.body.items.0.key":"order","body.steps.items.2.oneOf.15.body.items.0.value.oneOf.0":"{{input[ask-order]}}","body.steps.items.3.oneOf.14.type":"conditionSplitter","body.steps.items.3.oneOf.14.branches.items.0.conditions.items.0.field":"httpResponse.order-lookup.status","body.steps.items.3.oneOf.14.branches.items.0.conditions.items.0.operator":"equals","body.steps.items.3.oneOf.14.branches.items.0.conditions.items.0.value.oneOf.0":"shipped","body.steps.items.3.oneOf.14.branches.items.0.steps":[{"type":"playback","soundId":"81"},{"type":"markResolved"}],"body.steps.items.3.oneOf.14.otherwise":[{"type":"ringGroup","groupId":"611","ringSeconds":40,"onAnswered":[],"onNoAnswer":[]}],"body.note":"Order status line"}]},"dependencies":{"parameters":{"94f2e9a3-461f-4ee0-beb0-cb83af1d1473":{"name":"numberId","in":"path","required":true,"description":"The number id, as [List and search numbers](/api-reference/numbers/list-and-search-numbers) returns it.","schema":{"type":"string","example":"600","isRequired":true,"description":"The number id, as [List and search numbers](/api-reference/numbers/list-and-search-numbers) returns it.","uniqueKey":"","typeLabel":"string"}},"bfaf30b1-43c4-41cb-9a54-dae7113fd09e":{"name":"If-Match","in":"header","required":false,"description":"Required, except with `draft=true`. The `ETag` of the live flow, from your last read. A missing value, or `*`, is `428 CALL_FLOWS.IF_MATCH_REQUIRED`; a value that no longer matches is `412 CALL_FLOWS.ETAG_MISMATCH`.","schema":{"type":"string","example":"\"cf1-9fJ2kQx7Lr0aT3\"","isRequired":false,"description":"Required, except with `draft=true`. The `ETag` of the live flow, from your last read. A missing value, or `*`, is `428 CALL_FLOWS.IF_MATCH_REQUIRED`; a value that no longer matches is `412 CALL_FLOWS.ETAG_MISMATCH`.","uniqueKey":"","typeLabel":"string"}},"ec5558c4-568b-456d-bc16-48012edac276":{"name":"draft","in":"query","required":false,"description":"`true` saves a draft version instead of the live flow.","schema":{"type":"boolean","default":false,"isRequired":false,"description":"`true` saves a draft version instead of the live flow.","uniqueKey":"","typeLabel":"boolean"}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"required":["steps"],"description":"The whole flow to save. The read-only fields of a read may be sent back and are ignored; any other unknown field is `400 VALIDATION.INVALID_BODY`.","properties":{"steps":{"type":"array","items":{"oneOf":[{"type":"object","title":"Ring user","description":"One step of a call flow. `type` picks its fields. A step that branches, or that ends the call, is the last in its array. A branch is an array of steps with the same rules.","required":["type"],"properties":{"type":{"type":"string","enum":["ringUser"],"isRequired":true,"uniqueKey":"steps.items.[INDEX].oneOf.0.type","typeLabel":"enum\u003cstring>"},"id":{"type":"string","pattern":"^[1-9][0-9]*$","description":"The stored step id. Send it to keep and update this step; omit it for a new step. It must be a step of this number's flow.","example":"5001","uniqueKey":"steps.items.[INDEX].oneOf.0.id","typeLabel":"string"},"ref":{"type":"string","pattern":"^[a-z][a-z0-9_-]{0,39}$","description":"New steps only, optional. Your label for this step, so that other steps of the same document can point at it. Unique in the document. Echoed in the response to the save, not stored.","example":"ask-order","uniqueKey":"steps.items.[INDEX].oneOf.0.ref","typeLabel":"string"},"name":{"oneOf":[{"type":"string","maxLength":100,"description":"Optional label shown in the Dashboard designer, up to 100 characters.","uniqueKey":"steps.items.[INDEX].oneOf.0.name.oneOf.0","typeLabel":"string"},{"type":"null","maxLength":100,"description":"Optional label shown in the Dashboard designer, up to 100 characters.","uniqueKey":"steps.items.[INDEX].oneOf.0.name.oneOf.1","typeLabel":"null"}],"uniqueKey":"steps.items.[INDEX].oneOf.0.name","typeLabel":"string | null"},"userId":{"oneOf":[{"type":"string","pattern":"^[1-9][0-9]*$","description":"A user of your account. On a read it is `null` when what it pointed at no longer exists, and `problems` has `DANGLING_REFERENCE`.","example":"7","uniqueKey":"steps.items.[INDEX].oneOf.0.userId.oneOf.0","typeLabel":"string"},{"type":"null","pattern":"^[1-9][0-9]*$","description":"A user of your account. On a read it is `null` when what it pointed at no longer exists, and `problems` has `DANGLING_REFERENCE`.","example":"7","uniqueKey":"steps.items.[INDEX].oneOf.0.userId.oneOf.1","typeLabel":"null"}],"uniqueKey":"steps.items.[INDEX].oneOf.0.userId","typeLabel":"string | null"},"userIdVariable":{"type":"string","minLength":1,"maxLength":255,"description":"A template such as `{{input[ask-agent]}}` that resolves to a user id at call time.","uniqueKey":"steps.items.[INDEX].oneOf.0.userIdVariable","typeLabel":"string"},"ringSeconds":{"oneOf":[{"type":"integer","minimum":1,"description":"1 or more. Required when `onNoAnswer` has steps: without it the save is `422 CALL_FLOWS.RING_SECONDS_REQUIRED`, whose message suggests 30. Otherwise optional, with no default: left out, the phone rings until someone answers or the caller hangs up, as in a flow saved in the Dashboard.","uniqueKey":"steps.items.[INDEX].oneOf.0.ringSeconds.oneOf.0","typeLabel":"integer"},{"type":"null","minimum":1,"description":"1 or more. Required when `onNoAnswer` has steps: without it the save is `422 CALL_FLOWS.RING_SECONDS_REQUIRED`, whose message suggests 30. Otherwise optional, with no default: left out, the phone rings until someone answers or the caller hangs up, as in a flow saved in the Dashboard.","uniqueKey":"steps.items.[INDEX].oneOf.0.ringSeconds.oneOf.1","typeLabel":"null"}],"uniqueKey":"steps.items.[INDEX].oneOf.0.ringSeconds","typeLabel":"integer | null"},"onAnswered":{"type":"array","items":{"$circularRef":"855dd704-1e29-4d7c-a188-217e7e2b4a07"},"description":"Runs after the call was answered and ended. Ring, Voice Agent, Fax, Voicemail, Call recording, Redirect, Dial by Extension and Change of caller steps are not allowed here.","uniqueKey":"steps.items.[INDEX].oneOf.0.onAnswered","typeLabel":"array"},"onNoAnswer":{"type":"array","items":{"$circularRef":"855dd704-1e29-4d7c-a188-217e7e2b4a07"},"description":"Runs when nobody answered within `ringSeconds`.","uniqueKey":"steps.items.[INDEX].oneOf.0.onNoAnswer","typeLabel":"array"}},"additionalProperties":false,"uniqueKey":"steps.items.[INDEX].oneOf.0","typeLabel":"Ring user · object"},{"type":"object","title":"Ring favorite user","description":"One step of a call flow. `type` picks its fields. A step that branches, or that ends the call, is the last in its array. A branch is an array of steps with the same rules.","required":["type"],"properties":{"type":{"type":"string","enum":["ringFavoriteUser"],"isRequired":true,"uniqueKey":"steps.items.[INDEX].oneOf.1.type","typeLabel":"enum\u003cstring>"},"id":{"type":"string","pattern":"^[1-9][0-9]*$","description":"The stored step id. Send it to keep and update this step; omit it for a new step. It must be a step of this number's flow.","example":"5001","uniqueKey":"steps.items.[INDEX].oneOf.1.id","typeLabel":"string"},"ref":{"type":"string","pattern":"^[a-z][a-z0-9_-]{0,39}$","description":"New steps only, optional. Your label for this step, so that other steps of the same document can point at it. Unique in the document. Echoed in the response to the save, not stored.","example":"ask-order","uniqueKey":"steps.items.[INDEX].oneOf.1.ref","typeLabel":"string"},"name":{"oneOf":[{"type":"string","maxLength":100,"description":"Optional label shown in the Dashboard designer, up to 100 characters.","uniqueKey":"steps.items.[INDEX].oneOf.1.name.oneOf.0","typeLabel":"string"},{"type":"null","maxLength":100,"description":"Optional label shown in the Dashboard designer, up to 100 characters.","uniqueKey":"steps.items.[INDEX].oneOf.1.name.oneOf.1","typeLabel":"null"}],"uniqueKey":"steps.items.[INDEX].oneOf.1.name","typeLabel":"string | null"},"ringSeconds":{"oneOf":[{"type":"integer","minimum":1,"description":"1 or more. Required when `onNoAnswer` has steps: without it the save is `422 CALL_FLOWS.RING_SECONDS_REQUIRED`, whose message suggests 30. Otherwise optional, with no default: left out, the phone rings until someone answers or the caller hangs up, as in a flow saved in the Dashboard.","uniqueKey":"steps.items.[INDEX].oneOf.1.ringSeconds.oneOf.0","typeLabel":"integer"},{"type":"null","minimum":1,"description":"1 or more. Required when `onNoAnswer` has steps: without it the save is `422 CALL_FLOWS.RING_SECONDS_REQUIRED`, whose message suggests 30. Otherwise optional, with no default: left out, the phone rings until someone answers or the caller hangs up, as in a flow saved in the Dashboard.","uniqueKey":"steps.items.[INDEX].oneOf.1.ringSeconds.oneOf.1","typeLabel":"null"}],"uniqueKey":"steps.items.[INDEX].oneOf.1.ringSeconds","typeLabel":"integer | null"},"onAnswered":{"type":"array","items":{"$circularRef":"855dd704-1e29-4d7c-a188-217e7e2b4a07"},"description":"Runs after the call was answered and ended. Ring, Voice Agent, Fax, Voicemail, Call recording, Redirect, Dial by Extension and Change of caller steps are not allowed here.","uniqueKey":"steps.items.[INDEX].oneOf.1.onAnswered","typeLabel":"array"},"onNoAnswer":{"type":"array","items":{"$circularRef":"855dd704-1e29-4d7c-a188-217e7e2b4a07"},"description":"Runs when nobody answered within `ringSeconds`.","uniqueKey":"steps.items.[INDEX].oneOf.1.onNoAnswer","typeLabel":"array"}},"additionalProperties":false,"uniqueKey":"steps.items.[INDEX].oneOf.1","typeLabel":"Ring favorite user · object"},{"type":"object","title":"Ring group","description":"One step of a call flow. `type` picks its fields. A step that branches, or that ends the call, is the last in its array. A branch is an array of steps with the same rules.","required":["type"],"properties":{"type":{"type":"string","enum":["ringGroup"],"isRequired":true,"uniqueKey":"steps.items.[INDEX].oneOf.2.type","typeLabel":"enum\u003cstring>"},"id":{"type":"string","pattern":"^[1-9][0-9]*$","description":"The stored step id. Send it to keep and update this step; omit it for a new step. It must be a step of this number's flow.","example":"5001","uniqueKey":"steps.items.[INDEX].oneOf.2.id","typeLabel":"string"},"ref":{"type":"string","pattern":"^[a-z][a-z0-9_-]{0,39}$","description":"New steps only, optional. Your label for this step, so that other steps of the same document can point at it. Unique in the document. Echoed in the response to the save, not stored.","example":"ask-order","uniqueKey":"steps.items.[INDEX].oneOf.2.ref","typeLabel":"string"},"name":{"oneOf":[{"type":"string","maxLength":100,"description":"Optional label shown in the Dashboard designer, up to 100 characters.","uniqueKey":"steps.items.[INDEX].oneOf.2.name.oneOf.0","typeLabel":"string"},{"type":"null","maxLength":100,"description":"Optional label shown in the Dashboard designer, up to 100 characters.","uniqueKey":"steps.items.[INDEX].oneOf.2.name.oneOf.1","typeLabel":"null"}],"uniqueKey":"steps.items.[INDEX].oneOf.2.name","typeLabel":"string | null"},"groupId":{"oneOf":[{"type":"string","pattern":"^[1-9][0-9]*$","description":"The group id, as the Groups API keys it (not the group's queue number). On a read it is `null` when what it pointed at no longer exists, and `problems` has `DANGLING_REFERENCE`.","example":"611","uniqueKey":"steps.items.[INDEX].oneOf.2.groupId.oneOf.0","typeLabel":"string"},{"type":"null","pattern":"^[1-9][0-9]*$","description":"The group id, as the Groups API keys it (not the group's queue number). On a read it is `null` when what it pointed at no longer exists, and `problems` has `DANGLING_REFERENCE`.","example":"611","uniqueKey":"steps.items.[INDEX].oneOf.2.groupId.oneOf.1","typeLabel":"null"}],"uniqueKey":"steps.items.[INDEX].oneOf.2.groupId","typeLabel":"string | null"},"groupVariable":{"type":"string","minLength":1,"maxLength":255,"description":"A template that resolves to the group's queue number at call time, not its id.","uniqueKey":"steps.items.[INDEX].oneOf.2.groupVariable","typeLabel":"string"},"ringSeconds":{"oneOf":[{"type":"integer","minimum":1,"description":"1 or more. Required when `onNoAnswer` has steps: without it the save is `422 CALL_FLOWS.RING_SECONDS_REQUIRED`, whose message names the minimum: the group's per-agent timeout plus 10 seconds, at least 20. Otherwise optional, with no default: left out, the caller waits in the group's queue until someone answers or hangs up, as in the Dashboard. A value below the minimum is a warning, `RING_TIME_BELOW_GROUP_MINIMUM`.","uniqueKey":"steps.items.[INDEX].oneOf.2.ringSeconds.oneOf.0","typeLabel":"integer"},{"type":"null","minimum":1,"description":"1 or more. Required when `onNoAnswer` has steps: without it the save is `422 CALL_FLOWS.RING_SECONDS_REQUIRED`, whose message names the minimum: the group's per-agent timeout plus 10 seconds, at least 20. Otherwise optional, with no default: left out, the caller waits in the group's queue until someone answers or hangs up, as in the Dashboard. A value below the minimum is a warning, `RING_TIME_BELOW_GROUP_MINIMUM`.","uniqueKey":"steps.items.[INDEX].oneOf.2.ringSeconds.oneOf.1","typeLabel":"null"}],"uniqueKey":"steps.items.[INDEX].oneOf.2.ringSeconds","typeLabel":"integer | null"},"onAnswered":{"type":"array","items":{"$circularRef":"855dd704-1e29-4d7c-a188-217e7e2b4a07"},"description":"Runs after the call was answered and ended. Ring, Voice Agent, Fax, Voicemail, Call recording, Redirect, Dial by Extension and Change of caller steps are not allowed here.","uniqueKey":"steps.items.[INDEX].oneOf.2.onAnswered","typeLabel":"array"},"onNoAnswer":{"type":"array","items":{"$circularRef":"855dd704-1e29-4d7c-a188-217e7e2b4a07"},"description":"Runs when nobody answered within `ringSeconds`.","uniqueKey":"steps.items.[INDEX].oneOf.2.onNoAnswer","typeLabel":"array"}},"additionalProperties":false,"uniqueKey":"steps.items.[INDEX].oneOf.2","typeLabel":"Ring group · object"},{"type":"object","title":"Voice agent","description":"One step of a call flow. `type` picks its fields. A step that branches, or that ends the call, is the last in its array. A branch is an array of steps with the same rules.","required":["type","voiceAgentId"],"properties":{"type":{"type":"string","enum":["voiceAgent"],"isRequired":true,"uniqueKey":"steps.items.[INDEX].oneOf.3.type","typeLabel":"enum\u003cstring>"},"voiceAgentId":{"oneOf":[{"type":"string","pattern":"^[0-9a-f]{24}$","description":"Required. The `id` that [List voice agents](/api-reference/voiceagent/list-voice-agents) returns, a 24-character hex id. Must be an inbound voice agent of your account that can take calls, else `422 CALL_FLOWS.UNKNOWN_VOICE_AGENT`; checked when the step is new or changed. On a read it is `null` when the agent no longer exists (problem `DANGLING_REFERENCE`) or could not be looked up (problem `VOICE_AGENT_LOOKUP_FAILED`).","example":"674b87da2a8347e6682cca8d","isRequired":true,"uniqueKey":"steps.items.[INDEX].oneOf.3.voiceAgentId.oneOf.0","typeLabel":"string"},{"type":"null","pattern":"^[0-9a-f]{24}$","description":"Required. The `id` that [List voice agents](/api-reference/voiceagent/list-voice-agents) returns, a 24-character hex id. Must be an inbound voice agent of your account that can take calls, else `422 CALL_FLOWS.UNKNOWN_VOICE_AGENT`; checked when the step is new or changed. On a read it is `null` when the agent no longer exists (problem `DANGLING_REFERENCE`) or could not be looked up (problem `VOICE_AGENT_LOOKUP_FAILED`).","example":"674b87da2a8347e6682cca8d","isRequired":true,"uniqueKey":"steps.items.[INDEX].oneOf.3.voiceAgentId.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"steps.items.[INDEX].oneOf.3.voiceAgentId","typeLabel":"string | null"},"id":{"type":"string","pattern":"^[1-9][0-9]*$","description":"The stored step id. Send it to keep and update this step; omit it for a new step. It must be a step of this number's flow.","example":"5001","uniqueKey":"steps.items.[INDEX].oneOf.3.id","typeLabel":"string"},"ref":{"type":"string","pattern":"^[a-z][a-z0-9_-]{0,39}$","description":"New steps only, optional. Your label for this step, so that other steps of the same document can point at it. Unique in the document. Echoed in the response to the save, not stored.","example":"ask-order","uniqueKey":"steps.items.[INDEX].oneOf.3.ref","typeLabel":"string"},"name":{"oneOf":[{"type":"string","maxLength":100,"description":"Optional label shown in the Dashboard designer, up to 100 characters.","uniqueKey":"steps.items.[INDEX].oneOf.3.name.oneOf.0","typeLabel":"string"},{"type":"null","maxLength":100,"description":"Optional label shown in the Dashboard designer, up to 100 characters.","uniqueKey":"steps.items.[INDEX].oneOf.3.name.oneOf.1","typeLabel":"null"}],"uniqueKey":"steps.items.[INDEX].oneOf.3.name","typeLabel":"string | null"},"onAnswered":{"type":"array","items":{"$circularRef":"855dd704-1e29-4d7c-a188-217e7e2b4a07"},"description":"Runs after the voice agent handled the call. Any step may follow, ring steps included.","uniqueKey":"steps.items.[INDEX].oneOf.3.onAnswered","typeLabel":"array"},"onNoAnswer":{"type":"array","items":{"$circularRef":"855dd704-1e29-4d7c-a188-217e7e2b4a07"},"description":"Runs when the voice agent did not take the call.","uniqueKey":"steps.items.[INDEX].oneOf.3.onNoAnswer","typeLabel":"array"}},"additionalProperties":false,"uniqueKey":"steps.items.[INDEX].oneOf.3","typeLabel":"Voice agent · object"},{"type":"object","title":"Playback","description":"One step of a call flow. `type` picks its fields. A step that branches, or that ends the call, is the last in its array. A branch is an array of steps with the same rules.","required":["type","soundId"],"properties":{"type":{"type":"string","enum":["playback"],"isRequired":true,"uniqueKey":"steps.items.[INDEX].oneOf.4.type","typeLabel":"enum\u003cstring>"},"soundId":{"oneOf":[{"type":"string","pattern":"^[1-9][0-9]*$","description":"Required. A sound of your account, or a CloudTalk default sound, from [List sounds](/api-reference/sounds/list-sounds). On a read it is `null` when what it pointed at no longer exists, and `problems` has `DANGLING_REFERENCE`.","example":"79","isRequired":true,"uniqueKey":"steps.items.[INDEX].oneOf.4.soundId.oneOf.0","typeLabel":"string"},{"type":"null","pattern":"^[1-9][0-9]*$","description":"Required. A sound of your account, or a CloudTalk default sound, from [List sounds](/api-reference/sounds/list-sounds). On a read it is `null` when what it pointed at no longer exists, and `problems` has `DANGLING_REFERENCE`.","example":"79","isRequired":true,"uniqueKey":"steps.items.[INDEX].oneOf.4.soundId.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"steps.items.[INDEX].oneOf.4.soundId","typeLabel":"string | null"},"id":{"type":"string","pattern":"^[1-9][0-9]*$","description":"The stored step id. Send it to keep and update this step; omit it for a new step. It must be a step of this number's flow.","example":"5001","uniqueKey":"steps.items.[INDEX].oneOf.4.id","typeLabel":"string"},"ref":{"type":"string","pattern":"^[a-z][a-z0-9_-]{0,39}$","description":"New steps only, optional. Your label for this step, so that other steps of the same document can point at it. Unique in the document. Echoed in the response to the save, not stored.","example":"ask-order","uniqueKey":"steps.items.[INDEX].oneOf.4.ref","typeLabel":"string"},"name":{"oneOf":[{"type":"string","maxLength":100,"description":"Optional label shown in the Dashboard designer, up to 100 characters.","uniqueKey":"steps.items.[INDEX].oneOf.4.name.oneOf.0","typeLabel":"string"},{"type":"null","maxLength":100,"description":"Optional label shown in the Dashboard designer, up to 100 characters.","uniqueKey":"steps.items.[INDEX].oneOf.4.name.oneOf.1","typeLabel":"null"}],"uniqueKey":"steps.items.[INDEX].oneOf.4.name","typeLabel":"string | null"}},"additionalProperties":false,"uniqueKey":"steps.items.[INDEX].oneOf.4","typeLabel":"Playback · object"},{"type":"object","title":"Voicemail","description":"One step of a call flow. `type` picks its fields. A step that branches, or that ends the call, is the last in its array. A branch is an array of steps with the same rules.","required":["type","emailNotification","attachRecording"],"properties":{"type":{"type":"string","enum":["voicemail"],"isRequired":true,"uniqueKey":"steps.items.[INDEX].oneOf.5.type","typeLabel":"enum\u003cstring>"},"emailNotification":{"oneOf":[{"type":"string","enum":["on","off","accountDefault",null],"description":"Required. Whether the message is sent by email: `on`, `off`, or `accountDefault` to follow the account setting. A read shows `null` when the stored step has none; a save needs a value.","isRequired":true,"uniqueKey":"steps.items.[INDEX].oneOf.5.emailNotification.oneOf.0","typeLabel":"enum\u003cstring>"},{"type":"null","enum":["on","off","accountDefault",null],"description":"Required. Whether the message is sent by email: `on`, `off`, or `accountDefault` to follow the account setting. A read shows `null` when the stored step has none; a save needs a value.","isRequired":true,"uniqueKey":"steps.items.[INDEX].oneOf.5.emailNotification.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"steps.items.[INDEX].oneOf.5.emailNotification","typeLabel":"enum\u003cstring> | null"},"attachRecording":{"oneOf":[{"type":"string","enum":["on","off","accountDefault",null],"description":"Required. Whether the email carries the recording: `on`, `off` or `accountDefault`. A read shows `null` when the stored step has none; a save needs a value.","isRequired":true,"uniqueKey":"steps.items.[INDEX].oneOf.5.attachRecording.oneOf.0","typeLabel":"enum\u003cstring>"},{"type":"null","enum":["on","off","accountDefault",null],"description":"Required. Whether the email carries the recording: `on`, `off` or `accountDefault`. A read shows `null` when the stored step has none; a save needs a value.","isRequired":true,"uniqueKey":"steps.items.[INDEX].oneOf.5.attachRecording.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"steps.items.[INDEX].oneOf.5.attachRecording","typeLabel":"enum\u003cstring> | null"},"id":{"type":"string","pattern":"^[1-9][0-9]*$","description":"The stored step id. Send it to keep and update this step; omit it for a new step. It must be a step of this number's flow.","example":"5001","uniqueKey":"steps.items.[INDEX].oneOf.5.id","typeLabel":"string"},"ref":{"type":"string","pattern":"^[a-z][a-z0-9_-]{0,39}$","description":"New steps only, optional. Your label for this step, so that other steps of the same document can point at it. Unique in the document. Echoed in the response to the save, not stored.","example":"ask-order","uniqueKey":"steps.items.[INDEX].oneOf.5.ref","typeLabel":"string"},"name":{"oneOf":[{"type":"string","maxLength":100,"description":"Optional label shown in the Dashboard designer, up to 100 characters.","uniqueKey":"steps.items.[INDEX].oneOf.5.name.oneOf.0","typeLabel":"string"},{"type":"null","maxLength":100,"description":"Optional label shown in the Dashboard designer, up to 100 characters.","uniqueKey":"steps.items.[INDEX].oneOf.5.name.oneOf.1","typeLabel":"null"}],"uniqueKey":"steps.items.[INDEX].oneOf.5.name","typeLabel":"string | null"},"voicemailBoxId":{"oneOf":[{"type":"string","pattern":"^[1-9][0-9]*$","description":"A voicemail box from [List voicemail boxes](/api-reference/call-flows/list-voicemail-boxes). On a read it is `null` when what it pointed at no longer exists, and `problems` has `DANGLING_REFERENCE`.","example":"88","uniqueKey":"steps.items.[INDEX].oneOf.5.voicemailBoxId.oneOf.0","typeLabel":"string"},{"type":"null","pattern":"^[1-9][0-9]*$","description":"A voicemail box from [List voicemail boxes](/api-reference/call-flows/list-voicemail-boxes). On a read it is `null` when what it pointed at no longer exists, and `problems` has `DANGLING_REFERENCE`.","example":"88","uniqueKey":"steps.items.[INDEX].oneOf.5.voicemailBoxId.oneOf.1","typeLabel":"null"}],"uniqueKey":"steps.items.[INDEX].oneOf.5.voicemailBoxId","typeLabel":"string | null"},"voicemailBoxVariable":{"type":"string","minLength":1,"maxLength":255,"description":"A template that resolves to a mailbox number at call time.","uniqueKey":"steps.items.[INDEX].oneOf.5.voicemailBoxVariable","typeLabel":"string"}},"additionalProperties":false,"uniqueKey":"steps.items.[INDEX].oneOf.5","typeLabel":"Voicemail · object"},{"type":"object","title":"Redirect","description":"One step of a call flow. `type` picks its fields. A step that branches, or that ends the call, is the last in its array. A branch is an array of steps with the same rules.","required":["type","phoneNumber"],"properties":{"type":{"type":"string","enum":["redirect"],"isRequired":true,"uniqueKey":"steps.items.[INDEX].oneOf.6.type","typeLabel":"enum\u003cstring>"},"phoneNumber":{"oneOf":[{"type":"string","pattern":"^[0-9+*#]+$","maxLength":255,"description":"Required. The number to forward to. Digits, `+`, `*` and `#` only, up to 255 characters. A read shows `null` when the stored step has none; a save needs a value.","example":"+12025550172","isRequired":true,"uniqueKey":"steps.items.[INDEX].oneOf.6.phoneNumber.oneOf.0","typeLabel":"string"},{"type":"null","pattern":"^[0-9+*#]+$","maxLength":255,"description":"Required. The number to forward to. Digits, `+`, `*` and `#` only, up to 255 characters. A read shows `null` when the stored step has none; a save needs a value.","example":"+12025550172","isRequired":true,"uniqueKey":"steps.items.[INDEX].oneOf.6.phoneNumber.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"steps.items.[INDEX].oneOf.6.phoneNumber","typeLabel":"string | null"},"id":{"type":"string","pattern":"^[1-9][0-9]*$","description":"The stored step id. Send it to keep and update this step; omit it for a new step. It must be a step of this number's flow.","example":"5001","uniqueKey":"steps.items.[INDEX].oneOf.6.id","typeLabel":"string"},"ref":{"type":"string","pattern":"^[a-z][a-z0-9_-]{0,39}$","description":"New steps only, optional. Your label for this step, so that other steps of the same document can point at it. Unique in the document. Echoed in the response to the save, not stored.","example":"ask-order","uniqueKey":"steps.items.[INDEX].oneOf.6.ref","typeLabel":"string"},"name":{"oneOf":[{"type":"string","maxLength":100,"description":"Optional label shown in the Dashboard designer, up to 100 characters.","uniqueKey":"steps.items.[INDEX].oneOf.6.name.oneOf.0","typeLabel":"string"},{"type":"null","maxLength":100,"description":"Optional label shown in the Dashboard designer, up to 100 characters.","uniqueKey":"steps.items.[INDEX].oneOf.6.name.oneOf.1","typeLabel":"null"}],"uniqueKey":"steps.items.[INDEX].oneOf.6.name","typeLabel":"string | null"},"ringSeconds":{"oneOf":[{"type":"integer","minimum":1,"description":"1 or more. Required when `onNoAnswer` has steps (`422 CALL_FLOWS.RING_SECONDS_REQUIRED`). Otherwise optional, with no default: left out, the forwarded call rings until answered or the caller hangs up, as in the Dashboard.","uniqueKey":"steps.items.[INDEX].oneOf.6.ringSeconds.oneOf.0","typeLabel":"integer"},{"type":"null","minimum":1,"description":"1 or more. Required when `onNoAnswer` has steps (`422 CALL_FLOWS.RING_SECONDS_REQUIRED`). Otherwise optional, with no default: left out, the forwarded call rings until answered or the caller hangs up, as in the Dashboard.","uniqueKey":"steps.items.[INDEX].oneOf.6.ringSeconds.oneOf.1","typeLabel":"null"}],"uniqueKey":"steps.items.[INDEX].oneOf.6.ringSeconds","typeLabel":"integer | null"},"onNoAnswer":{"type":"array","items":{"$circularRef":"855dd704-1e29-4d7c-a188-217e7e2b4a07"},"description":"Fallback when the forwarded call is not answered in time.","uniqueKey":"steps.items.[INDEX].oneOf.6.onNoAnswer","typeLabel":"array"}},"additionalProperties":false,"uniqueKey":"steps.items.[INDEX].oneOf.6","typeLabel":"Redirect · object"},{"type":"object","title":"Call recording","description":"One step of a call flow. `type` picks its fields. A step that branches, or that ends the call, is the last in its array. A branch is an array of steps with the same rules.","required":["type","enabled"],"properties":{"type":{"type":"string","enum":["recording"],"isRequired":true,"uniqueKey":"steps.items.[INDEX].oneOf.7.type","typeLabel":"enum\u003cstring>"},"enabled":{"type":"boolean","description":"Required. `true` records from here on, `false` stops recording.","isRequired":true,"uniqueKey":"steps.items.[INDEX].oneOf.7.enabled","typeLabel":"boolean"},"id":{"type":"string","pattern":"^[1-9][0-9]*$","description":"The stored step id. Send it to keep and update this step; omit it for a new step. It must be a step of this number's flow.","example":"5001","uniqueKey":"steps.items.[INDEX].oneOf.7.id","typeLabel":"string"},"ref":{"type":"string","pattern":"^[a-z][a-z0-9_-]{0,39}$","description":"New steps only, optional. Your label for this step, so that other steps of the same document can point at it. Unique in the document. Echoed in the response to the save, not stored.","example":"ask-order","uniqueKey":"steps.items.[INDEX].oneOf.7.ref","typeLabel":"string"},"name":{"oneOf":[{"type":"string","maxLength":100,"description":"Optional label shown in the Dashboard designer, up to 100 characters.","uniqueKey":"steps.items.[INDEX].oneOf.7.name.oneOf.0","typeLabel":"string"},{"type":"null","maxLength":100,"description":"Optional label shown in the Dashboard designer, up to 100 characters.","uniqueKey":"steps.items.[INDEX].oneOf.7.name.oneOf.1","typeLabel":"null"}],"uniqueKey":"steps.items.[INDEX].oneOf.7.name","typeLabel":"string | null"}},"additionalProperties":false,"uniqueKey":"steps.items.[INDEX].oneOf.7","typeLabel":"Call recording · object"},{"type":"object","title":"Fax","description":"One step of a call flow. `type` picks its fields. A step that branches, or that ends the call, is the last in its array. A branch is an array of steps with the same rules.","required":["type","email"],"properties":{"type":{"type":"string","enum":["fax"],"isRequired":true,"uniqueKey":"steps.items.[INDEX].oneOf.8.type","typeLabel":"enum\u003cstring>"},"email":{"oneOf":[{"type":"string","format":"email","maxLength":255,"description":"Required. A valid email address that receives the faxes, up to 255 characters. A read shows `null` when the stored step has none; a save needs a value.","isRequired":true,"uniqueKey":"steps.items.[INDEX].oneOf.8.email.oneOf.0","typeLabel":"string\u003cemail>"},{"type":"null","format":"email","maxLength":255,"description":"Required. A valid email address that receives the faxes, up to 255 characters. A read shows `null` when the stored step has none; a save needs a value.","isRequired":true,"uniqueKey":"steps.items.[INDEX].oneOf.8.email.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"steps.items.[INDEX].oneOf.8.email","typeLabel":"string\u003cemail> | null"},"id":{"type":"string","pattern":"^[1-9][0-9]*$","description":"The stored step id. Send it to keep and update this step; omit it for a new step. It must be a step of this number's flow.","example":"5001","uniqueKey":"steps.items.[INDEX].oneOf.8.id","typeLabel":"string"},"ref":{"type":"string","pattern":"^[a-z][a-z0-9_-]{0,39}$","description":"New steps only, optional. Your label for this step, so that other steps of the same document can point at it. Unique in the document. Echoed in the response to the save, not stored.","example":"ask-order","uniqueKey":"steps.items.[INDEX].oneOf.8.ref","typeLabel":"string"},"name":{"oneOf":[{"type":"string","maxLength":100,"description":"Optional label shown in the Dashboard designer, up to 100 characters.","uniqueKey":"steps.items.[INDEX].oneOf.8.name.oneOf.0","typeLabel":"string"},{"type":"null","maxLength":100,"description":"Optional label shown in the Dashboard designer, up to 100 characters.","uniqueKey":"steps.items.[INDEX].oneOf.8.name.oneOf.1","typeLabel":"null"}],"uniqueKey":"steps.items.[INDEX].oneOf.8.name","typeLabel":"string | null"}},"additionalProperties":false,"uniqueKey":"steps.items.[INDEX].oneOf.8","typeLabel":"Fax · object"},{"type":"object","title":"Change of caller","description":"One step of a call flow. `type` picks its fields. A step that branches, or that ends the call, is the last in its array. A branch is an array of steps with the same rules.","required":["type","phoneNumber"],"properties":{"type":{"type":"string","enum":["changeCallerId"],"isRequired":true,"uniqueKey":"steps.items.[INDEX].oneOf.9.type","typeLabel":"enum\u003cstring>"},"phoneNumber":{"oneOf":[{"type":"string","pattern":"^[0-9+*#]+$","maxLength":255,"description":"Required. The number shown next. Digits, `+`, `*` and `#` only, up to 255 characters. A read shows `null` when the stored step has none; a save needs a value.","isRequired":true,"uniqueKey":"steps.items.[INDEX].oneOf.9.phoneNumber.oneOf.0","typeLabel":"string"},{"type":"null","pattern":"^[0-9+*#]+$","maxLength":255,"description":"Required. The number shown next. Digits, `+`, `*` and `#` only, up to 255 characters. A read shows `null` when the stored step has none; a save needs a value.","isRequired":true,"uniqueKey":"steps.items.[INDEX].oneOf.9.phoneNumber.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"steps.items.[INDEX].oneOf.9.phoneNumber","typeLabel":"string | null"},"id":{"type":"string","pattern":"^[1-9][0-9]*$","description":"The stored step id. Send it to keep and update this step; omit it for a new step. It must be a step of this number's flow.","example":"5001","uniqueKey":"steps.items.[INDEX].oneOf.9.id","typeLabel":"string"},"ref":{"type":"string","pattern":"^[a-z][a-z0-9_-]{0,39}$","description":"New steps only, optional. Your label for this step, so that other steps of the same document can point at it. Unique in the document. Echoed in the response to the save, not stored.","example":"ask-order","uniqueKey":"steps.items.[INDEX].oneOf.9.ref","typeLabel":"string"},"name":{"oneOf":[{"type":"string","maxLength":100,"description":"Optional label shown in the Dashboard designer, up to 100 characters.","uniqueKey":"steps.items.[INDEX].oneOf.9.name.oneOf.0","typeLabel":"string"},{"type":"null","maxLength":100,"description":"Optional label shown in the Dashboard designer, up to 100 characters.","uniqueKey":"steps.items.[INDEX].oneOf.9.name.oneOf.1","typeLabel":"null"}],"uniqueKey":"steps.items.[INDEX].oneOf.9.name","typeLabel":"string | null"}},"additionalProperties":false,"uniqueKey":"steps.items.[INDEX].oneOf.9","typeLabel":"Change of caller · object"},{"type":"object","title":"Dial by extension","description":"One step of a call flow. `type` picks its fields. A step that branches, or that ends the call, is the last in its array. A branch is an array of steps with the same rules.","required":["type","soundId"],"properties":{"type":{"type":"string","enum":["dialByExtension"],"isRequired":true,"uniqueKey":"steps.items.[INDEX].oneOf.10.type","typeLabel":"enum\u003cstring>"},"soundId":{"oneOf":[{"type":"string","pattern":"^[1-9][0-9]*$","description":"Required. The prompt played to the caller. On a read it is `null` when what it pointed at no longer exists, and `problems` has `DANGLING_REFERENCE`.","example":"79","isRequired":true,"uniqueKey":"steps.items.[INDEX].oneOf.10.soundId.oneOf.0","typeLabel":"string"},{"type":"null","pattern":"^[1-9][0-9]*$","description":"Required. The prompt played to the caller. On a read it is `null` when what it pointed at no longer exists, and `problems` has `DANGLING_REFERENCE`.","example":"79","isRequired":true,"uniqueKey":"steps.items.[INDEX].oneOf.10.soundId.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"steps.items.[INDEX].oneOf.10.soundId","typeLabel":"string | null"},"id":{"type":"string","pattern":"^[1-9][0-9]*$","description":"The stored step id. Send it to keep and update this step; omit it for a new step. It must be a step of this number's flow.","example":"5001","uniqueKey":"steps.items.[INDEX].oneOf.10.id","typeLabel":"string"},"ref":{"type":"string","pattern":"^[a-z][a-z0-9_-]{0,39}$","description":"New steps only, optional. Your label for this step, so that other steps of the same document can point at it. Unique in the document. Echoed in the response to the save, not stored.","example":"ask-order","uniqueKey":"steps.items.[INDEX].oneOf.10.ref","typeLabel":"string"},"name":{"oneOf":[{"type":"string","maxLength":100,"description":"Optional label shown in the Dashboard designer, up to 100 characters.","uniqueKey":"steps.items.[INDEX].oneOf.10.name.oneOf.0","typeLabel":"string"},{"type":"null","maxLength":100,"description":"Optional label shown in the Dashboard designer, up to 100 characters.","uniqueKey":"steps.items.[INDEX].oneOf.10.name.oneOf.1","typeLabel":"null"}],"uniqueKey":"steps.items.[INDEX].oneOf.10.name","typeLabel":"string | null"},"waitSeconds":{"oneOf":[{"type":"integer","minimum":1,"description":"1 or more. How long to wait for the extension.","uniqueKey":"steps.items.[INDEX].oneOf.10.waitSeconds.oneOf.0","typeLabel":"integer"},{"type":"null","minimum":1,"description":"1 or more. How long to wait for the extension.","uniqueKey":"steps.items.[INDEX].oneOf.10.waitSeconds.oneOf.1","typeLabel":"null"}],"uniqueKey":"steps.items.[INDEX].oneOf.10.waitSeconds","typeLabel":"integer | null"}},"additionalProperties":false,"uniqueKey":"steps.items.[INDEX].oneOf.10","typeLabel":"Dial by extension · object"},{"type":"object","title":"IVR menu","description":"One step of a call flow. `type` picks its fields. A step that branches, or that ends the call, is the last in its array. A branch is an array of steps with the same rules.","required":["type","soundId","waitSeconds"],"properties":{"type":{"type":"string","enum":["ivrMenu"],"isRequired":true,"uniqueKey":"steps.items.[INDEX].oneOf.11.type","typeLabel":"enum\u003cstring>"},"soundId":{"oneOf":[{"type":"string","pattern":"^[1-9][0-9]*$","description":"Required. The menu prompt. On a read it is `null` when what it pointed at no longer exists, and `problems` has `DANGLING_REFERENCE`.","example":"79","isRequired":true,"uniqueKey":"steps.items.[INDEX].oneOf.11.soundId.oneOf.0","typeLabel":"string"},{"type":"null","pattern":"^[1-9][0-9]*$","description":"Required. The menu prompt. On a read it is `null` when what it pointed at no longer exists, and `problems` has `DANGLING_REFERENCE`.","example":"79","isRequired":true,"uniqueKey":"steps.items.[INDEX].oneOf.11.soundId.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"steps.items.[INDEX].oneOf.11.soundId","typeLabel":"string | null"},"waitSeconds":{"oneOf":[{"type":"integer","minimum":1,"description":"Required, 1 or more. A read shows `null` when the stored step has none; a save needs a value.","isRequired":true,"uniqueKey":"steps.items.[INDEX].oneOf.11.waitSeconds.oneOf.0","typeLabel":"integer"},{"type":"null","minimum":1,"description":"Required, 1 or more. A read shows `null` when the stored step has none; a save needs a value.","isRequired":true,"uniqueKey":"steps.items.[INDEX].oneOf.11.waitSeconds.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"steps.items.[INDEX].oneOf.11.waitSeconds","typeLabel":"integer | null"},"id":{"type":"string","pattern":"^[1-9][0-9]*$","description":"The stored step id. Send it to keep and update this step; omit it for a new step. It must be a step of this number's flow.","example":"5001","uniqueKey":"steps.items.[INDEX].oneOf.11.id","typeLabel":"string"},"ref":{"type":"string","pattern":"^[a-z][a-z0-9_-]{0,39}$","description":"New steps only, optional. Your label for this step, so that other steps of the same document can point at it. Unique in the document. Echoed in the response to the save, not stored.","example":"ask-order","uniqueKey":"steps.items.[INDEX].oneOf.11.ref","typeLabel":"string"},"name":{"oneOf":[{"type":"string","maxLength":100,"description":"Optional label shown in the Dashboard designer, up to 100 characters.","uniqueKey":"steps.items.[INDEX].oneOf.11.name.oneOf.0","typeLabel":"string"},{"type":"null","maxLength":100,"description":"Optional label shown in the Dashboard designer, up to 100 characters.","uniqueKey":"steps.items.[INDEX].oneOf.11.name.oneOf.1","typeLabel":"null"}],"uniqueKey":"steps.items.[INDEX].oneOf.11.name","typeLabel":"string | null"},"options":{"type":"object","description":"One entry per key: each key matches `^[0-9*#]$` (`0` to `9`, `*` or `#`), and each value is the non-empty steps that run when the caller presses it. A menu needs at least one option, or a non-empty `noInput`.","additionalProperties":{"type":"array","minItems":1,"items":{"$circularRef":"855dd704-1e29-4d7c-a188-217e7e2b4a07"},"uniqueKey":"steps.items.[INDEX].oneOf.11.options.additionalProperties","typeLabel":"array"},"uniqueKey":"steps.items.[INDEX].oneOf.11.options","typeLabel":"object"},"noInput":{"type":"array","items":{"$circularRef":"855dd704-1e29-4d7c-a188-217e7e2b4a07"},"description":"Optional. Runs when the caller presses nothing or a key with no option.","uniqueKey":"steps.items.[INDEX].oneOf.11.noInput","typeLabel":"array"}},"additionalProperties":false,"uniqueKey":"steps.items.[INDEX].oneOf.11","typeLabel":"IVR menu · object"},{"type":"object","title":"Day/time splitter","description":"One step of a call flow. `type` picks its fields. A step that branches, or that ends the call, is the last in its array. A branch is an array of steps with the same rules.","required":["type","branches"],"properties":{"type":{"type":"string","enum":["dayTimeSplitter"],"isRequired":true,"uniqueKey":"steps.items.[INDEX].oneOf.12.type","typeLabel":"enum\u003cstring>"},"branches":{"type":"array","maxItems":50,"items":{"type":"object","additionalProperties":false,"required":["days","holidays","from","to","steps"],"description":"One branch of a Day/Time Splitter.","properties":{"days":{"type":"array","uniqueItems":true,"items":{"type":"string","enum":["monday","tuesday","wednesday","thursday","friday","saturday","sunday"],"uniqueKey":"steps.items.[INDEX].oneOf.12.branches.items.[INDEX].days.items.[INDEX]","typeLabel":"enum\u003cstring>"},"description":"Required. The weekdays the branch matches, each once. May be empty: with `holidays: true` the branch matches only on public holidays; with `holidays: false` it never matches, and the save and validate warn `UNREACHABLE_BRANCH`.","isRequired":true,"uniqueKey":"steps.items.[INDEX].oneOf.12.branches.items.[INDEX].days","typeLabel":"enum\u003cstring>[]"},"holidays":{"type":"boolean","description":"Required. `true` makes the branch match on public holidays of the number's country (see [List public holidays](/api-reference/business-hours/list-public-holidays)).","isRequired":true,"uniqueKey":"steps.items.[INDEX].oneOf.12.branches.items.[INDEX].holidays","typeLabel":"boolean"},"from":{"oneOf":[{"type":"string","pattern":"^([01][0-9]|2[0-3]):[0-5][0-9]$","description":"Required. Start time, `HH:mm`, in the account time zone. A read shows `null` when the stored step has none; a save needs a value.","example":"08:00","isRequired":true,"uniqueKey":"steps.items.[INDEX].oneOf.12.branches.items.[INDEX].from.oneOf.0","typeLabel":"string"},{"type":"null","pattern":"^([01][0-9]|2[0-3]):[0-5][0-9]$","description":"Required. Start time, `HH:mm`, in the account time zone. A read shows `null` when the stored step has none; a save needs a value.","example":"08:00","isRequired":true,"uniqueKey":"steps.items.[INDEX].oneOf.12.branches.items.[INDEX].from.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"steps.items.[INDEX].oneOf.12.branches.items.[INDEX].from","typeLabel":"string | null"},"to":{"oneOf":[{"type":"string","pattern":"^([01][0-9]|2[0-3]):[0-5][0-9]$","description":"Required. End time, `HH:mm`, inclusive. A read shows `null` when the stored step has none; a save needs a value.","example":"17:00","isRequired":true,"uniqueKey":"steps.items.[INDEX].oneOf.12.branches.items.[INDEX].to.oneOf.0","typeLabel":"string"},{"type":"null","pattern":"^([01][0-9]|2[0-3]):[0-5][0-9]$","description":"Required. End time, `HH:mm`, inclusive. A read shows `null` when the stored step has none; a save needs a value.","example":"17:00","isRequired":true,"uniqueKey":"steps.items.[INDEX].oneOf.12.branches.items.[INDEX].to.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"steps.items.[INDEX].oneOf.12.branches.items.[INDEX].to","typeLabel":"string | null"},"steps":{"type":"array","items":{"$circularRef":"855dd704-1e29-4d7c-a188-217e7e2b4a07"},"description":"Non-empty. Runs when the branch matches.","minItems":1,"isRequired":true,"uniqueKey":"steps.items.[INDEX].oneOf.12.branches.items.[INDEX].steps","typeLabel":"array"}},"uniqueKey":"steps.items.[INDEX].oneOf.12.branches.items.[INDEX]","typeLabel":"object"},"description":"Up to 50 branches. May be empty, as the designer saves it: then `otherwise` runs, and with no `otherwise` either the save and validate warn `NO_FALLBACK`.","isRequired":true,"uniqueKey":"steps.items.[INDEX].oneOf.12.branches","typeLabel":"object[]"},"id":{"type":"string","pattern":"^[1-9][0-9]*$","description":"The stored step id. Send it to keep and update this step; omit it for a new step. It must be a step of this number's flow.","example":"5001","uniqueKey":"steps.items.[INDEX].oneOf.12.id","typeLabel":"string"},"ref":{"type":"string","pattern":"^[a-z][a-z0-9_-]{0,39}$","description":"New steps only, optional. Your label for this step, so that other steps of the same document can point at it. Unique in the document. Echoed in the response to the save, not stored.","example":"ask-order","uniqueKey":"steps.items.[INDEX].oneOf.12.ref","typeLabel":"string"},"name":{"oneOf":[{"type":"string","maxLength":100,"description":"Optional label shown in the Dashboard designer, up to 100 characters.","uniqueKey":"steps.items.[INDEX].oneOf.12.name.oneOf.0","typeLabel":"string"},{"type":"null","maxLength":100,"description":"Optional label shown in the Dashboard designer, up to 100 characters.","uniqueKey":"steps.items.[INDEX].oneOf.12.name.oneOf.1","typeLabel":"null"}],"uniqueKey":"steps.items.[INDEX].oneOf.12.name","typeLabel":"string | null"},"otherwise":{"type":"array","items":{"$circularRef":"855dd704-1e29-4d7c-a188-217e7e2b4a07"},"description":"Optional. Runs when no branch matches.","uniqueKey":"steps.items.[INDEX].oneOf.12.otherwise","typeLabel":"array"}},"additionalProperties":false,"uniqueKey":"steps.items.[INDEX].oneOf.12","typeLabel":"Day/time splitter · object"},{"type":"object","title":"Jump to","description":"One step of a call flow. `type` picks its fields. A step that branches, or that ends the call, is the last in its array. A branch is an array of steps with the same rules.","required":["type","target"],"properties":{"type":{"type":"string","enum":["jumpTo"],"isRequired":true,"uniqueKey":"steps.items.[INDEX].oneOf.13.type","typeLabel":"enum\u003cstring>"},"target":{"oneOf":[{"type":"string","pattern":"^(?:[1-9][0-9]*|[a-z][a-z0-9_-]{0,39})$","description":"A step of this flow (its id or `ref`), or the id of a step in another number's flow of your account. Not another Jump to (`422 CALL_FLOWS.JUMP_TO_JUMP`). On a read it is `null` when the step it pointed at no longer exists, and `problems` has `DANGLING_REFERENCE`.","example":"5003","isRequired":true,"uniqueKey":"steps.items.[INDEX].oneOf.13.target.oneOf.0","typeLabel":"string"},{"type":"null","pattern":"^(?:[1-9][0-9]*|[a-z][a-z0-9_-]{0,39})$","description":"A step of this flow (its id or `ref`), or the id of a step in another number's flow of your account. Not another Jump to (`422 CALL_FLOWS.JUMP_TO_JUMP`). On a read it is `null` when the step it pointed at no longer exists, and `problems` has `DANGLING_REFERENCE`.","example":"5003","isRequired":true,"uniqueKey":"steps.items.[INDEX].oneOf.13.target.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"steps.items.[INDEX].oneOf.13.target","typeLabel":"string | null"},"id":{"type":"string","pattern":"^[1-9][0-9]*$","description":"The stored step id. Send it to keep and update this step; omit it for a new step. It must be a step of this number's flow.","example":"5001","uniqueKey":"steps.items.[INDEX].oneOf.13.id","typeLabel":"string"},"ref":{"type":"string","pattern":"^[a-z][a-z0-9_-]{0,39}$","description":"New steps only, optional. Your label for this step, so that other steps of the same document can point at it. Unique in the document. Echoed in the response to the save, not stored.","example":"ask-order","uniqueKey":"steps.items.[INDEX].oneOf.13.ref","typeLabel":"string"},"name":{"oneOf":[{"type":"string","maxLength":100,"description":"Optional label shown in the Dashboard designer, up to 100 characters.","uniqueKey":"steps.items.[INDEX].oneOf.13.name.oneOf.0","typeLabel":"string"},{"type":"null","maxLength":100,"description":"Optional label shown in the Dashboard designer, up to 100 characters.","uniqueKey":"steps.items.[INDEX].oneOf.13.name.oneOf.1","typeLabel":"null"}],"uniqueKey":"steps.items.[INDEX].oneOf.13.name","typeLabel":"string | null"}},"additionalProperties":false,"uniqueKey":"steps.items.[INDEX].oneOf.13","typeLabel":"Jump to · object"},{"type":"object","title":"Condition splitter","description":"One step of a call flow. `type` picks its fields. A step that branches, or that ends the call, is the last in its array. A branch is an array of steps with the same rules.","required":["type","branches"],"properties":{"type":{"type":"string","enum":["conditionSplitter"],"isRequired":true,"uniqueKey":"steps.items.[INDEX].oneOf.14.type","typeLabel":"enum\u003cstring>"},"branches":{"type":"array","minItems":1,"maxItems":50,"items":{"type":"object","additionalProperties":false,"required":["conditions","steps"],"description":"One branch of a Condition Splitter.","properties":{"conditions":{"type":"array","minItems":1,"maxItems":50,"items":{"type":"object","additionalProperties":false,"required":["field","operator"],"description":"One condition. All conditions of a branch must hold.\n\nFields: `call.externalNumber` and `call.internalNumber` (string); `call.waitingTime` (integer, seconds); `contact.name`, `contact.title`, `contact.company`, `contact.industry`, `contact.address`, `contact.city`, `contact.zip`, `contact.state` and `contact.type` (string); `contact.tags` (contact tag ids, as the Contacts API returns them); `contact.customFields.\u003cfieldId>` (string, a contact field id from [List contact fields](/api-reference/contacts/list-contact-fields)); `httpResponse.\u003cstep>.\u003cpath>` (a value of the response of an earlier `httpRequest` step); and `voiceAgent.\u003cstep>.\u003cproperty>` (the result of an earlier `voiceAgent` step). `\u003cstep>` is a step id or `ref`.\n\nStrings take `equals`, `notEquals`, `startsWith`, `endsWith`, `contains`, `isEmpty` and `isSet`. Integers take `equals`, `notEquals`, `lessThan`, `greaterThan`, `lessThanOrEqual`, `greaterThanOrEqual`, `isEmpty` and `isSet`. `contact.tags` takes only `contains`.","properties":{"field":{"type":"string","example":"call.waitingTime","description":"One of the fields above: `call.externalNumber`, `call.internalNumber`, `call.waitingTime`, `contact.\u003cname>`, `contact.tags`, `contact.customFields.\u003cfieldId>`, `httpResponse.\u003cstep>.\u003cpath>` or `voiceAgent.\u003cstep>.\u003cproperty>`. Anything else is `422 VALIDATION.INVALID_FIELD` on a save.","isRequired":true,"uniqueKey":"steps.items.[INDEX].oneOf.14.branches.items.[INDEX].conditions.items.[INDEX].field","typeLabel":"string"},"operator":{"type":"string","enum":["equals","notEquals","lessThan","greaterThan","lessThanOrEqual","greaterThanOrEqual","startsWith","endsWith","contains","isEmpty","isSet"],"isRequired":true,"uniqueKey":"steps.items.[INDEX].oneOf.14.branches.items.[INDEX].conditions.items.[INDEX].operator","typeLabel":"enum\u003cstring>"},"value":{"oneOf":[{"type":"string","title":"Text","description":"The value to compare with: a string; an integer for `call.waitingTime`; an array of contact tag ids for `contact.tags`. Required for every operator but `isEmpty` and `isSet`, which take no `value`. A read shows `null` for a stored condition without a value.","uniqueKey":"steps.items.[INDEX].oneOf.14.branches.items.[INDEX].conditions.items.[INDEX].value.oneOf.0","typeLabel":"string"},{"type":"integer","title":"Number","description":"The value to compare with: a string; an integer for `call.waitingTime`; an array of contact tag ids for `contact.tags`. Required for every operator but `isEmpty` and `isSet`, which take no `value`. A read shows `null` for a stored condition without a value.","uniqueKey":"steps.items.[INDEX].oneOf.14.branches.items.[INDEX].conditions.items.[INDEX].value.oneOf.1","typeLabel":"integer"},{"type":"array","items":{"type":"string","uniqueKey":"steps.items.[INDEX].oneOf.14.branches.items.[INDEX].conditions.items.[INDEX].value.oneOf.2.items.[INDEX]","typeLabel":"string"},"title":"Contact tag ids","description":"The value to compare with: a string; an integer for `call.waitingTime`; an array of contact tag ids for `contact.tags`. Required for every operator but `isEmpty` and `isSet`, which take no `value`. A read shows `null` for a stored condition without a value.","uniqueKey":"steps.items.[INDEX].oneOf.14.branches.items.[INDEX].conditions.items.[INDEX].value.oneOf.2","typeLabel":"string[]"},{"type":"object","title":"No value","description":"The value to compare with: a string; an integer for `call.waitingTime`; an array of contact tag ids for `contact.tags`. Required for every operator but `isEmpty` and `isSet`, which take no `value`. A read shows `null` for a stored condition without a value.","enum":[null],"uniqueKey":"steps.items.[INDEX].oneOf.14.branches.items.[INDEX].conditions.items.[INDEX].value.oneOf.3","typeLabel":"No value · object"},{"type":"null","title":"No value","description":"The value to compare with: a string; an integer for `call.waitingTime`; an array of contact tag ids for `contact.tags`. Required for every operator but `isEmpty` and `isSet`, which take no `value`. A read shows `null` for a stored condition without a value.","enum":[null],"uniqueKey":"steps.items.[INDEX].oneOf.14.branches.items.[INDEX].conditions.items.[INDEX].value.oneOf.4","typeLabel":"null"}],"uniqueKey":"steps.items.[INDEX].oneOf.14.branches.items.[INDEX].conditions.items.[INDEX].value","typeLabel":"string | integer | string[] | No value · object | null"}},"uniqueKey":"steps.items.[INDEX].oneOf.14.branches.items.[INDEX].conditions.items.[INDEX]","typeLabel":"object"},"description":"1 to 50 conditions, all of which must hold.","isRequired":true,"uniqueKey":"steps.items.[INDEX].oneOf.14.branches.items.[INDEX].conditions","typeLabel":"object[]"},"steps":{"type":"array","items":{"$circularRef":"855dd704-1e29-4d7c-a188-217e7e2b4a07"},"description":"Non-empty. Runs when every condition holds.","minItems":1,"isRequired":true,"uniqueKey":"steps.items.[INDEX].oneOf.14.branches.items.[INDEX].steps","typeLabel":"array"}},"uniqueKey":"steps.items.[INDEX].oneOf.14.branches.items.[INDEX]","typeLabel":"object"},"description":"1 to 50 branches.","isRequired":true,"uniqueKey":"steps.items.[INDEX].oneOf.14.branches","typeLabel":"object[]"},"id":{"type":"string","pattern":"^[1-9][0-9]*$","description":"The stored step id. Send it to keep and update this step; omit it for a new step. It must be a step of this number's flow.","example":"5001","uniqueKey":"steps.items.[INDEX].oneOf.14.id","typeLabel":"string"},"ref":{"type":"string","pattern":"^[a-z][a-z0-9_-]{0,39}$","description":"New steps only, optional. Your label for this step, so that other steps of the same document can point at it. Unique in the document. Echoed in the response to the save, not stored.","example":"ask-order","uniqueKey":"steps.items.[INDEX].oneOf.14.ref","typeLabel":"string"},"name":{"oneOf":[{"type":"string","maxLength":100,"description":"Optional label shown in the Dashboard designer, up to 100 characters.","uniqueKey":"steps.items.[INDEX].oneOf.14.name.oneOf.0","typeLabel":"string"},{"type":"null","maxLength":100,"description":"Optional label shown in the Dashboard designer, up to 100 characters.","uniqueKey":"steps.items.[INDEX].oneOf.14.name.oneOf.1","typeLabel":"null"}],"uniqueKey":"steps.items.[INDEX].oneOf.14.name","typeLabel":"string | null"},"otherwise":{"type":"array","items":{"$circularRef":"855dd704-1e29-4d7c-a188-217e7e2b4a07"},"description":"Optional. Runs when no branch matches.","uniqueKey":"steps.items.[INDEX].oneOf.14.otherwise","typeLabel":"array"}},"additionalProperties":false,"uniqueKey":"steps.items.[INDEX].oneOf.14","typeLabel":"Condition splitter · object"},{"type":"object","title":"HTTP request","description":"One step of a call flow. `type` picks its fields. A step that branches, or that ends the call, is the last in its array. A branch is an array of steps with the same rules.","required":["type","method","url","parseResponse","keepResponseAfterCall"],"properties":{"type":{"type":"string","enum":["httpRequest"],"isRequired":true,"uniqueKey":"steps.items.[INDEX].oneOf.15.type","typeLabel":"enum\u003cstring>"},"method":{"oneOf":[{"type":"string","enum":["GET","POST","PUT","PATCH","DELETE",null],"description":"Required. The HTTP method. A read shows `null` when the stored step has none; a save needs a value.","isRequired":true,"uniqueKey":"steps.items.[INDEX].oneOf.15.method.oneOf.0","typeLabel":"enum\u003cstring>"},{"type":"null","enum":["GET","POST","PUT","PATCH","DELETE",null],"description":"Required. The HTTP method. A read shows `null` when the stored step has none; a save needs a value.","isRequired":true,"uniqueKey":"steps.items.[INDEX].oneOf.15.method.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"steps.items.[INDEX].oneOf.15.method","typeLabel":"enum\u003cstring> | null"},"url":{"oneOf":[{"type":"string","minLength":1,"maxLength":2048,"description":"Required, up to 2,048 characters. May hold template variables such as `{{call.external_number}}`. A read shows `null` when the stored step has none; a save needs a value.","example":"https://erp.example.com/orders/lookup","isRequired":true,"uniqueKey":"steps.items.[INDEX].oneOf.15.url.oneOf.0","typeLabel":"string"},{"type":"null","minLength":1,"maxLength":2048,"description":"Required, up to 2,048 characters. May hold template variables such as `{{call.external_number}}`. A read shows `null` when the stored step has none; a save needs a value.","example":"https://erp.example.com/orders/lookup","isRequired":true,"uniqueKey":"steps.items.[INDEX].oneOf.15.url.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"steps.items.[INDEX].oneOf.15.url","typeLabel":"string | null"},"parseResponse":{"type":"boolean","description":"Required. Makes the response readable by later conditions (`httpResponse.\u003cstep>.\u003cpath>`).","isRequired":true,"uniqueKey":"steps.items.[INDEX].oneOf.15.parseResponse","typeLabel":"boolean"},"keepResponseAfterCall":{"type":"boolean","description":"Required. Keeps the response after the call.","isRequired":true,"uniqueKey":"steps.items.[INDEX].oneOf.15.keepResponseAfterCall","typeLabel":"boolean"},"id":{"type":"string","pattern":"^[1-9][0-9]*$","description":"The stored step id. Send it to keep and update this step; omit it for a new step. It must be a step of this number's flow.","example":"5001","uniqueKey":"steps.items.[INDEX].oneOf.15.id","typeLabel":"string"},"ref":{"type":"string","pattern":"^[a-z][a-z0-9_-]{0,39}$","description":"New steps only, optional. Your label for this step, so that other steps of the same document can point at it. Unique in the document. Echoed in the response to the save, not stored.","example":"ask-order","uniqueKey":"steps.items.[INDEX].oneOf.15.ref","typeLabel":"string"},"name":{"oneOf":[{"type":"string","maxLength":100,"description":"Optional label shown in the Dashboard designer, up to 100 characters.","uniqueKey":"steps.items.[INDEX].oneOf.15.name.oneOf.0","typeLabel":"string"},{"type":"null","maxLength":100,"description":"Optional label shown in the Dashboard designer, up to 100 characters.","uniqueKey":"steps.items.[INDEX].oneOf.15.name.oneOf.1","typeLabel":"null"}],"uniqueKey":"steps.items.[INDEX].oneOf.15.name","typeLabel":"string | null"},"headers":{"type":"array","maxItems":50,"items":{"type":"object","additionalProperties":false,"required":["name"],"description":"One request header. Put credentials here, not in `url` or `body`: only header values are hidden.","properties":{"name":{"type":"string","minLength":1,"maxLength":256,"description":"Up to 256 characters.","example":"Authorization","isRequired":true,"uniqueKey":"steps.items.[INDEX].oneOf.15.headers.items.[INDEX].name","typeLabel":"string"},"value":{"oneOf":[{"type":"string","maxLength":8192,"description":"Up to 8,192 characters. Write-only: the value is never returned, and a read gives `null` with `valueSet: true`. Leave it out to keep the stored value. A new header needs a value, else `422 CALL_FLOWS.HEADER_VALUE_REQUIRED`.","uniqueKey":"steps.items.[INDEX].oneOf.15.headers.items.[INDEX].value.oneOf.0","typeLabel":"string"},{"type":"null","maxLength":8192,"description":"Up to 8,192 characters. Write-only: the value is never returned, and a read gives `null` with `valueSet: true`. Leave it out to keep the stored value. A new header needs a value, else `422 CALL_FLOWS.HEADER_VALUE_REQUIRED`.","uniqueKey":"steps.items.[INDEX].oneOf.15.headers.items.[INDEX].value.oneOf.1","typeLabel":"null"}],"uniqueKey":"steps.items.[INDEX].oneOf.15.headers.items.[INDEX].value","typeLabel":"string | null"}},"uniqueKey":"steps.items.[INDEX].oneOf.15.headers.items.[INDEX]","typeLabel":"object"},"description":"Up to 50 headers.","uniqueKey":"steps.items.[INDEX].oneOf.15.headers","typeLabel":"object[]"},"body":{"type":"array","maxItems":50,"items":{"type":"object","additionalProperties":false,"required":["key","value"],"properties":{"key":{"type":"string","minLength":1,"maxLength":255,"description":"Up to 255 characters.","isRequired":true,"uniqueKey":"steps.items.[INDEX].oneOf.15.body.items.[INDEX].key","typeLabel":"string"},"value":{"oneOf":[{"type":"string","minLength":1,"maxLength":8192,"description":"A non-empty string, up to 8,192 characters. It may hold template variables, such as `{{input[ask-order]}}`. A read shows `null` when the stored step has none; a save needs a value.","isRequired":true,"uniqueKey":"steps.items.[INDEX].oneOf.15.body.items.[INDEX].value.oneOf.0","typeLabel":"string"},{"type":"null","minLength":1,"maxLength":8192,"description":"A non-empty string, up to 8,192 characters. It may hold template variables, such as `{{input[ask-order]}}`. A read shows `null` when the stored step has none; a save needs a value.","isRequired":true,"uniqueKey":"steps.items.[INDEX].oneOf.15.body.items.[INDEX].value.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"steps.items.[INDEX].oneOf.15.body.items.[INDEX].value","typeLabel":"string | null"}},"uniqueKey":"steps.items.[INDEX].oneOf.15.body.items.[INDEX]","typeLabel":"object"},"description":"Up to 50 body fields.","uniqueKey":"steps.items.[INDEX].oneOf.15.body","typeLabel":"object[]"}},"additionalProperties":false,"uniqueKey":"steps.items.[INDEX].oneOf.15","typeLabel":"HTTP request · object"},{"type":"object","title":"Collect input","description":"One step of a call flow. `type` picks its fields. A step that branches, or that ends the call, is the last in its array. A branch is an array of steps with the same rules.","required":["type","soundId","waitSeconds","pattern"],"properties":{"type":{"type":"string","enum":["collectInput"],"isRequired":true,"uniqueKey":"steps.items.[INDEX].oneOf.16.type","typeLabel":"enum\u003cstring>"},"soundId":{"oneOf":[{"type":"string","pattern":"^[1-9][0-9]*$","description":"Required. The prompt. On a read it is `null` when what it pointed at no longer exists, and `problems` has `DANGLING_REFERENCE`.","example":"80","isRequired":true,"uniqueKey":"steps.items.[INDEX].oneOf.16.soundId.oneOf.0","typeLabel":"string"},{"type":"null","pattern":"^[1-9][0-9]*$","description":"Required. The prompt. On a read it is `null` when what it pointed at no longer exists, and `problems` has `DANGLING_REFERENCE`.","example":"80","isRequired":true,"uniqueKey":"steps.items.[INDEX].oneOf.16.soundId.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"steps.items.[INDEX].oneOf.16.soundId","typeLabel":"string | null"},"waitSeconds":{"oneOf":[{"type":"integer","minimum":1,"description":"Required, 1 or more. A read shows `null` when the stored step has none; a save needs a value.","isRequired":true,"uniqueKey":"steps.items.[INDEX].oneOf.16.waitSeconds.oneOf.0","typeLabel":"integer"},{"type":"null","minimum":1,"description":"Required, 1 or more. A read shows `null` when the stored step has none; a save needs a value.","isRequired":true,"uniqueKey":"steps.items.[INDEX].oneOf.16.waitSeconds.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"steps.items.[INDEX].oneOf.16.waitSeconds","typeLabel":"integer | null"},"pattern":{"oneOf":[{"type":"string","minLength":1,"maxLength":255,"description":"Required. A digit count or a regular expression, up to 255 characters. A read shows `null` when the stored step has none; a save needs a value.","example":"6","isRequired":true,"uniqueKey":"steps.items.[INDEX].oneOf.16.pattern.oneOf.0","typeLabel":"string"},{"type":"null","minLength":1,"maxLength":255,"description":"Required. A digit count or a regular expression, up to 255 characters. A read shows `null` when the stored step has none; a save needs a value.","example":"6","isRequired":true,"uniqueKey":"steps.items.[INDEX].oneOf.16.pattern.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"steps.items.[INDEX].oneOf.16.pattern","typeLabel":"string | null"},"id":{"type":"string","pattern":"^[1-9][0-9]*$","description":"The stored step id. Send it to keep and update this step; omit it for a new step. It must be a step of this number's flow.","example":"5001","uniqueKey":"steps.items.[INDEX].oneOf.16.id","typeLabel":"string"},"ref":{"type":"string","pattern":"^[a-z][a-z0-9_-]{0,39}$","description":"New steps only, optional. Your label for this step, so that other steps of the same document can point at it. Unique in the document. Echoed in the response to the save, not stored.","example":"ask-order","uniqueKey":"steps.items.[INDEX].oneOf.16.ref","typeLabel":"string"},"name":{"oneOf":[{"type":"string","maxLength":100,"description":"Optional label shown in the Dashboard designer, up to 100 characters.","uniqueKey":"steps.items.[INDEX].oneOf.16.name.oneOf.0","typeLabel":"string"},{"type":"null","maxLength":100,"description":"Optional label shown in the Dashboard designer, up to 100 characters.","uniqueKey":"steps.items.[INDEX].oneOf.16.name.oneOf.1","typeLabel":"null"}],"uniqueKey":"steps.items.[INDEX].oneOf.16.name","typeLabel":"string | null"},"retryOnInvalid":{"type":"boolean","description":"Ask again when the input does not match.","uniqueKey":"steps.items.[INDEX].oneOf.16.retryOnInvalid","typeLabel":"boolean"}},"additionalProperties":false,"uniqueKey":"steps.items.[INDEX].oneOf.16","typeLabel":"Collect input · object"},{"type":"object","title":"Mark call as resolved","description":"One step of a call flow. `type` picks its fields. A step that branches, or that ends the call, is the last in its array. A branch is an array of steps with the same rules.","required":["type"],"properties":{"type":{"type":"string","enum":["markResolved"],"isRequired":true,"uniqueKey":"steps.items.[INDEX].oneOf.17.type","typeLabel":"enum\u003cstring>"},"id":{"type":"string","pattern":"^[1-9][0-9]*$","description":"The stored step id. Send it to keep and update this step; omit it for a new step. It must be a step of this number's flow.","example":"5001","uniqueKey":"steps.items.[INDEX].oneOf.17.id","typeLabel":"string"},"ref":{"type":"string","pattern":"^[a-z][a-z0-9_-]{0,39}$","description":"New steps only, optional. Your label for this step, so that other steps of the same document can point at it. Unique in the document. Echoed in the response to the save, not stored.","example":"ask-order","uniqueKey":"steps.items.[INDEX].oneOf.17.ref","typeLabel":"string"},"name":{"oneOf":[{"type":"string","maxLength":100,"description":"Optional label shown in the Dashboard designer, up to 100 characters.","uniqueKey":"steps.items.[INDEX].oneOf.17.name.oneOf.0","typeLabel":"string"},{"type":"null","maxLength":100,"description":"Optional label shown in the Dashboard designer, up to 100 characters.","uniqueKey":"steps.items.[INDEX].oneOf.17.name.oneOf.1","typeLabel":"null"}],"uniqueKey":"steps.items.[INDEX].oneOf.17.name","typeLabel":"string | null"}},"additionalProperties":false,"uniqueKey":"steps.items.[INDEX].oneOf.17","typeLabel":"Mark call as resolved · object"},{"type":"object","title":"Unsupported step","description":"One step of a call flow. `type` picks its fields. A step that branches, or that ends the call, is the last in its array. A branch is an array of steps with the same rules.","required":["id","type","storedType"],"properties":{"id":{"type":"string","example":"419","isRequired":true,"uniqueKey":"steps.items.[INDEX].oneOf.18.id","typeLabel":"string"},"type":{"type":"string","enum":["unsupported"],"isRequired":true,"uniqueKey":"steps.items.[INDEX].oneOf.18.type","typeLabel":"enum\u003cstring>"}},"additionalProperties":false,"uniqueKey":"steps.items.[INDEX].oneOf.18","typeLabel":"Unsupported step · object"}],"uniqueKey":"steps.items.[INDEX]","typeLabel":"Ring user · object | Ring favorite user · object | Ring group · object | Voice agent · object | Playback · object | Voicemail · object | Redirect · object | Call recording · object | Fax · object | Change of caller · object | Dial by extension · object | IVR menu · object | Day/time splitter · object | Jump to · object | Condition splitter · object | HTTP request · object | Collect input · object | Mark call as resolved · object | Unsupported step · object"},"description":"1 to 200 steps in the whole flow. Keep a step by sending its `id`; steps you leave out are deleted, and steps without an `id` are created. To remove every step, use [Delete a number's call flow](/api-reference/call-flows/delete-a-numbers-call-flow).","minItems":1,"isRequired":true,"uniqueKey":"steps","typeLabel":"(Ring user · object | Ring favorite user · object | Ring group · object | Voice agent · object | Playback · object | Voicemail · object | Redirect · object | Call recording · object | Fax · object | Change of caller · object | Dial by extension · object | IVR menu · object | Day/time splitter · object | Jump to · object | Condition splitter · object | HTTP request · object | Collect input · object | Mark call as resolved · object | Unsupported step · object)[]"},"note":{"type":"string","maxLength":255,"description":"Optional, up to 255 characters: why you made the change, like a commit message. Stored on the version and shown in the version list. Not part of the flow.","uniqueKey":"note","typeLabel":"string"}},"uniqueKey":"","typeLabel":"object"},"example":{"steps":[{"type":"playback","soundId":"79"},{"type":"collectInput","ref":"ask-order","soundId":"80","waitSeconds":8,"pattern":"6","retryOnInvalid":true},{"type":"httpRequest","ref":"order-lookup","method":"POST","url":"https://erp.example.com/orders/lookup","headers":[{"name":"Authorization","value":"Bearer example-token"}],"body":[{"key":"order","value":"{{input[ask-order]}}"}],"parseResponse":true,"keepResponseAfterCall":false},{"type":"conditionSplitter","branches":[{"conditions":[{"field":"httpResponse.order-lookup.status","operator":"equals","value":"shipped"}],"steps":[{"type":"playback","soundId":"81"},{"type":"markResolved"}]}],"otherwise":[{"type":"ringGroup","groupId":"611","ringSeconds":40,"onAnswered":[],"onNoAnswer":[]}]}],"note":"Order status line"},"examples":{"Example":{"title":"Example","value":{"steps":[{"type":"playback","soundId":"79"},{"type":"collectInput","ref":"ask-order","soundId":"80","waitSeconds":8,"pattern":"6","retryOnInvalid":true},{"type":"httpRequest","ref":"order-lookup","method":"POST","url":"https://erp.example.com/orders/lookup","headers":[{"name":"Authorization","value":"Bearer example-token"}],"body":[{"key":"order","value":"{{input[ask-order]}}"}],"parseResponse":true,"keepResponseAfterCall":false},{"type":"conditionSplitter","branches":[{"conditions":[{"field":"httpResponse.order-lookup.status","operator":"equals","value":"shipped"}],"steps":[{"type":"playback","soundId":"81"},{"type":"markResolved"}]}],"otherwise":[{"type":"ringGroup","groupId":"611","ringSeconds":40,"onAnswered":[],"onNoAnswer":[]}]}],"note":"Order status line"}}},"exampleType":"examples"}},"exampleType":"examples"},"responses":{"fc815245-c29f-4718-9f9a-f13710fe40da":{"description":"The saved flow, live from the next call, with its new `ETag` and `versionId` and any warnings.","content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"required":["numberId","etag","editable","problems","businessHours","steps","updatedAt","versionId","dashboardUrl","warnings"],"description":"The live flow after a save, a restore or a publish. New steps carry their stored `id`, and the `ref` you sent, once.","properties":{"numberId":{"type":"string","readOnly":true,"description":"The number. Read-only.","example":"600","isRequired":true,"uniqueKey":"numberId","typeLabel":"string"},"etag":{"type":"string","readOnly":true,"description":"The same value as the `ETag` header. Read-only.","example":"\"cf1-9fJ2kQx7Lr0aT3\"","isRequired":true,"uniqueKey":"etag","typeLabel":"string"},"editable":{"type":"boolean","readOnly":true,"description":"`false` when the stored flow cannot be sent back unchanged; `problems` says why. With only `DANGLING_REFERENCE` problems, correct those fields and the save takes the document. `true` is not a guarantee: a flow saved in the Dashboard over a size limit, or with a ring step that has no ring time, reads `editable: true`, but sending it back unchanged is refused with `422`, as the call flow document says. Read-only.","isRequired":true,"uniqueKey":"editable","typeLabel":"boolean"},"problems":{"type":"array","readOnly":true,"items":{"type":"object","additionalProperties":false,"required":["code","message","stepId"],"description":"Stored data the API cannot represent. `UNSUPPORTED_STEP_TYPE`, `MULTIPLE_FIRST_STEPS`, `ORPHAN_STEPS`, `MULTIPLE_NEXT_STEPS`, `DANGLING_REFERENCE`, `VOICE_AGENT_LOOKUP_FAILED` and `STEP_NOT_ALLOWED_HERE` make the flow `editable: false`. `STEP_NOT_ALLOWED_HERE`: the Dashboard saved this step where Replace a number's call flow refuses it with `422 CALL_FLOWS.STEP_NOT_ALLOWED_HERE`: under a Jump to or a Fax step, after a Voicemail step (only HTTP Request, Mark Call as Resolved, the splitters and Jump to may follow one), on the answered branch of a ring step (calls skip it there), or beside a Fax step. Move or remove it and send the corrected document. `DANGLING_REFERENCE`: a step points at something that no longer exists, such as a deleted group, and that field is `null`. A condition on a deleted contact field or a deleted contact tag is one too: the condition keeps its `field` and `value` as stored, and the problem names the Condition splitter step. The read cannot go back unchanged, but you can still send the corrected document: set each such field to an existing record, or remove the step, and send the document to Replace a number's call flow. `VOICE_AGENT_LOOKUP_FAILED`: the voice agents could not be looked up, so `voiceAgentId` is `null`.","properties":{"code":{"type":"string","example":"DANGLING_REFERENCE","isRequired":true,"uniqueKey":"problems.items.[INDEX].code","typeLabel":"string"},"message":{"type":"string","isRequired":true,"uniqueKey":"problems.items.[INDEX].message","typeLabel":"string"},"stepId":{"oneOf":[{"type":"string","description":"The step the problem is on.","isRequired":true,"uniqueKey":"problems.items.[INDEX].stepId.oneOf.0","typeLabel":"string"},{"type":"null","description":"The step the problem is on.","isRequired":true,"uniqueKey":"problems.items.[INDEX].stepId.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"problems.items.[INDEX].stepId","typeLabel":"string | null"}},"uniqueKey":"problems.items.[INDEX]","typeLabel":"object"},"description":"Stored data the API cannot represent. Read-only.","isRequired":true,"uniqueKey":"problems","typeLabel":"object[]"},"businessHours":{"type":"object","additionalProperties":false,"required":["active","scope"],"description":"Whether business hours run before this flow. When closed, they decide what the caller hears, instead of the flow. Read-only.","properties":{"active":{"type":"boolean","description":"`true` when business hours run before this flow.","isRequired":true,"uniqueKey":"businessHours.active","typeLabel":"boolean"},"scope":{"oneOf":[{"type":"string","enum":["number","company",null],"description":"`number` when the number's own hours apply, `company` when the company hours apply, `null` when none apply.","isRequired":true,"uniqueKey":"businessHours.scope.oneOf.0","typeLabel":"enum\u003cstring>"},{"type":"null","enum":["number","company",null],"description":"`number` when the number's own hours apply, `company` when the company hours apply, `null` when none apply.","isRequired":true,"uniqueKey":"businessHours.scope.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"businessHours.scope","typeLabel":"enum\u003cstring> | null"}},"isRequired":true,"uniqueKey":"businessHours","typeLabel":"object"},"steps":{"type":"array","items":{"oneOf":[{"type":"object","title":"Ring user","description":"One step of a call flow. `type` picks its fields. A step that branches, or that ends the call, is the last in its array. A branch is an array of steps with the same rules.","required":["type"],"properties":{"type":{"type":"string","enum":["ringUser"],"isRequired":true,"uniqueKey":"steps.items.[INDEX].oneOf.0.type","typeLabel":"enum\u003cstring>"},"id":{"type":"string","pattern":"^[1-9][0-9]*$","description":"The stored step id. Send it to keep and update this step; omit it for a new step. It must be a step of this number's flow.","example":"5001","uniqueKey":"steps.items.[INDEX].oneOf.0.id","typeLabel":"string"},"ref":{"type":"string","pattern":"^[a-z][a-z0-9_-]{0,39}$","description":"New steps only, optional. Your label for this step, so that other steps of the same document can point at it. Unique in the document. Echoed in the response to the save, not stored.","example":"ask-order","uniqueKey":"steps.items.[INDEX].oneOf.0.ref","typeLabel":"string"},"name":{"oneOf":[{"type":"string","maxLength":100,"description":"Optional label shown in the Dashboard designer, up to 100 characters.","uniqueKey":"steps.items.[INDEX].oneOf.0.name.oneOf.0","typeLabel":"string"},{"type":"null","maxLength":100,"description":"Optional label shown in the Dashboard designer, up to 100 characters.","uniqueKey":"steps.items.[INDEX].oneOf.0.name.oneOf.1","typeLabel":"null"}],"uniqueKey":"steps.items.[INDEX].oneOf.0.name","typeLabel":"string | null"},"userId":{"oneOf":[{"type":"string","pattern":"^[1-9][0-9]*$","description":"A user of your account. On a read it is `null` when what it pointed at no longer exists, and `problems` has `DANGLING_REFERENCE`.","example":"7","uniqueKey":"steps.items.[INDEX].oneOf.0.userId.oneOf.0","typeLabel":"string"},{"type":"null","pattern":"^[1-9][0-9]*$","description":"A user of your account. On a read it is `null` when what it pointed at no longer exists, and `problems` has `DANGLING_REFERENCE`.","example":"7","uniqueKey":"steps.items.[INDEX].oneOf.0.userId.oneOf.1","typeLabel":"null"}],"uniqueKey":"steps.items.[INDEX].oneOf.0.userId","typeLabel":"string | null"},"userIdVariable":{"type":"string","minLength":1,"maxLength":255,"description":"A template such as `{{input[ask-agent]}}` that resolves to a user id at call time.","uniqueKey":"steps.items.[INDEX].oneOf.0.userIdVariable","typeLabel":"string"},"ringSeconds":{"oneOf":[{"type":"integer","minimum":1,"description":"1 or more. Required when `onNoAnswer` has steps: without it the save is `422 CALL_FLOWS.RING_SECONDS_REQUIRED`, whose message suggests 30. Otherwise optional, with no default: left out, the phone rings until someone answers or the caller hangs up, as in a flow saved in the Dashboard.","uniqueKey":"steps.items.[INDEX].oneOf.0.ringSeconds.oneOf.0","typeLabel":"integer"},{"type":"null","minimum":1,"description":"1 or more. Required when `onNoAnswer` has steps: without it the save is `422 CALL_FLOWS.RING_SECONDS_REQUIRED`, whose message suggests 30. Otherwise optional, with no default: left out, the phone rings until someone answers or the caller hangs up, as in a flow saved in the Dashboard.","uniqueKey":"steps.items.[INDEX].oneOf.0.ringSeconds.oneOf.1","typeLabel":"null"}],"uniqueKey":"steps.items.[INDEX].oneOf.0.ringSeconds","typeLabel":"integer | null"},"onAnswered":{"type":"array","items":{"$circularRef":"855dd704-1e29-4d7c-a188-217e7e2b4a07"},"description":"Runs after the call was answered and ended. Ring, Voice Agent, Fax, Voicemail, Call recording, Redirect, Dial by Extension and Change of caller steps are not allowed here.","uniqueKey":"steps.items.[INDEX].oneOf.0.onAnswered","typeLabel":"array"},"onNoAnswer":{"type":"array","items":{"$circularRef":"855dd704-1e29-4d7c-a188-217e7e2b4a07"},"description":"Runs when nobody answered within `ringSeconds`.","uniqueKey":"steps.items.[INDEX].oneOf.0.onNoAnswer","typeLabel":"array"},"userName":{"oneOf":[{"type":"string","readOnly":true,"description":"Only with `include=names`: the user's name, or `null` when it no longer resolves. Read-only: it may be sent back and is ignored.","uniqueKey":"steps.items.[INDEX].oneOf.0.userName.oneOf.0","typeLabel":"string"},{"type":"null","readOnly":true,"description":"Only with `include=names`: the user's name, or `null` when it no longer resolves. Read-only: it may be sent back and is ignored.","uniqueKey":"steps.items.[INDEX].oneOf.0.userName.oneOf.1","typeLabel":"null"}],"uniqueKey":"steps.items.[INDEX].oneOf.0.userName","typeLabel":"string | null"}},"additionalProperties":false,"uniqueKey":"steps.items.[INDEX].oneOf.0","typeLabel":"Ring user · object"},{"type":"object","title":"Ring favorite user","description":"One step of a call flow. `type` picks its fields. A step that branches, or that ends the call, is the last in its array. A branch is an array of steps with the same rules.","required":["type"],"properties":{"type":{"type":"string","enum":["ringFavoriteUser"],"isRequired":true,"uniqueKey":"steps.items.[INDEX].oneOf.1.type","typeLabel":"enum\u003cstring>"},"id":{"type":"string","pattern":"^[1-9][0-9]*$","description":"The stored step id. Send it to keep and update this step; omit it for a new step. It must be a step of this number's flow.","example":"5001","uniqueKey":"steps.items.[INDEX].oneOf.1.id","typeLabel":"string"},"ref":{"type":"string","pattern":"^[a-z][a-z0-9_-]{0,39}$","description":"New steps only, optional. Your label for this step, so that other steps of the same document can point at it. Unique in the document. Echoed in the response to the save, not stored.","example":"ask-order","uniqueKey":"steps.items.[INDEX].oneOf.1.ref","typeLabel":"string"},"name":{"oneOf":[{"type":"string","maxLength":100,"description":"Optional label shown in the Dashboard designer, up to 100 characters.","uniqueKey":"steps.items.[INDEX].oneOf.1.name.oneOf.0","typeLabel":"string"},{"type":"null","maxLength":100,"description":"Optional label shown in the Dashboard designer, up to 100 characters.","uniqueKey":"steps.items.[INDEX].oneOf.1.name.oneOf.1","typeLabel":"null"}],"uniqueKey":"steps.items.[INDEX].oneOf.1.name","typeLabel":"string | null"},"ringSeconds":{"oneOf":[{"type":"integer","minimum":1,"description":"1 or more. Required when `onNoAnswer` has steps: without it the save is `422 CALL_FLOWS.RING_SECONDS_REQUIRED`, whose message suggests 30. Otherwise optional, with no default: left out, the phone rings until someone answers or the caller hangs up, as in a flow saved in the Dashboard.","uniqueKey":"steps.items.[INDEX].oneOf.1.ringSeconds.oneOf.0","typeLabel":"integer"},{"type":"null","minimum":1,"description":"1 or more. Required when `onNoAnswer` has steps: without it the save is `422 CALL_FLOWS.RING_SECONDS_REQUIRED`, whose message suggests 30. Otherwise optional, with no default: left out, the phone rings until someone answers or the caller hangs up, as in a flow saved in the Dashboard.","uniqueKey":"steps.items.[INDEX].oneOf.1.ringSeconds.oneOf.1","typeLabel":"null"}],"uniqueKey":"steps.items.[INDEX].oneOf.1.ringSeconds","typeLabel":"integer | null"},"onAnswered":{"type":"array","items":{"$circularRef":"855dd704-1e29-4d7c-a188-217e7e2b4a07"},"description":"Runs after the call was answered and ended. Ring, Voice Agent, Fax, Voicemail, Call recording, Redirect, Dial by Extension and Change of caller steps are not allowed here.","uniqueKey":"steps.items.[INDEX].oneOf.1.onAnswered","typeLabel":"array"},"onNoAnswer":{"type":"array","items":{"$circularRef":"855dd704-1e29-4d7c-a188-217e7e2b4a07"},"description":"Runs when nobody answered within `ringSeconds`.","uniqueKey":"steps.items.[INDEX].oneOf.1.onNoAnswer","typeLabel":"array"}},"additionalProperties":false,"uniqueKey":"steps.items.[INDEX].oneOf.1","typeLabel":"Ring favorite user · object"},{"type":"object","title":"Ring group","description":"One step of a call flow. `type` picks its fields. A step that branches, or that ends the call, is the last in its array. A branch is an array of steps with the same rules.","required":["type"],"properties":{"type":{"type":"string","enum":["ringGroup"],"isRequired":true,"uniqueKey":"steps.items.[INDEX].oneOf.2.type","typeLabel":"enum\u003cstring>"},"id":{"type":"string","pattern":"^[1-9][0-9]*$","description":"The stored step id. Send it to keep and update this step; omit it for a new step. It must be a step of this number's flow.","example":"5001","uniqueKey":"steps.items.[INDEX].oneOf.2.id","typeLabel":"string"},"ref":{"type":"string","pattern":"^[a-z][a-z0-9_-]{0,39}$","description":"New steps only, optional. Your label for this step, so that other steps of the same document can point at it. Unique in the document. Echoed in the response to the save, not stored.","example":"ask-order","uniqueKey":"steps.items.[INDEX].oneOf.2.ref","typeLabel":"string"},"name":{"oneOf":[{"type":"string","maxLength":100,"description":"Optional label shown in the Dashboard designer, up to 100 characters.","uniqueKey":"steps.items.[INDEX].oneOf.2.name.oneOf.0","typeLabel":"string"},{"type":"null","maxLength":100,"description":"Optional label shown in the Dashboard designer, up to 100 characters.","uniqueKey":"steps.items.[INDEX].oneOf.2.name.oneOf.1","typeLabel":"null"}],"uniqueKey":"steps.items.[INDEX].oneOf.2.name","typeLabel":"string | null"},"groupId":{"oneOf":[{"type":"string","pattern":"^[1-9][0-9]*$","description":"The group id, as the Groups API keys it (not the group's queue number). On a read it is `null` when what it pointed at no longer exists, and `problems` has `DANGLING_REFERENCE`.","example":"611","uniqueKey":"steps.items.[INDEX].oneOf.2.groupId.oneOf.0","typeLabel":"string"},{"type":"null","pattern":"^[1-9][0-9]*$","description":"The group id, as the Groups API keys it (not the group's queue number). On a read it is `null` when what it pointed at no longer exists, and `problems` has `DANGLING_REFERENCE`.","example":"611","uniqueKey":"steps.items.[INDEX].oneOf.2.groupId.oneOf.1","typeLabel":"null"}],"uniqueKey":"steps.items.[INDEX].oneOf.2.groupId","typeLabel":"string | null"},"groupVariable":{"type":"string","minLength":1,"maxLength":255,"description":"A template that resolves to the group's queue number at call time, not its id.","uniqueKey":"steps.items.[INDEX].oneOf.2.groupVariable","typeLabel":"string"},"ringSeconds":{"oneOf":[{"type":"integer","minimum":1,"description":"1 or more. Required when `onNoAnswer` has steps: without it the save is `422 CALL_FLOWS.RING_SECONDS_REQUIRED`, whose message names the minimum: the group's per-agent timeout plus 10 seconds, at least 20. Otherwise optional, with no default: left out, the caller waits in the group's queue until someone answers or hangs up, as in the Dashboard. A value below the minimum is a warning, `RING_TIME_BELOW_GROUP_MINIMUM`.","uniqueKey":"steps.items.[INDEX].oneOf.2.ringSeconds.oneOf.0","typeLabel":"integer"},{"type":"null","minimum":1,"description":"1 or more. Required when `onNoAnswer` has steps: without it the save is `422 CALL_FLOWS.RING_SECONDS_REQUIRED`, whose message names the minimum: the group's per-agent timeout plus 10 seconds, at least 20. Otherwise optional, with no default: left out, the caller waits in the group's queue until someone answers or hangs up, as in the Dashboard. A value below the minimum is a warning, `RING_TIME_BELOW_GROUP_MINIMUM`.","uniqueKey":"steps.items.[INDEX].oneOf.2.ringSeconds.oneOf.1","typeLabel":"null"}],"uniqueKey":"steps.items.[INDEX].oneOf.2.ringSeconds","typeLabel":"integer | null"},"onAnswered":{"type":"array","items":{"$circularRef":"855dd704-1e29-4d7c-a188-217e7e2b4a07"},"description":"Runs after the call was answered and ended. Ring, Voice Agent, Fax, Voicemail, Call recording, Redirect, Dial by Extension and Change of caller steps are not allowed here.","uniqueKey":"steps.items.[INDEX].oneOf.2.onAnswered","typeLabel":"array"},"onNoAnswer":{"type":"array","items":{"$circularRef":"855dd704-1e29-4d7c-a188-217e7e2b4a07"},"description":"Runs when nobody answered within `ringSeconds`.","uniqueKey":"steps.items.[INDEX].oneOf.2.onNoAnswer","typeLabel":"array"},"groupName":{"oneOf":[{"type":"string","readOnly":true,"description":"Only with `include=names`: the group's name, or `null` when it no longer resolves. Read-only: it may be sent back and is ignored.","uniqueKey":"steps.items.[INDEX].oneOf.2.groupName.oneOf.0","typeLabel":"string"},{"type":"null","readOnly":true,"description":"Only with `include=names`: the group's name, or `null` when it no longer resolves. Read-only: it may be sent back and is ignored.","uniqueKey":"steps.items.[INDEX].oneOf.2.groupName.oneOf.1","typeLabel":"null"}],"uniqueKey":"steps.items.[INDEX].oneOf.2.groupName","typeLabel":"string | null"}},"additionalProperties":false,"uniqueKey":"steps.items.[INDEX].oneOf.2","typeLabel":"Ring group · object"},{"type":"object","title":"Voice agent","description":"One step of a call flow. `type` picks its fields. A step that branches, or that ends the call, is the last in its array. A branch is an array of steps with the same rules.","required":["type","voiceAgentId"],"properties":{"type":{"type":"string","enum":["voiceAgent"],"isRequired":true,"uniqueKey":"steps.items.[INDEX].oneOf.3.type","typeLabel":"enum\u003cstring>"},"voiceAgentId":{"oneOf":[{"type":"string","pattern":"^[0-9a-f]{24}$","description":"Required. The `id` that [List voice agents](/api-reference/voiceagent/list-voice-agents) returns, a 24-character hex id. Must be an inbound voice agent of your account that can take calls, else `422 CALL_FLOWS.UNKNOWN_VOICE_AGENT`; checked when the step is new or changed. On a read it is `null` when the agent no longer exists (problem `DANGLING_REFERENCE`) or could not be looked up (problem `VOICE_AGENT_LOOKUP_FAILED`).","example":"674b87da2a8347e6682cca8d","isRequired":true,"uniqueKey":"steps.items.[INDEX].oneOf.3.voiceAgentId.oneOf.0","typeLabel":"string"},{"type":"null","pattern":"^[0-9a-f]{24}$","description":"Required. The `id` that [List voice agents](/api-reference/voiceagent/list-voice-agents) returns, a 24-character hex id. Must be an inbound voice agent of your account that can take calls, else `422 CALL_FLOWS.UNKNOWN_VOICE_AGENT`; checked when the step is new or changed. On a read it is `null` when the agent no longer exists (problem `DANGLING_REFERENCE`) or could not be looked up (problem `VOICE_AGENT_LOOKUP_FAILED`).","example":"674b87da2a8347e6682cca8d","isRequired":true,"uniqueKey":"steps.items.[INDEX].oneOf.3.voiceAgentId.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"steps.items.[INDEX].oneOf.3.voiceAgentId","typeLabel":"string | null"},"id":{"type":"string","pattern":"^[1-9][0-9]*$","description":"The stored step id. Send it to keep and update this step; omit it for a new step. It must be a step of this number's flow.","example":"5001","uniqueKey":"steps.items.[INDEX].oneOf.3.id","typeLabel":"string"},"ref":{"type":"string","pattern":"^[a-z][a-z0-9_-]{0,39}$","description":"New steps only, optional. Your label for this step, so that other steps of the same document can point at it. Unique in the document. Echoed in the response to the save, not stored.","example":"ask-order","uniqueKey":"steps.items.[INDEX].oneOf.3.ref","typeLabel":"string"},"name":{"oneOf":[{"type":"string","maxLength":100,"description":"Optional label shown in the Dashboard designer, up to 100 characters.","uniqueKey":"steps.items.[INDEX].oneOf.3.name.oneOf.0","typeLabel":"string"},{"type":"null","maxLength":100,"description":"Optional label shown in the Dashboard designer, up to 100 characters.","uniqueKey":"steps.items.[INDEX].oneOf.3.name.oneOf.1","typeLabel":"null"}],"uniqueKey":"steps.items.[INDEX].oneOf.3.name","typeLabel":"string | null"},"onAnswered":{"type":"array","items":{"$circularRef":"855dd704-1e29-4d7c-a188-217e7e2b4a07"},"description":"Runs after the voice agent handled the call. Any step may follow, ring steps included.","uniqueKey":"steps.items.[INDEX].oneOf.3.onAnswered","typeLabel":"array"},"onNoAnswer":{"type":"array","items":{"$circularRef":"855dd704-1e29-4d7c-a188-217e7e2b4a07"},"description":"Runs when the voice agent did not take the call.","uniqueKey":"steps.items.[INDEX].oneOf.3.onNoAnswer","typeLabel":"array"},"voiceAgentName":{"oneOf":[{"type":"string","readOnly":true,"description":"Only with `include=names`: the voice agent's name, or `null` when it no longer resolves. Read-only: it may be sent back and is ignored.","uniqueKey":"steps.items.[INDEX].oneOf.3.voiceAgentName.oneOf.0","typeLabel":"string"},{"type":"null","readOnly":true,"description":"Only with `include=names`: the voice agent's name, or `null` when it no longer resolves. Read-only: it may be sent back and is ignored.","uniqueKey":"steps.items.[INDEX].oneOf.3.voiceAgentName.oneOf.1","typeLabel":"null"}],"uniqueKey":"steps.items.[INDEX].oneOf.3.voiceAgentName","typeLabel":"string | null"}},"additionalProperties":false,"uniqueKey":"steps.items.[INDEX].oneOf.3","typeLabel":"Voice agent · object"},{"type":"object","title":"Playback","description":"One step of a call flow. `type` picks its fields. A step that branches, or that ends the call, is the last in its array. A branch is an array of steps with the same rules.","required":["type","soundId"],"properties":{"type":{"type":"string","enum":["playback"],"isRequired":true,"uniqueKey":"steps.items.[INDEX].oneOf.4.type","typeLabel":"enum\u003cstring>"},"soundId":{"oneOf":[{"type":"string","pattern":"^[1-9][0-9]*$","description":"Required. A sound of your account, or a CloudTalk default sound, from [List sounds](/api-reference/sounds/list-sounds). On a read it is `null` when what it pointed at no longer exists, and `problems` has `DANGLING_REFERENCE`.","example":"79","isRequired":true,"uniqueKey":"steps.items.[INDEX].oneOf.4.soundId.oneOf.0","typeLabel":"string"},{"type":"null","pattern":"^[1-9][0-9]*$","description":"Required. A sound of your account, or a CloudTalk default sound, from [List sounds](/api-reference/sounds/list-sounds). On a read it is `null` when what it pointed at no longer exists, and `problems` has `DANGLING_REFERENCE`.","example":"79","isRequired":true,"uniqueKey":"steps.items.[INDEX].oneOf.4.soundId.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"steps.items.[INDEX].oneOf.4.soundId","typeLabel":"string | null"},"id":{"type":"string","pattern":"^[1-9][0-9]*$","description":"The stored step id. Send it to keep and update this step; omit it for a new step. It must be a step of this number's flow.","example":"5001","uniqueKey":"steps.items.[INDEX].oneOf.4.id","typeLabel":"string"},"ref":{"type":"string","pattern":"^[a-z][a-z0-9_-]{0,39}$","description":"New steps only, optional. Your label for this step, so that other steps of the same document can point at it. Unique in the document. Echoed in the response to the save, not stored.","example":"ask-order","uniqueKey":"steps.items.[INDEX].oneOf.4.ref","typeLabel":"string"},"name":{"oneOf":[{"type":"string","maxLength":100,"description":"Optional label shown in the Dashboard designer, up to 100 characters.","uniqueKey":"steps.items.[INDEX].oneOf.4.name.oneOf.0","typeLabel":"string"},{"type":"null","maxLength":100,"description":"Optional label shown in the Dashboard designer, up to 100 characters.","uniqueKey":"steps.items.[INDEX].oneOf.4.name.oneOf.1","typeLabel":"null"}],"uniqueKey":"steps.items.[INDEX].oneOf.4.name","typeLabel":"string | null"},"soundName":{"oneOf":[{"type":"string","readOnly":true,"description":"Only with `include=names`: the sound's name, or `null` when it no longer resolves. Read-only: it may be sent back and is ignored.","uniqueKey":"steps.items.[INDEX].oneOf.4.soundName.oneOf.0","typeLabel":"string"},{"type":"null","readOnly":true,"description":"Only with `include=names`: the sound's name, or `null` when it no longer resolves. Read-only: it may be sent back and is ignored.","uniqueKey":"steps.items.[INDEX].oneOf.4.soundName.oneOf.1","typeLabel":"null"}],"uniqueKey":"steps.items.[INDEX].oneOf.4.soundName","typeLabel":"string | null"}},"additionalProperties":false,"uniqueKey":"steps.items.[INDEX].oneOf.4","typeLabel":"Playback · object"},{"type":"object","title":"Voicemail","description":"One step of a call flow. `type` picks its fields. A step that branches, or that ends the call, is the last in its array. A branch is an array of steps with the same rules.","required":["type","emailNotification","attachRecording"],"properties":{"type":{"type":"string","enum":["voicemail"],"isRequired":true,"uniqueKey":"steps.items.[INDEX].oneOf.5.type","typeLabel":"enum\u003cstring>"},"emailNotification":{"oneOf":[{"type":"string","enum":["on","off","accountDefault",null],"description":"Required. Whether the message is sent by email: `on`, `off`, or `accountDefault` to follow the account setting. A read shows `null` when the stored step has none; a save needs a value.","isRequired":true,"uniqueKey":"steps.items.[INDEX].oneOf.5.emailNotification.oneOf.0","typeLabel":"enum\u003cstring>"},{"type":"null","enum":["on","off","accountDefault",null],"description":"Required. Whether the message is sent by email: `on`, `off`, or `accountDefault` to follow the account setting. A read shows `null` when the stored step has none; a save needs a value.","isRequired":true,"uniqueKey":"steps.items.[INDEX].oneOf.5.emailNotification.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"steps.items.[INDEX].oneOf.5.emailNotification","typeLabel":"enum\u003cstring> | null"},"attachRecording":{"oneOf":[{"type":"string","enum":["on","off","accountDefault",null],"description":"Required. Whether the email carries the recording: `on`, `off` or `accountDefault`. A read shows `null` when the stored step has none; a save needs a value.","isRequired":true,"uniqueKey":"steps.items.[INDEX].oneOf.5.attachRecording.oneOf.0","typeLabel":"enum\u003cstring>"},{"type":"null","enum":["on","off","accountDefault",null],"description":"Required. Whether the email carries the recording: `on`, `off` or `accountDefault`. A read shows `null` when the stored step has none; a save needs a value.","isRequired":true,"uniqueKey":"steps.items.[INDEX].oneOf.5.attachRecording.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"steps.items.[INDEX].oneOf.5.attachRecording","typeLabel":"enum\u003cstring> | null"},"id":{"type":"string","pattern":"^[1-9][0-9]*$","description":"The stored step id. Send it to keep and update this step; omit it for a new step. It must be a step of this number's flow.","example":"5001","uniqueKey":"steps.items.[INDEX].oneOf.5.id","typeLabel":"string"},"ref":{"type":"string","pattern":"^[a-z][a-z0-9_-]{0,39}$","description":"New steps only, optional. Your label for this step, so that other steps of the same document can point at it. Unique in the document. Echoed in the response to the save, not stored.","example":"ask-order","uniqueKey":"steps.items.[INDEX].oneOf.5.ref","typeLabel":"string"},"name":{"oneOf":[{"type":"string","maxLength":100,"description":"Optional label shown in the Dashboard designer, up to 100 characters.","uniqueKey":"steps.items.[INDEX].oneOf.5.name.oneOf.0","typeLabel":"string"},{"type":"null","maxLength":100,"description":"Optional label shown in the Dashboard designer, up to 100 characters.","uniqueKey":"steps.items.[INDEX].oneOf.5.name.oneOf.1","typeLabel":"null"}],"uniqueKey":"steps.items.[INDEX].oneOf.5.name","typeLabel":"string | null"},"voicemailBoxId":{"oneOf":[{"type":"string","pattern":"^[1-9][0-9]*$","description":"A voicemail box from [List voicemail boxes](/api-reference/call-flows/list-voicemail-boxes). On a read it is `null` when what it pointed at no longer exists, and `problems` has `DANGLING_REFERENCE`.","example":"88","uniqueKey":"steps.items.[INDEX].oneOf.5.voicemailBoxId.oneOf.0","typeLabel":"string"},{"type":"null","pattern":"^[1-9][0-9]*$","description":"A voicemail box from [List voicemail boxes](/api-reference/call-flows/list-voicemail-boxes). On a read it is `null` when what it pointed at no longer exists, and `problems` has `DANGLING_REFERENCE`.","example":"88","uniqueKey":"steps.items.[INDEX].oneOf.5.voicemailBoxId.oneOf.1","typeLabel":"null"}],"uniqueKey":"steps.items.[INDEX].oneOf.5.voicemailBoxId","typeLabel":"string | null"},"voicemailBoxVariable":{"type":"string","minLength":1,"maxLength":255,"description":"A template that resolves to a mailbox number at call time.","uniqueKey":"steps.items.[INDEX].oneOf.5.voicemailBoxVariable","typeLabel":"string"},"voicemailBoxName":{"oneOf":[{"type":"string","readOnly":true,"description":"Only with `include=names`: the voicemail box's name, or `null` when it no longer resolves. Read-only: it may be sent back and is ignored.","uniqueKey":"steps.items.[INDEX].oneOf.5.voicemailBoxName.oneOf.0","typeLabel":"string"},{"type":"null","readOnly":true,"description":"Only with `include=names`: the voicemail box's name, or `null` when it no longer resolves. Read-only: it may be sent back and is ignored.","uniqueKey":"steps.items.[INDEX].oneOf.5.voicemailBoxName.oneOf.1","typeLabel":"null"}],"uniqueKey":"steps.items.[INDEX].oneOf.5.voicemailBoxName","typeLabel":"string | null"}},"additionalProperties":false,"uniqueKey":"steps.items.[INDEX].oneOf.5","typeLabel":"Voicemail · object"},{"type":"object","title":"Redirect","description":"One step of a call flow. `type` picks its fields. A step that branches, or that ends the call, is the last in its array. A branch is an array of steps with the same rules.","required":["type","phoneNumber"],"properties":{"type":{"type":"string","enum":["redirect"],"isRequired":true,"uniqueKey":"steps.items.[INDEX].oneOf.6.type","typeLabel":"enum\u003cstring>"},"phoneNumber":{"oneOf":[{"type":"string","pattern":"^[0-9+*#]+$","maxLength":255,"description":"Required. The number to forward to. Digits, `+`, `*` and `#` only, up to 255 characters. A read shows `null` when the stored step has none; a save needs a value.","example":"+12025550172","isRequired":true,"uniqueKey":"steps.items.[INDEX].oneOf.6.phoneNumber.oneOf.0","typeLabel":"string"},{"type":"null","pattern":"^[0-9+*#]+$","maxLength":255,"description":"Required. The number to forward to. Digits, `+`, `*` and `#` only, up to 255 characters. A read shows `null` when the stored step has none; a save needs a value.","example":"+12025550172","isRequired":true,"uniqueKey":"steps.items.[INDEX].oneOf.6.phoneNumber.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"steps.items.[INDEX].oneOf.6.phoneNumber","typeLabel":"string | null"},"id":{"type":"string","pattern":"^[1-9][0-9]*$","description":"The stored step id. Send it to keep and update this step; omit it for a new step. It must be a step of this number's flow.","example":"5001","uniqueKey":"steps.items.[INDEX].oneOf.6.id","typeLabel":"string"},"ref":{"type":"string","pattern":"^[a-z][a-z0-9_-]{0,39}$","description":"New steps only, optional. Your label for this step, so that other steps of the same document can point at it. Unique in the document. Echoed in the response to the save, not stored.","example":"ask-order","uniqueKey":"steps.items.[INDEX].oneOf.6.ref","typeLabel":"string"},"name":{"oneOf":[{"type":"string","maxLength":100,"description":"Optional label shown in the Dashboard designer, up to 100 characters.","uniqueKey":"steps.items.[INDEX].oneOf.6.name.oneOf.0","typeLabel":"string"},{"type":"null","maxLength":100,"description":"Optional label shown in the Dashboard designer, up to 100 characters.","uniqueKey":"steps.items.[INDEX].oneOf.6.name.oneOf.1","typeLabel":"null"}],"uniqueKey":"steps.items.[INDEX].oneOf.6.name","typeLabel":"string | null"},"ringSeconds":{"oneOf":[{"type":"integer","minimum":1,"description":"1 or more. Required when `onNoAnswer` has steps (`422 CALL_FLOWS.RING_SECONDS_REQUIRED`). Otherwise optional, with no default: left out, the forwarded call rings until answered or the caller hangs up, as in the Dashboard.","uniqueKey":"steps.items.[INDEX].oneOf.6.ringSeconds.oneOf.0","typeLabel":"integer"},{"type":"null","minimum":1,"description":"1 or more. Required when `onNoAnswer` has steps (`422 CALL_FLOWS.RING_SECONDS_REQUIRED`). Otherwise optional, with no default: left out, the forwarded call rings until answered or the caller hangs up, as in the Dashboard.","uniqueKey":"steps.items.[INDEX].oneOf.6.ringSeconds.oneOf.1","typeLabel":"null"}],"uniqueKey":"steps.items.[INDEX].oneOf.6.ringSeconds","typeLabel":"integer | null"},"onNoAnswer":{"type":"array","items":{"$circularRef":"855dd704-1e29-4d7c-a188-217e7e2b4a07"},"description":"Fallback when the forwarded call is not answered in time.","uniqueKey":"steps.items.[INDEX].oneOf.6.onNoAnswer","typeLabel":"array"}},"additionalProperties":false,"uniqueKey":"steps.items.[INDEX].oneOf.6","typeLabel":"Redirect · object"},{"type":"object","title":"Call recording","description":"One step of a call flow. `type` picks its fields. A step that branches, or that ends the call, is the last in its array. A branch is an array of steps with the same rules.","required":["type","enabled"],"properties":{"type":{"type":"string","enum":["recording"],"isRequired":true,"uniqueKey":"steps.items.[INDEX].oneOf.7.type","typeLabel":"enum\u003cstring>"},"enabled":{"type":"boolean","description":"Required. `true` records from here on, `false` stops recording.","isRequired":true,"uniqueKey":"steps.items.[INDEX].oneOf.7.enabled","typeLabel":"boolean"},"id":{"type":"string","pattern":"^[1-9][0-9]*$","description":"The stored step id. Send it to keep and update this step; omit it for a new step. It must be a step of this number's flow.","example":"5001","uniqueKey":"steps.items.[INDEX].oneOf.7.id","typeLabel":"string"},"ref":{"type":"string","pattern":"^[a-z][a-z0-9_-]{0,39}$","description":"New steps only, optional. Your label for this step, so that other steps of the same document can point at it. Unique in the document. Echoed in the response to the save, not stored.","example":"ask-order","uniqueKey":"steps.items.[INDEX].oneOf.7.ref","typeLabel":"string"},"name":{"oneOf":[{"type":"string","maxLength":100,"description":"Optional label shown in the Dashboard designer, up to 100 characters.","uniqueKey":"steps.items.[INDEX].oneOf.7.name.oneOf.0","typeLabel":"string"},{"type":"null","maxLength":100,"description":"Optional label shown in the Dashboard designer, up to 100 characters.","uniqueKey":"steps.items.[INDEX].oneOf.7.name.oneOf.1","typeLabel":"null"}],"uniqueKey":"steps.items.[INDEX].oneOf.7.name","typeLabel":"string | null"}},"additionalProperties":false,"uniqueKey":"steps.items.[INDEX].oneOf.7","typeLabel":"Call recording · object"},{"type":"object","title":"Fax","description":"One step of a call flow. `type` picks its fields. A step that branches, or that ends the call, is the last in its array. A branch is an array of steps with the same rules.","required":["type","email"],"properties":{"type":{"type":"string","enum":["fax"],"isRequired":true,"uniqueKey":"steps.items.[INDEX].oneOf.8.type","typeLabel":"enum\u003cstring>"},"email":{"oneOf":[{"type":"string","format":"email","maxLength":255,"description":"Required. A valid email address that receives the faxes, up to 255 characters. A read shows `null` when the stored step has none; a save needs a value.","isRequired":true,"uniqueKey":"steps.items.[INDEX].oneOf.8.email.oneOf.0","typeLabel":"string\u003cemail>"},{"type":"null","format":"email","maxLength":255,"description":"Required. A valid email address that receives the faxes, up to 255 characters. A read shows `null` when the stored step has none; a save needs a value.","isRequired":true,"uniqueKey":"steps.items.[INDEX].oneOf.8.email.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"steps.items.[INDEX].oneOf.8.email","typeLabel":"string\u003cemail> | null"},"id":{"type":"string","pattern":"^[1-9][0-9]*$","description":"The stored step id. Send it to keep and update this step; omit it for a new step. It must be a step of this number's flow.","example":"5001","uniqueKey":"steps.items.[INDEX].oneOf.8.id","typeLabel":"string"},"ref":{"type":"string","pattern":"^[a-z][a-z0-9_-]{0,39}$","description":"New steps only, optional. Your label for this step, so that other steps of the same document can point at it. Unique in the document. Echoed in the response to the save, not stored.","example":"ask-order","uniqueKey":"steps.items.[INDEX].oneOf.8.ref","typeLabel":"string"},"name":{"oneOf":[{"type":"string","maxLength":100,"description":"Optional label shown in the Dashboard designer, up to 100 characters.","uniqueKey":"steps.items.[INDEX].oneOf.8.name.oneOf.0","typeLabel":"string"},{"type":"null","maxLength":100,"description":"Optional label shown in the Dashboard designer, up to 100 characters.","uniqueKey":"steps.items.[INDEX].oneOf.8.name.oneOf.1","typeLabel":"null"}],"uniqueKey":"steps.items.[INDEX].oneOf.8.name","typeLabel":"string | null"}},"additionalProperties":false,"uniqueKey":"steps.items.[INDEX].oneOf.8","typeLabel":"Fax · object"},{"type":"object","title":"Change of caller","description":"One step of a call flow. `type` picks its fields. A step that branches, or that ends the call, is the last in its array. A branch is an array of steps with the same rules.","required":["type","phoneNumber"],"properties":{"type":{"type":"string","enum":["changeCallerId"],"isRequired":true,"uniqueKey":"steps.items.[INDEX].oneOf.9.type","typeLabel":"enum\u003cstring>"},"phoneNumber":{"oneOf":[{"type":"string","pattern":"^[0-9+*#]+$","maxLength":255,"description":"Required. The number shown next. Digits, `+`, `*` and `#` only, up to 255 characters. A read shows `null` when the stored step has none; a save needs a value.","isRequired":true,"uniqueKey":"steps.items.[INDEX].oneOf.9.phoneNumber.oneOf.0","typeLabel":"string"},{"type":"null","pattern":"^[0-9+*#]+$","maxLength":255,"description":"Required. The number shown next. Digits, `+`, `*` and `#` only, up to 255 characters. A read shows `null` when the stored step has none; a save needs a value.","isRequired":true,"uniqueKey":"steps.items.[INDEX].oneOf.9.phoneNumber.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"steps.items.[INDEX].oneOf.9.phoneNumber","typeLabel":"string | null"},"id":{"type":"string","pattern":"^[1-9][0-9]*$","description":"The stored step id. Send it to keep and update this step; omit it for a new step. It must be a step of this number's flow.","example":"5001","uniqueKey":"steps.items.[INDEX].oneOf.9.id","typeLabel":"string"},"ref":{"type":"string","pattern":"^[a-z][a-z0-9_-]{0,39}$","description":"New steps only, optional. Your label for this step, so that other steps of the same document can point at it. Unique in the document. Echoed in the response to the save, not stored.","example":"ask-order","uniqueKey":"steps.items.[INDEX].oneOf.9.ref","typeLabel":"string"},"name":{"oneOf":[{"type":"string","maxLength":100,"description":"Optional label shown in the Dashboard designer, up to 100 characters.","uniqueKey":"steps.items.[INDEX].oneOf.9.name.oneOf.0","typeLabel":"string"},{"type":"null","maxLength":100,"description":"Optional label shown in the Dashboard designer, up to 100 characters.","uniqueKey":"steps.items.[INDEX].oneOf.9.name.oneOf.1","typeLabel":"null"}],"uniqueKey":"steps.items.[INDEX].oneOf.9.name","typeLabel":"string | null"}},"additionalProperties":false,"uniqueKey":"steps.items.[INDEX].oneOf.9","typeLabel":"Change of caller · object"},{"type":"object","title":"Dial by extension","description":"One step of a call flow. `type` picks its fields. A step that branches, or that ends the call, is the last in its array. A branch is an array of steps with the same rules.","required":["type","soundId"],"properties":{"type":{"type":"string","enum":["dialByExtension"],"isRequired":true,"uniqueKey":"steps.items.[INDEX].oneOf.10.type","typeLabel":"enum\u003cstring>"},"soundId":{"oneOf":[{"type":"string","pattern":"^[1-9][0-9]*$","description":"Required. The prompt played to the caller. On a read it is `null` when what it pointed at no longer exists, and `problems` has `DANGLING_REFERENCE`.","example":"79","isRequired":true,"uniqueKey":"steps.items.[INDEX].oneOf.10.soundId.oneOf.0","typeLabel":"string"},{"type":"null","pattern":"^[1-9][0-9]*$","description":"Required. The prompt played to the caller. On a read it is `null` when what it pointed at no longer exists, and `problems` has `DANGLING_REFERENCE`.","example":"79","isRequired":true,"uniqueKey":"steps.items.[INDEX].oneOf.10.soundId.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"steps.items.[INDEX].oneOf.10.soundId","typeLabel":"string | null"},"id":{"type":"string","pattern":"^[1-9][0-9]*$","description":"The stored step id. Send it to keep and update this step; omit it for a new step. It must be a step of this number's flow.","example":"5001","uniqueKey":"steps.items.[INDEX].oneOf.10.id","typeLabel":"string"},"ref":{"type":"string","pattern":"^[a-z][a-z0-9_-]{0,39}$","description":"New steps only, optional. Your label for this step, so that other steps of the same document can point at it. Unique in the document. Echoed in the response to the save, not stored.","example":"ask-order","uniqueKey":"steps.items.[INDEX].oneOf.10.ref","typeLabel":"string"},"name":{"oneOf":[{"type":"string","maxLength":100,"description":"Optional label shown in the Dashboard designer, up to 100 characters.","uniqueKey":"steps.items.[INDEX].oneOf.10.name.oneOf.0","typeLabel":"string"},{"type":"null","maxLength":100,"description":"Optional label shown in the Dashboard designer, up to 100 characters.","uniqueKey":"steps.items.[INDEX].oneOf.10.name.oneOf.1","typeLabel":"null"}],"uniqueKey":"steps.items.[INDEX].oneOf.10.name","typeLabel":"string | null"},"waitSeconds":{"oneOf":[{"type":"integer","minimum":1,"description":"1 or more. How long to wait for the extension.","uniqueKey":"steps.items.[INDEX].oneOf.10.waitSeconds.oneOf.0","typeLabel":"integer"},{"type":"null","minimum":1,"description":"1 or more. How long to wait for the extension.","uniqueKey":"steps.items.[INDEX].oneOf.10.waitSeconds.oneOf.1","typeLabel":"null"}],"uniqueKey":"steps.items.[INDEX].oneOf.10.waitSeconds","typeLabel":"integer | null"},"soundName":{"oneOf":[{"type":"string","readOnly":true,"description":"Only with `include=names`: the sound's name, or `null` when it no longer resolves. Read-only: it may be sent back and is ignored.","uniqueKey":"steps.items.[INDEX].oneOf.10.soundName.oneOf.0","typeLabel":"string"},{"type":"null","readOnly":true,"description":"Only with `include=names`: the sound's name, or `null` when it no longer resolves. Read-only: it may be sent back and is ignored.","uniqueKey":"steps.items.[INDEX].oneOf.10.soundName.oneOf.1","typeLabel":"null"}],"uniqueKey":"steps.items.[INDEX].oneOf.10.soundName","typeLabel":"string | null"}},"additionalProperties":false,"uniqueKey":"steps.items.[INDEX].oneOf.10","typeLabel":"Dial by extension · object"},{"type":"object","title":"IVR menu","description":"One step of a call flow. `type` picks its fields. A step that branches, or that ends the call, is the last in its array. A branch is an array of steps with the same rules.","required":["type","soundId","waitSeconds"],"properties":{"type":{"type":"string","enum":["ivrMenu"],"isRequired":true,"uniqueKey":"steps.items.[INDEX].oneOf.11.type","typeLabel":"enum\u003cstring>"},"soundId":{"oneOf":[{"type":"string","pattern":"^[1-9][0-9]*$","description":"Required. The menu prompt. On a read it is `null` when what it pointed at no longer exists, and `problems` has `DANGLING_REFERENCE`.","example":"79","isRequired":true,"uniqueKey":"steps.items.[INDEX].oneOf.11.soundId.oneOf.0","typeLabel":"string"},{"type":"null","pattern":"^[1-9][0-9]*$","description":"Required. The menu prompt. On a read it is `null` when what it pointed at no longer exists, and `problems` has `DANGLING_REFERENCE`.","example":"79","isRequired":true,"uniqueKey":"steps.items.[INDEX].oneOf.11.soundId.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"steps.items.[INDEX].oneOf.11.soundId","typeLabel":"string | null"},"waitSeconds":{"oneOf":[{"type":"integer","minimum":1,"description":"Required, 1 or more. A read shows `null` when the stored step has none; a save needs a value.","isRequired":true,"uniqueKey":"steps.items.[INDEX].oneOf.11.waitSeconds.oneOf.0","typeLabel":"integer"},{"type":"null","minimum":1,"description":"Required, 1 or more. A read shows `null` when the stored step has none; a save needs a value.","isRequired":true,"uniqueKey":"steps.items.[INDEX].oneOf.11.waitSeconds.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"steps.items.[INDEX].oneOf.11.waitSeconds","typeLabel":"integer | null"},"id":{"type":"string","pattern":"^[1-9][0-9]*$","description":"The stored step id. Send it to keep and update this step; omit it for a new step. It must be a step of this number's flow.","example":"5001","uniqueKey":"steps.items.[INDEX].oneOf.11.id","typeLabel":"string"},"ref":{"type":"string","pattern":"^[a-z][a-z0-9_-]{0,39}$","description":"New steps only, optional. Your label for this step, so that other steps of the same document can point at it. Unique in the document. Echoed in the response to the save, not stored.","example":"ask-order","uniqueKey":"steps.items.[INDEX].oneOf.11.ref","typeLabel":"string"},"name":{"oneOf":[{"type":"string","maxLength":100,"description":"Optional label shown in the Dashboard designer, up to 100 characters.","uniqueKey":"steps.items.[INDEX].oneOf.11.name.oneOf.0","typeLabel":"string"},{"type":"null","maxLength":100,"description":"Optional label shown in the Dashboard designer, up to 100 characters.","uniqueKey":"steps.items.[INDEX].oneOf.11.name.oneOf.1","typeLabel":"null"}],"uniqueKey":"steps.items.[INDEX].oneOf.11.name","typeLabel":"string | null"},"options":{"type":"object","description":"One entry per key: each key matches `^[0-9*#]$` (`0` to `9`, `*` or `#`), and each value is the non-empty steps that run when the caller presses it. A menu needs at least one option, or a non-empty `noInput`.","additionalProperties":{"type":"array","minItems":1,"items":{"$circularRef":"855dd704-1e29-4d7c-a188-217e7e2b4a07"},"uniqueKey":"steps.items.[INDEX].oneOf.11.options.additionalProperties","typeLabel":"array"},"uniqueKey":"steps.items.[INDEX].oneOf.11.options","typeLabel":"object"},"noInput":{"type":"array","items":{"$circularRef":"855dd704-1e29-4d7c-a188-217e7e2b4a07"},"description":"Optional. Runs when the caller presses nothing or a key with no option.","uniqueKey":"steps.items.[INDEX].oneOf.11.noInput","typeLabel":"array"},"soundName":{"oneOf":[{"type":"string","readOnly":true,"description":"Only with `include=names`: the sound's name, or `null` when it no longer resolves. Read-only: it may be sent back and is ignored.","uniqueKey":"steps.items.[INDEX].oneOf.11.soundName.oneOf.0","typeLabel":"string"},{"type":"null","readOnly":true,"description":"Only with `include=names`: the sound's name, or `null` when it no longer resolves. Read-only: it may be sent back and is ignored.","uniqueKey":"steps.items.[INDEX].oneOf.11.soundName.oneOf.1","typeLabel":"null"}],"uniqueKey":"steps.items.[INDEX].oneOf.11.soundName","typeLabel":"string | null"}},"additionalProperties":false,"uniqueKey":"steps.items.[INDEX].oneOf.11","typeLabel":"IVR menu · object"},{"type":"object","title":"Day/time splitter","description":"One step of a call flow. `type` picks its fields. A step that branches, or that ends the call, is the last in its array. A branch is an array of steps with the same rules.","required":["type","branches"],"properties":{"type":{"type":"string","enum":["dayTimeSplitter"],"isRequired":true,"uniqueKey":"steps.items.[INDEX].oneOf.12.type","typeLabel":"enum\u003cstring>"},"branches":{"type":"array","maxItems":50,"items":{"type":"object","additionalProperties":false,"required":["days","holidays","from","to","steps"],"description":"One branch of a Day/Time Splitter.","properties":{"days":{"type":"array","uniqueItems":true,"items":{"type":"string","enum":["monday","tuesday","wednesday","thursday","friday","saturday","sunday"],"uniqueKey":"steps.items.[INDEX].oneOf.12.branches.items.[INDEX].days.items.[INDEX]","typeLabel":"enum\u003cstring>"},"description":"Required. The weekdays the branch matches, each once. May be empty: with `holidays: true` the branch matches only on public holidays; with `holidays: false` it never matches, and the save and validate warn `UNREACHABLE_BRANCH`.","isRequired":true,"uniqueKey":"steps.items.[INDEX].oneOf.12.branches.items.[INDEX].days","typeLabel":"enum\u003cstring>[]"},"holidays":{"type":"boolean","description":"Required. `true` makes the branch match on public holidays of the number's country (see [List public holidays](/api-reference/business-hours/list-public-holidays)).","isRequired":true,"uniqueKey":"steps.items.[INDEX].oneOf.12.branches.items.[INDEX].holidays","typeLabel":"boolean"},"from":{"oneOf":[{"type":"string","pattern":"^([01][0-9]|2[0-3]):[0-5][0-9]$","description":"Required. Start time, `HH:mm`, in the account time zone. A read shows `null` when the stored step has none; a save needs a value.","example":"08:00","isRequired":true,"uniqueKey":"steps.items.[INDEX].oneOf.12.branches.items.[INDEX].from.oneOf.0","typeLabel":"string"},{"type":"null","pattern":"^([01][0-9]|2[0-3]):[0-5][0-9]$","description":"Required. Start time, `HH:mm`, in the account time zone. A read shows `null` when the stored step has none; a save needs a value.","example":"08:00","isRequired":true,"uniqueKey":"steps.items.[INDEX].oneOf.12.branches.items.[INDEX].from.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"steps.items.[INDEX].oneOf.12.branches.items.[INDEX].from","typeLabel":"string | null"},"to":{"oneOf":[{"type":"string","pattern":"^([01][0-9]|2[0-3]):[0-5][0-9]$","description":"Required. End time, `HH:mm`, inclusive. A read shows `null` when the stored step has none; a save needs a value.","example":"17:00","isRequired":true,"uniqueKey":"steps.items.[INDEX].oneOf.12.branches.items.[INDEX].to.oneOf.0","typeLabel":"string"},{"type":"null","pattern":"^([01][0-9]|2[0-3]):[0-5][0-9]$","description":"Required. End time, `HH:mm`, inclusive. A read shows `null` when the stored step has none; a save needs a value.","example":"17:00","isRequired":true,"uniqueKey":"steps.items.[INDEX].oneOf.12.branches.items.[INDEX].to.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"steps.items.[INDEX].oneOf.12.branches.items.[INDEX].to","typeLabel":"string | null"},"steps":{"type":"array","items":{"$circularRef":"855dd704-1e29-4d7c-a188-217e7e2b4a07"},"description":"Non-empty. Runs when the branch matches.","minItems":1,"isRequired":true,"uniqueKey":"steps.items.[INDEX].oneOf.12.branches.items.[INDEX].steps","typeLabel":"array"}},"uniqueKey":"steps.items.[INDEX].oneOf.12.branches.items.[INDEX]","typeLabel":"object"},"description":"Up to 50 branches. May be empty, as the designer saves it: then `otherwise` runs, and with no `otherwise` either the save and validate warn `NO_FALLBACK`.","isRequired":true,"uniqueKey":"steps.items.[INDEX].oneOf.12.branches","typeLabel":"object[]"},"id":{"type":"string","pattern":"^[1-9][0-9]*$","description":"The stored step id. Send it to keep and update this step; omit it for a new step. It must be a step of this number's flow.","example":"5001","uniqueKey":"steps.items.[INDEX].oneOf.12.id","typeLabel":"string"},"ref":{"type":"string","pattern":"^[a-z][a-z0-9_-]{0,39}$","description":"New steps only, optional. Your label for this step, so that other steps of the same document can point at it. Unique in the document. Echoed in the response to the save, not stored.","example":"ask-order","uniqueKey":"steps.items.[INDEX].oneOf.12.ref","typeLabel":"string"},"name":{"oneOf":[{"type":"string","maxLength":100,"description":"Optional label shown in the Dashboard designer, up to 100 characters.","uniqueKey":"steps.items.[INDEX].oneOf.12.name.oneOf.0","typeLabel":"string"},{"type":"null","maxLength":100,"description":"Optional label shown in the Dashboard designer, up to 100 characters.","uniqueKey":"steps.items.[INDEX].oneOf.12.name.oneOf.1","typeLabel":"null"}],"uniqueKey":"steps.items.[INDEX].oneOf.12.name","typeLabel":"string | null"},"otherwise":{"type":"array","items":{"$circularRef":"855dd704-1e29-4d7c-a188-217e7e2b4a07"},"description":"Optional. Runs when no branch matches.","uniqueKey":"steps.items.[INDEX].oneOf.12.otherwise","typeLabel":"array"}},"additionalProperties":false,"uniqueKey":"steps.items.[INDEX].oneOf.12","typeLabel":"Day/time splitter · object"},{"type":"object","title":"Jump to","description":"One step of a call flow. `type` picks its fields. A step that branches, or that ends the call, is the last in its array. A branch is an array of steps with the same rules.","required":["type","target"],"properties":{"type":{"type":"string","enum":["jumpTo"],"isRequired":true,"uniqueKey":"steps.items.[INDEX].oneOf.13.type","typeLabel":"enum\u003cstring>"},"target":{"oneOf":[{"type":"string","pattern":"^(?:[1-9][0-9]*|[a-z][a-z0-9_-]{0,39})$","description":"A step of this flow (its id or `ref`), or the id of a step in another number's flow of your account. Not another Jump to (`422 CALL_FLOWS.JUMP_TO_JUMP`). On a read it is `null` when the step it pointed at no longer exists, and `problems` has `DANGLING_REFERENCE`.","example":"5003","isRequired":true,"uniqueKey":"steps.items.[INDEX].oneOf.13.target.oneOf.0","typeLabel":"string"},{"type":"null","pattern":"^(?:[1-9][0-9]*|[a-z][a-z0-9_-]{0,39})$","description":"A step of this flow (its id or `ref`), or the id of a step in another number's flow of your account. Not another Jump to (`422 CALL_FLOWS.JUMP_TO_JUMP`). On a read it is `null` when the step it pointed at no longer exists, and `problems` has `DANGLING_REFERENCE`.","example":"5003","isRequired":true,"uniqueKey":"steps.items.[INDEX].oneOf.13.target.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"steps.items.[INDEX].oneOf.13.target","typeLabel":"string | null"},"id":{"type":"string","pattern":"^[1-9][0-9]*$","description":"The stored step id. Send it to keep and update this step; omit it for a new step. It must be a step of this number's flow.","example":"5001","uniqueKey":"steps.items.[INDEX].oneOf.13.id","typeLabel":"string"},"ref":{"type":"string","pattern":"^[a-z][a-z0-9_-]{0,39}$","description":"New steps only, optional. Your label for this step, so that other steps of the same document can point at it. Unique in the document. Echoed in the response to the save, not stored.","example":"ask-order","uniqueKey":"steps.items.[INDEX].oneOf.13.ref","typeLabel":"string"},"name":{"oneOf":[{"type":"string","maxLength":100,"description":"Optional label shown in the Dashboard designer, up to 100 characters.","uniqueKey":"steps.items.[INDEX].oneOf.13.name.oneOf.0","typeLabel":"string"},{"type":"null","maxLength":100,"description":"Optional label shown in the Dashboard designer, up to 100 characters.","uniqueKey":"steps.items.[INDEX].oneOf.13.name.oneOf.1","typeLabel":"null"}],"uniqueKey":"steps.items.[INDEX].oneOf.13.name","typeLabel":"string | null"},"targetNumberId":{"oneOf":[{"type":"string","readOnly":true,"description":"The number that owns `target`, or `null` when `target` is. Read-only: it may be sent back and is ignored.","example":"600","uniqueKey":"steps.items.[INDEX].oneOf.13.targetNumberId.oneOf.0","typeLabel":"string"},{"type":"null","readOnly":true,"description":"The number that owns `target`, or `null` when `target` is. Read-only: it may be sent back and is ignored.","example":"600","uniqueKey":"steps.items.[INDEX].oneOf.13.targetNumberId.oneOf.1","typeLabel":"null"}],"uniqueKey":"steps.items.[INDEX].oneOf.13.targetNumberId","typeLabel":"string | null"}},"additionalProperties":false,"uniqueKey":"steps.items.[INDEX].oneOf.13","typeLabel":"Jump to · object"},{"type":"object","title":"Condition splitter","description":"One step of a call flow. `type` picks its fields. A step that branches, or that ends the call, is the last in its array. A branch is an array of steps with the same rules.","required":["type","branches"],"properties":{"type":{"type":"string","enum":["conditionSplitter"],"isRequired":true,"uniqueKey":"steps.items.[INDEX].oneOf.14.type","typeLabel":"enum\u003cstring>"},"branches":{"type":"array","minItems":1,"maxItems":50,"items":{"type":"object","additionalProperties":false,"required":["conditions","steps"],"description":"One branch of a Condition Splitter.","properties":{"conditions":{"type":"array","minItems":1,"maxItems":50,"items":{"type":"object","additionalProperties":false,"required":["field","operator"],"description":"One condition. All conditions of a branch must hold.\n\nFields: `call.externalNumber` and `call.internalNumber` (string); `call.waitingTime` (integer, seconds); `contact.name`, `contact.title`, `contact.company`, `contact.industry`, `contact.address`, `contact.city`, `contact.zip`, `contact.state` and `contact.type` (string); `contact.tags` (contact tag ids, as the Contacts API returns them); `contact.customFields.\u003cfieldId>` (string, a contact field id from [List contact fields](/api-reference/contacts/list-contact-fields)); `httpResponse.\u003cstep>.\u003cpath>` (a value of the response of an earlier `httpRequest` step); and `voiceAgent.\u003cstep>.\u003cproperty>` (the result of an earlier `voiceAgent` step). `\u003cstep>` is a step id or `ref`.\n\nStrings take `equals`, `notEquals`, `startsWith`, `endsWith`, `contains`, `isEmpty` and `isSet`. Integers take `equals`, `notEquals`, `lessThan`, `greaterThan`, `lessThanOrEqual`, `greaterThanOrEqual`, `isEmpty` and `isSet`. `contact.tags` takes only `contains`.","properties":{"field":{"type":"string","example":"call.waitingTime","description":"One of the fields above: `call.externalNumber`, `call.internalNumber`, `call.waitingTime`, `contact.\u003cname>`, `contact.tags`, `contact.customFields.\u003cfieldId>`, `httpResponse.\u003cstep>.\u003cpath>` or `voiceAgent.\u003cstep>.\u003cproperty>`. Anything else is `422 VALIDATION.INVALID_FIELD` on a save.","isRequired":true,"uniqueKey":"steps.items.[INDEX].oneOf.14.branches.items.[INDEX].conditions.items.[INDEX].field","typeLabel":"string"},"operator":{"type":"string","enum":["equals","notEquals","lessThan","greaterThan","lessThanOrEqual","greaterThanOrEqual","startsWith","endsWith","contains","isEmpty","isSet"],"isRequired":true,"uniqueKey":"steps.items.[INDEX].oneOf.14.branches.items.[INDEX].conditions.items.[INDEX].operator","typeLabel":"enum\u003cstring>"},"value":{"oneOf":[{"type":"string","title":"Text","description":"The value to compare with: a string; an integer for `call.waitingTime`; an array of contact tag ids for `contact.tags`. Required for every operator but `isEmpty` and `isSet`, which take no `value`. A read shows `null` for a stored condition without a value.","uniqueKey":"steps.items.[INDEX].oneOf.14.branches.items.[INDEX].conditions.items.[INDEX].value.oneOf.0","typeLabel":"string"},{"type":"integer","title":"Number","description":"The value to compare with: a string; an integer for `call.waitingTime`; an array of contact tag ids for `contact.tags`. Required for every operator but `isEmpty` and `isSet`, which take no `value`. A read shows `null` for a stored condition without a value.","uniqueKey":"steps.items.[INDEX].oneOf.14.branches.items.[INDEX].conditions.items.[INDEX].value.oneOf.1","typeLabel":"integer"},{"type":"array","items":{"type":"string","uniqueKey":"steps.items.[INDEX].oneOf.14.branches.items.[INDEX].conditions.items.[INDEX].value.oneOf.2.items.[INDEX]","typeLabel":"string"},"title":"Contact tag ids","description":"The value to compare with: a string; an integer for `call.waitingTime`; an array of contact tag ids for `contact.tags`. Required for every operator but `isEmpty` and `isSet`, which take no `value`. A read shows `null` for a stored condition without a value.","uniqueKey":"steps.items.[INDEX].oneOf.14.branches.items.[INDEX].conditions.items.[INDEX].value.oneOf.2","typeLabel":"string[]"},{"type":"object","title":"No value","description":"The value to compare with: a string; an integer for `call.waitingTime`; an array of contact tag ids for `contact.tags`. Required for every operator but `isEmpty` and `isSet`, which take no `value`. A read shows `null` for a stored condition without a value.","enum":[null],"uniqueKey":"steps.items.[INDEX].oneOf.14.branches.items.[INDEX].conditions.items.[INDEX].value.oneOf.3","typeLabel":"No value · object"},{"type":"null","title":"No value","description":"The value to compare with: a string; an integer for `call.waitingTime`; an array of contact tag ids for `contact.tags`. Required for every operator but `isEmpty` and `isSet`, which take no `value`. A read shows `null` for a stored condition without a value.","enum":[null],"uniqueKey":"steps.items.[INDEX].oneOf.14.branches.items.[INDEX].conditions.items.[INDEX].value.oneOf.4","typeLabel":"null"}],"uniqueKey":"steps.items.[INDEX].oneOf.14.branches.items.[INDEX].conditions.items.[INDEX].value","typeLabel":"string | integer | string[] | No value · object | null"}},"uniqueKey":"steps.items.[INDEX].oneOf.14.branches.items.[INDEX].conditions.items.[INDEX]","typeLabel":"object"},"description":"1 to 50 conditions, all of which must hold.","isRequired":true,"uniqueKey":"steps.items.[INDEX].oneOf.14.branches.items.[INDEX].conditions","typeLabel":"object[]"},"steps":{"type":"array","items":{"$circularRef":"855dd704-1e29-4d7c-a188-217e7e2b4a07"},"description":"Non-empty. Runs when every condition holds.","minItems":1,"isRequired":true,"uniqueKey":"steps.items.[INDEX].oneOf.14.branches.items.[INDEX].steps","typeLabel":"array"}},"uniqueKey":"steps.items.[INDEX].oneOf.14.branches.items.[INDEX]","typeLabel":"object"},"description":"1 to 50 branches.","isRequired":true,"uniqueKey":"steps.items.[INDEX].oneOf.14.branches","typeLabel":"object[]"},"id":{"type":"string","pattern":"^[1-9][0-9]*$","description":"The stored step id. Send it to keep and update this step; omit it for a new step. It must be a step of this number's flow.","example":"5001","uniqueKey":"steps.items.[INDEX].oneOf.14.id","typeLabel":"string"},"ref":{"type":"string","pattern":"^[a-z][a-z0-9_-]{0,39}$","description":"New steps only, optional. Your label for this step, so that other steps of the same document can point at it. Unique in the document. Echoed in the response to the save, not stored.","example":"ask-order","uniqueKey":"steps.items.[INDEX].oneOf.14.ref","typeLabel":"string"},"name":{"oneOf":[{"type":"string","maxLength":100,"description":"Optional label shown in the Dashboard designer, up to 100 characters.","uniqueKey":"steps.items.[INDEX].oneOf.14.name.oneOf.0","typeLabel":"string"},{"type":"null","maxLength":100,"description":"Optional label shown in the Dashboard designer, up to 100 characters.","uniqueKey":"steps.items.[INDEX].oneOf.14.name.oneOf.1","typeLabel":"null"}],"uniqueKey":"steps.items.[INDEX].oneOf.14.name","typeLabel":"string | null"},"otherwise":{"type":"array","items":{"$circularRef":"855dd704-1e29-4d7c-a188-217e7e2b4a07"},"description":"Optional. Runs when no branch matches.","uniqueKey":"steps.items.[INDEX].oneOf.14.otherwise","typeLabel":"array"}},"additionalProperties":false,"uniqueKey":"steps.items.[INDEX].oneOf.14","typeLabel":"Condition splitter · object"},{"type":"object","title":"HTTP request","description":"One step of a call flow. `type` picks its fields. A step that branches, or that ends the call, is the last in its array. A branch is an array of steps with the same rules.","required":["type","method","url","parseResponse","keepResponseAfterCall"],"properties":{"type":{"type":"string","enum":["httpRequest"],"isRequired":true,"uniqueKey":"steps.items.[INDEX].oneOf.15.type","typeLabel":"enum\u003cstring>"},"method":{"oneOf":[{"type":"string","enum":["GET","POST","PUT","PATCH","DELETE",null],"description":"Required. The HTTP method. A read shows `null` when the stored step has none; a save needs a value.","isRequired":true,"uniqueKey":"steps.items.[INDEX].oneOf.15.method.oneOf.0","typeLabel":"enum\u003cstring>"},{"type":"null","enum":["GET","POST","PUT","PATCH","DELETE",null],"description":"Required. The HTTP method. A read shows `null` when the stored step has none; a save needs a value.","isRequired":true,"uniqueKey":"steps.items.[INDEX].oneOf.15.method.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"steps.items.[INDEX].oneOf.15.method","typeLabel":"enum\u003cstring> | null"},"url":{"oneOf":[{"type":"string","minLength":1,"maxLength":2048,"description":"Required, up to 2,048 characters. May hold template variables such as `{{call.external_number}}`. A read shows `null` when the stored step has none; a save needs a value.","example":"https://erp.example.com/orders/lookup","isRequired":true,"uniqueKey":"steps.items.[INDEX].oneOf.15.url.oneOf.0","typeLabel":"string"},{"type":"null","minLength":1,"maxLength":2048,"description":"Required, up to 2,048 characters. May hold template variables such as `{{call.external_number}}`. A read shows `null` when the stored step has none; a save needs a value.","example":"https://erp.example.com/orders/lookup","isRequired":true,"uniqueKey":"steps.items.[INDEX].oneOf.15.url.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"steps.items.[INDEX].oneOf.15.url","typeLabel":"string | null"},"parseResponse":{"type":"boolean","description":"Required. Makes the response readable by later conditions (`httpResponse.\u003cstep>.\u003cpath>`).","isRequired":true,"uniqueKey":"steps.items.[INDEX].oneOf.15.parseResponse","typeLabel":"boolean"},"keepResponseAfterCall":{"type":"boolean","description":"Required. Keeps the response after the call.","isRequired":true,"uniqueKey":"steps.items.[INDEX].oneOf.15.keepResponseAfterCall","typeLabel":"boolean"},"id":{"type":"string","pattern":"^[1-9][0-9]*$","description":"The stored step id. Send it to keep and update this step; omit it for a new step. It must be a step of this number's flow.","example":"5001","uniqueKey":"steps.items.[INDEX].oneOf.15.id","typeLabel":"string"},"ref":{"type":"string","pattern":"^[a-z][a-z0-9_-]{0,39}$","description":"New steps only, optional. Your label for this step, so that other steps of the same document can point at it. Unique in the document. Echoed in the response to the save, not stored.","example":"ask-order","uniqueKey":"steps.items.[INDEX].oneOf.15.ref","typeLabel":"string"},"name":{"oneOf":[{"type":"string","maxLength":100,"description":"Optional label shown in the Dashboard designer, up to 100 characters.","uniqueKey":"steps.items.[INDEX].oneOf.15.name.oneOf.0","typeLabel":"string"},{"type":"null","maxLength":100,"description":"Optional label shown in the Dashboard designer, up to 100 characters.","uniqueKey":"steps.items.[INDEX].oneOf.15.name.oneOf.1","typeLabel":"null"}],"uniqueKey":"steps.items.[INDEX].oneOf.15.name","typeLabel":"string | null"},"headers":{"type":"array","maxItems":50,"items":{"type":"object","additionalProperties":false,"required":["name"],"description":"One request header. Put credentials here, not in `url` or `body`: only header values are hidden.","properties":{"name":{"type":"string","minLength":1,"maxLength":256,"description":"Up to 256 characters.","example":"Authorization","isRequired":true,"uniqueKey":"steps.items.[INDEX].oneOf.15.headers.items.[INDEX].name","typeLabel":"string"},"value":{"oneOf":[{"type":"string","maxLength":8192,"description":"Up to 8,192 characters. Write-only: the value is never returned, and a read gives `null` with `valueSet: true`. Leave it out to keep the stored value. A new header needs a value, else `422 CALL_FLOWS.HEADER_VALUE_REQUIRED`.","uniqueKey":"steps.items.[INDEX].oneOf.15.headers.items.[INDEX].value.oneOf.0","typeLabel":"string"},{"type":"null","maxLength":8192,"description":"Up to 8,192 characters. Write-only: the value is never returned, and a read gives `null` with `valueSet: true`. Leave it out to keep the stored value. A new header needs a value, else `422 CALL_FLOWS.HEADER_VALUE_REQUIRED`.","uniqueKey":"steps.items.[INDEX].oneOf.15.headers.items.[INDEX].value.oneOf.1","typeLabel":"null"}],"uniqueKey":"steps.items.[INDEX].oneOf.15.headers.items.[INDEX].value","typeLabel":"string | null"},"valueSet":{"type":"boolean","readOnly":true,"description":"On a read, `true` when a value is stored. Read-only: it may be sent back and is ignored.","uniqueKey":"steps.items.[INDEX].oneOf.15.headers.items.[INDEX].valueSet","typeLabel":"boolean"}},"uniqueKey":"steps.items.[INDEX].oneOf.15.headers.items.[INDEX]","typeLabel":"object"},"description":"Up to 50 headers.","uniqueKey":"steps.items.[INDEX].oneOf.15.headers","typeLabel":"object[]"},"body":{"type":"array","maxItems":50,"items":{"type":"object","additionalProperties":false,"required":["key","value"],"properties":{"key":{"type":"string","minLength":1,"maxLength":255,"description":"Up to 255 characters.","isRequired":true,"uniqueKey":"steps.items.[INDEX].oneOf.15.body.items.[INDEX].key","typeLabel":"string"},"value":{"oneOf":[{"type":"string","minLength":1,"maxLength":8192,"description":"A non-empty string, up to 8,192 characters. It may hold template variables, such as `{{input[ask-order]}}`. A read shows `null` when the stored step has none; a save needs a value.","isRequired":true,"uniqueKey":"steps.items.[INDEX].oneOf.15.body.items.[INDEX].value.oneOf.0","typeLabel":"string"},{"type":"null","minLength":1,"maxLength":8192,"description":"A non-empty string, up to 8,192 characters. It may hold template variables, such as `{{input[ask-order]}}`. A read shows `null` when the stored step has none; a save needs a value.","isRequired":true,"uniqueKey":"steps.items.[INDEX].oneOf.15.body.items.[INDEX].value.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"steps.items.[INDEX].oneOf.15.body.items.[INDEX].value","typeLabel":"string | null"}},"uniqueKey":"steps.items.[INDEX].oneOf.15.body.items.[INDEX]","typeLabel":"object"},"description":"Up to 50 body fields.","uniqueKey":"steps.items.[INDEX].oneOf.15.body","typeLabel":"object[]"}},"additionalProperties":false,"uniqueKey":"steps.items.[INDEX].oneOf.15","typeLabel":"HTTP request · object"},{"type":"object","title":"Collect input","description":"One step of a call flow. `type` picks its fields. A step that branches, or that ends the call, is the last in its array. A branch is an array of steps with the same rules.","required":["type","soundId","waitSeconds","pattern"],"properties":{"type":{"type":"string","enum":["collectInput"],"isRequired":true,"uniqueKey":"steps.items.[INDEX].oneOf.16.type","typeLabel":"enum\u003cstring>"},"soundId":{"oneOf":[{"type":"string","pattern":"^[1-9][0-9]*$","description":"Required. The prompt. On a read it is `null` when what it pointed at no longer exists, and `problems` has `DANGLING_REFERENCE`.","example":"80","isRequired":true,"uniqueKey":"steps.items.[INDEX].oneOf.16.soundId.oneOf.0","typeLabel":"string"},{"type":"null","pattern":"^[1-9][0-9]*$","description":"Required. The prompt. On a read it is `null` when what it pointed at no longer exists, and `problems` has `DANGLING_REFERENCE`.","example":"80","isRequired":true,"uniqueKey":"steps.items.[INDEX].oneOf.16.soundId.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"steps.items.[INDEX].oneOf.16.soundId","typeLabel":"string | null"},"waitSeconds":{"oneOf":[{"type":"integer","minimum":1,"description":"Required, 1 or more. A read shows `null` when the stored step has none; a save needs a value.","isRequired":true,"uniqueKey":"steps.items.[INDEX].oneOf.16.waitSeconds.oneOf.0","typeLabel":"integer"},{"type":"null","minimum":1,"description":"Required, 1 or more. A read shows `null` when the stored step has none; a save needs a value.","isRequired":true,"uniqueKey":"steps.items.[INDEX].oneOf.16.waitSeconds.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"steps.items.[INDEX].oneOf.16.waitSeconds","typeLabel":"integer | null"},"pattern":{"oneOf":[{"type":"string","minLength":1,"maxLength":255,"description":"Required. A digit count or a regular expression, up to 255 characters. A read shows `null` when the stored step has none; a save needs a value.","example":"6","isRequired":true,"uniqueKey":"steps.items.[INDEX].oneOf.16.pattern.oneOf.0","typeLabel":"string"},{"type":"null","minLength":1,"maxLength":255,"description":"Required. A digit count or a regular expression, up to 255 characters. A read shows `null` when the stored step has none; a save needs a value.","example":"6","isRequired":true,"uniqueKey":"steps.items.[INDEX].oneOf.16.pattern.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"steps.items.[INDEX].oneOf.16.pattern","typeLabel":"string | null"},"id":{"type":"string","pattern":"^[1-9][0-9]*$","description":"The stored step id. Send it to keep and update this step; omit it for a new step. It must be a step of this number's flow.","example":"5001","uniqueKey":"steps.items.[INDEX].oneOf.16.id","typeLabel":"string"},"ref":{"type":"string","pattern":"^[a-z][a-z0-9_-]{0,39}$","description":"New steps only, optional. Your label for this step, so that other steps of the same document can point at it. Unique in the document. Echoed in the response to the save, not stored.","example":"ask-order","uniqueKey":"steps.items.[INDEX].oneOf.16.ref","typeLabel":"string"},"name":{"oneOf":[{"type":"string","maxLength":100,"description":"Optional label shown in the Dashboard designer, up to 100 characters.","uniqueKey":"steps.items.[INDEX].oneOf.16.name.oneOf.0","typeLabel":"string"},{"type":"null","maxLength":100,"description":"Optional label shown in the Dashboard designer, up to 100 characters.","uniqueKey":"steps.items.[INDEX].oneOf.16.name.oneOf.1","typeLabel":"null"}],"uniqueKey":"steps.items.[INDEX].oneOf.16.name","typeLabel":"string | null"},"retryOnInvalid":{"type":"boolean","description":"Ask again when the input does not match.","uniqueKey":"steps.items.[INDEX].oneOf.16.retryOnInvalid","typeLabel":"boolean"},"soundName":{"oneOf":[{"type":"string","readOnly":true,"description":"Only with `include=names`: the sound's name, or `null` when it no longer resolves. Read-only: it may be sent back and is ignored.","uniqueKey":"steps.items.[INDEX].oneOf.16.soundName.oneOf.0","typeLabel":"string"},{"type":"null","readOnly":true,"description":"Only with `include=names`: the sound's name, or `null` when it no longer resolves. Read-only: it may be sent back and is ignored.","uniqueKey":"steps.items.[INDEX].oneOf.16.soundName.oneOf.1","typeLabel":"null"}],"uniqueKey":"steps.items.[INDEX].oneOf.16.soundName","typeLabel":"string | null"}},"additionalProperties":false,"uniqueKey":"steps.items.[INDEX].oneOf.16","typeLabel":"Collect input · object"},{"type":"object","title":"Mark call as resolved","description":"One step of a call flow. `type` picks its fields. A step that branches, or that ends the call, is the last in its array. A branch is an array of steps with the same rules.","required":["type"],"properties":{"type":{"type":"string","enum":["markResolved"],"isRequired":true,"uniqueKey":"steps.items.[INDEX].oneOf.17.type","typeLabel":"enum\u003cstring>"},"id":{"type":"string","pattern":"^[1-9][0-9]*$","description":"The stored step id. Send it to keep and update this step; omit it for a new step. It must be a step of this number's flow.","example":"5001","uniqueKey":"steps.items.[INDEX].oneOf.17.id","typeLabel":"string"},"ref":{"type":"string","pattern":"^[a-z][a-z0-9_-]{0,39}$","description":"New steps only, optional. Your label for this step, so that other steps of the same document can point at it. Unique in the document. Echoed in the response to the save, not stored.","example":"ask-order","uniqueKey":"steps.items.[INDEX].oneOf.17.ref","typeLabel":"string"},"name":{"oneOf":[{"type":"string","maxLength":100,"description":"Optional label shown in the Dashboard designer, up to 100 characters.","uniqueKey":"steps.items.[INDEX].oneOf.17.name.oneOf.0","typeLabel":"string"},{"type":"null","maxLength":100,"description":"Optional label shown in the Dashboard designer, up to 100 characters.","uniqueKey":"steps.items.[INDEX].oneOf.17.name.oneOf.1","typeLabel":"null"}],"uniqueKey":"steps.items.[INDEX].oneOf.17.name","typeLabel":"string | null"}},"additionalProperties":false,"uniqueKey":"steps.items.[INDEX].oneOf.17","typeLabel":"Mark call as resolved · object"},{"type":"object","title":"Unsupported step","description":"One step of a call flow. `type` picks its fields. A step that branches, or that ends the call, is the last in its array. A branch is an array of steps with the same rules.","required":["id","type","storedType"],"properties":{"id":{"type":"string","example":"419","isRequired":true,"uniqueKey":"steps.items.[INDEX].oneOf.18.id","typeLabel":"string"},"type":{"type":"string","enum":["unsupported"],"isRequired":true,"uniqueKey":"steps.items.[INDEX].oneOf.18.type","typeLabel":"enum\u003cstring>"},"storedType":{"type":"string","readOnly":true,"description":"The stored type, such as `webhook`.","example":"webhook","isRequired":true,"uniqueKey":"steps.items.[INDEX].oneOf.18.storedType","typeLabel":"string"}},"additionalProperties":false,"uniqueKey":"steps.items.[INDEX].oneOf.18","typeLabel":"Unsupported step · object"}],"uniqueKey":"steps.items.[INDEX]","typeLabel":"Ring user · object | Ring favorite user · object | Ring group · object | Voice agent · object | Playback · object | Voicemail · object | Redirect · object | Call recording · object | Fax · object | Change of caller · object | Dial by extension · object | IVR menu · object | Day/time splitter · object | Jump to · object | Condition splitter · object | HTTP request · object | Collect input · object | Mark call as resolved · object | Unsupported step · object"},"description":"The main sequence, from \"Call comes in\". The first step runs first, then the next one in the array. A step that branches, or that ends the call, is the last in its array. 1 to 200 steps in the whole flow on a save; a number with no steps reads `[]`.","isRequired":true,"uniqueKey":"steps","typeLabel":"(Ring user · object | Ring favorite user · object | Ring group · object | Voice agent · object | Playback · object | Voicemail · object | Redirect · object | Call recording · object | Fax · object | Change of caller · object | Dial by extension · object | IVR menu · object | Day/time splitter · object | Jump to · object | Condition splitter · object | HTTP request · object | Collect input · object | Mark call as resolved · object | Unsupported step · object)[]"},"updatedAt":{"type":"string","format":"date-time","readOnly":true,"description":"Time of the latest saved version, or of the latest step change when no version exists. Read-only.","isRequired":true,"uniqueKey":"updatedAt","typeLabel":"string\u003cdate-time>"},"versionId":{"oneOf":[{"type":"string","readOnly":true,"description":"The latest version other than a draft, or `null` before the flow's first save. Read-only.","isRequired":true,"uniqueKey":"versionId.oneOf.0","typeLabel":"string"},{"type":"null","readOnly":true,"description":"The latest version other than a draft, or `null` before the flow's first save. Read-only.","isRequired":true,"uniqueKey":"versionId.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"versionId","typeLabel":"string | null"},"dashboardUrl":{"type":"string","readOnly":true,"description":"Opens this flow in the Dashboard designer, for an Admin. Read-only.","isRequired":true,"uniqueKey":"dashboardUrl","typeLabel":"string"},"warnings":{"type":"array","items":{"type":"object","additionalProperties":false,"required":["code","message","target"],"description":"Something worth a look that does not stop a save. Codes: `RING_TIME_BELOW_GROUP_MINIMUM` (`ringSeconds` is below the group's per-agent timeout plus 10 seconds), `REGION_MISMATCH` (the user or group is in another call routing region than the number), `BUSINESS_HOURS_APPLY` (business hours run before the flow; when closed, the closed action wins), `JUMP_TO_OTHER_NUMBER` (a Jump to enters another number's flow, and changes there can delete it), `JUMP_TARGETS_REMOVED` (Jump to steps in other numbers point at steps this change removes), `UNREACHABLE_BRANCH` (a Day/Time branch with no days and no holidays, or `from` after `to`), `NO_FALLBACK` (a Day/Time Splitter has no `otherwise`, so unmatched calls hang up), `OVERLAPPING_TIME_BRANCHES` (which of two overlapping branches wins is not guaranteed), `BRANCH_ORDER_IGNORED` (saved branches were reordered; the stored order does not change), `SOUND_PROCESSING` (a sound is still converting), `VOICE_AGENT_CHECK_SKIPPED` (the voice agents could not be looked up, so their ids were not checked) and, on a restore only, `JUMP_TO_NOT_RESTORED` (a Jump to step of another number that pointed at a step of the version was deleted with it, and does not come back).","properties":{"code":{"type":"string","example":"BUSINESS_HOURS_APPLY","isRequired":true,"uniqueKey":"warnings.items.[INDEX].code","typeLabel":"string"},"message":{"type":"string","isRequired":true,"uniqueKey":"warnings.items.[INDEX].message","typeLabel":"string"},"target":{"type":"string","description":"A JSON pointer into the document.","example":"/steps","isRequired":true,"uniqueKey":"warnings.items.[INDEX].target","typeLabel":"string"}},"uniqueKey":"warnings.items.[INDEX]","typeLabel":"object"},"description":"Warnings about the saved flow. They never stop a save.","isRequired":true,"uniqueKey":"warnings","typeLabel":"object[]"}},"uniqueKey":"","typeLabel":"object"},"example":{"numberId":"600","etag":"\"cf1-Qe81mZp04Kd2Yt\"","editable":true,"problems":[],"businessHours":{"active":true,"scope":"company"},"steps":[{"id":"7101","type":"playback","name":null,"soundId":"79"},{"id":"7102","ref":"ask-order","type":"collectInput","name":null,"soundId":"80","waitSeconds":8,"pattern":"6","retryOnInvalid":true},{"id":"7103","ref":"order-lookup","type":"httpRequest","name":null,"method":"POST","url":"https://erp.example.com/orders/lookup","headers":[{"name":"Authorization","value":null,"valueSet":true}],"body":[{"key":"order","value":"{{input[7102]}}"}],"parseResponse":true,"keepResponseAfterCall":false},{"id":"7104","type":"conditionSplitter","name":null,"branches":[{"conditions":[{"field":"httpResponse.7103.status","operator":"equals","value":"shipped"}],"steps":[{"id":"7105","type":"playback","name":null,"soundId":"81"},{"id":"7106","type":"markResolved","name":null}]}],"otherwise":[{"id":"7107","type":"ringGroup","name":null,"groupId":"611","ringSeconds":40,"onAnswered":[],"onNoAnswer":[]}]}],"warnings":[{"code":"BUSINESS_HOURS_APPLY","message":"Company business hours run before this flow. When closed, callers get the closed action instead.","target":"/steps"}],"updatedAt":"2026-11-06T10:02:17Z","versionId":"1835","dashboardUrl":"https://dashboard.cloudtalk.io/menu/numbers/edit/600/call-flow-design"},"examples":{"Example":{"title":"Example","value":{"numberId":"600","etag":"\"cf1-Qe81mZp04Kd2Yt\"","editable":true,"problems":[],"businessHours":{"active":true,"scope":"company"},"steps":[{"id":"7101","type":"playback","name":null,"soundId":"79"},{"id":"7102","ref":"ask-order","type":"collectInput","name":null,"soundId":"80","waitSeconds":8,"pattern":"6","retryOnInvalid":true},{"id":"7103","ref":"order-lookup","type":"httpRequest","name":null,"method":"POST","url":"https://erp.example.com/orders/lookup","headers":[{"name":"Authorization","value":null,"valueSet":true}],"body":[{"key":"order","value":"{{input[7102]}}"}],"parseResponse":true,"keepResponseAfterCall":false},{"id":"7104","type":"conditionSplitter","name":null,"branches":[{"conditions":[{"field":"httpResponse.7103.status","operator":"equals","value":"shipped"}],"steps":[{"id":"7105","type":"playback","name":null,"soundId":"81"},{"id":"7106","type":"markResolved","name":null}]}],"otherwise":[{"id":"7107","type":"ringGroup","name":null,"groupId":"611","ringSeconds":40,"onAnswered":[],"onNoAnswer":[]}]}],"warnings":[{"code":"BUSINESS_HOURS_APPLY","message":"Company business hours run before this flow. When closed, callers get the closed action instead.","target":"/steps"}],"updatedAt":"2026-11-06T10:02:17Z","versionId":"1835","dashboardUrl":"https://dashboard.cloudtalk.io/menu/numbers/edit/600/call-flow-design"}}},"exampleType":"examples"}},"headers":{"ETag":{"description":"The new `ETag` of the live flow. Send it as `If-Match` on your next write.","schema":{"type":"string","example":"\"cf1-Qe81mZp04Kd2Yt\""}}},"exampleType":"examples"},"b0f057cb-b871-4670-a911-69e47b082fc0":{"description":"With `draft=true`: the saved draft, with its `versionId` and `live: false`. The live flow and its `ETag` do not change, so the answer has no `ETag` header; `etag` is the live flow's when the draft was saved.","content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"required":["numberId","etag","editable","problems","businessHours","steps","updatedAt","versionId","dashboardUrl","warnings","live"],"description":"A draft saved with `draft=true`. New steps keep their `ref` and have no `id` until the draft is published.","properties":{"numberId":{"type":"string","readOnly":true,"description":"The number. Read-only.","example":"600","isRequired":true,"uniqueKey":"numberId","typeLabel":"string"},"etag":{"type":"string","readOnly":true,"description":"The live flow's `ETag` when the draft was saved, which a draft does not change. If the flow changed after your read, it is the `ETag` of that change, so publish with the `ETag` of your read instead: the publish is then refused with `412` while the live flow's steps differ from that read. The answer has no `ETag` header. Read-only.","example":"\"cf1-9fJ2kQx7Lr0aT3\"","isRequired":true,"uniqueKey":"etag","typeLabel":"string"},"editable":{"type":"boolean","readOnly":true,"description":"`false` when the stored flow cannot be sent back unchanged; `problems` says why. With only `DANGLING_REFERENCE` problems, correct those fields and the save takes the document. `true` is not a guarantee: a flow saved in the Dashboard over a size limit, or with a ring step that has no ring time, reads `editable: true`, but sending it back unchanged is refused with `422`, as the call flow document says. Read-only.","isRequired":true,"uniqueKey":"editable","typeLabel":"boolean"},"problems":{"type":"array","readOnly":true,"items":{"type":"object","additionalProperties":false,"required":["code","message","stepId"],"description":"Stored data the API cannot represent. `UNSUPPORTED_STEP_TYPE`, `MULTIPLE_FIRST_STEPS`, `ORPHAN_STEPS`, `MULTIPLE_NEXT_STEPS`, `DANGLING_REFERENCE`, `VOICE_AGENT_LOOKUP_FAILED` and `STEP_NOT_ALLOWED_HERE` make the flow `editable: false`. `STEP_NOT_ALLOWED_HERE`: the Dashboard saved this step where Replace a number's call flow refuses it with `422 CALL_FLOWS.STEP_NOT_ALLOWED_HERE`: under a Jump to or a Fax step, after a Voicemail step (only HTTP Request, Mark Call as Resolved, the splitters and Jump to may follow one), on the answered branch of a ring step (calls skip it there), or beside a Fax step. Move or remove it and send the corrected document. `DANGLING_REFERENCE`: a step points at something that no longer exists, such as a deleted group, and that field is `null`. A condition on a deleted contact field or a deleted contact tag is one too: the condition keeps its `field` and `value` as stored, and the problem names the Condition splitter step. The read cannot go back unchanged, but you can still send the corrected document: set each such field to an existing record, or remove the step, and send the document to Replace a number's call flow. `VOICE_AGENT_LOOKUP_FAILED`: the voice agents could not be looked up, so `voiceAgentId` is `null`.","properties":{"code":{"type":"string","example":"DANGLING_REFERENCE","isRequired":true,"uniqueKey":"problems.items.[INDEX].code","typeLabel":"string"},"message":{"type":"string","isRequired":true,"uniqueKey":"problems.items.[INDEX].message","typeLabel":"string"},"stepId":{"oneOf":[{"type":"string","description":"The step the problem is on.","isRequired":true,"uniqueKey":"problems.items.[INDEX].stepId.oneOf.0","typeLabel":"string"},{"type":"null","description":"The step the problem is on.","isRequired":true,"uniqueKey":"problems.items.[INDEX].stepId.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"problems.items.[INDEX].stepId","typeLabel":"string | null"}},"uniqueKey":"problems.items.[INDEX]","typeLabel":"object"},"description":"Stored data the API cannot represent. Read-only.","isRequired":true,"uniqueKey":"problems","typeLabel":"object[]"},"businessHours":{"type":"object","additionalProperties":false,"required":["active","scope"],"description":"Whether business hours run before this flow. When closed, they decide what the caller hears, instead of the flow. Read-only.","properties":{"active":{"type":"boolean","description":"`true` when business hours run before this flow.","isRequired":true,"uniqueKey":"businessHours.active","typeLabel":"boolean"},"scope":{"oneOf":[{"type":"string","enum":["number","company",null],"description":"`number` when the number's own hours apply, `company` when the company hours apply, `null` when none apply.","isRequired":true,"uniqueKey":"businessHours.scope.oneOf.0","typeLabel":"enum\u003cstring>"},{"type":"null","enum":["number","company",null],"description":"`number` when the number's own hours apply, `company` when the company hours apply, `null` when none apply.","isRequired":true,"uniqueKey":"businessHours.scope.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"businessHours.scope","typeLabel":"enum\u003cstring> | null"}},"isRequired":true,"uniqueKey":"businessHours","typeLabel":"object"},"steps":{"type":"array","items":{"oneOf":[{"type":"object","title":"Ring user","description":"One step of a call flow. `type` picks its fields. A step that branches, or that ends the call, is the last in its array. A branch is an array of steps with the same rules.","required":["type"],"properties":{"type":{"type":"string","enum":["ringUser"],"isRequired":true,"uniqueKey":"steps.items.[INDEX].oneOf.0.type","typeLabel":"enum\u003cstring>"},"id":{"type":"string","pattern":"^[1-9][0-9]*$","description":"The stored step id. Send it to keep and update this step; omit it for a new step. It must be a step of this number's flow.","example":"5001","uniqueKey":"steps.items.[INDEX].oneOf.0.id","typeLabel":"string"},"ref":{"type":"string","pattern":"^[a-z][a-z0-9_-]{0,39}$","description":"New steps only, optional. Your label for this step, so that other steps of the same document can point at it. Unique in the document. Echoed in the response to the save, not stored.","example":"ask-order","uniqueKey":"steps.items.[INDEX].oneOf.0.ref","typeLabel":"string"},"name":{"oneOf":[{"type":"string","maxLength":100,"description":"Optional label shown in the Dashboard designer, up to 100 characters.","uniqueKey":"steps.items.[INDEX].oneOf.0.name.oneOf.0","typeLabel":"string"},{"type":"null","maxLength":100,"description":"Optional label shown in the Dashboard designer, up to 100 characters.","uniqueKey":"steps.items.[INDEX].oneOf.0.name.oneOf.1","typeLabel":"null"}],"uniqueKey":"steps.items.[INDEX].oneOf.0.name","typeLabel":"string | null"},"userId":{"oneOf":[{"type":"string","pattern":"^[1-9][0-9]*$","description":"A user of your account. On a read it is `null` when what it pointed at no longer exists, and `problems` has `DANGLING_REFERENCE`.","example":"7","uniqueKey":"steps.items.[INDEX].oneOf.0.userId.oneOf.0","typeLabel":"string"},{"type":"null","pattern":"^[1-9][0-9]*$","description":"A user of your account. On a read it is `null` when what it pointed at no longer exists, and `problems` has `DANGLING_REFERENCE`.","example":"7","uniqueKey":"steps.items.[INDEX].oneOf.0.userId.oneOf.1","typeLabel":"null"}],"uniqueKey":"steps.items.[INDEX].oneOf.0.userId","typeLabel":"string | null"},"userIdVariable":{"type":"string","minLength":1,"maxLength":255,"description":"A template such as `{{input[ask-agent]}}` that resolves to a user id at call time.","uniqueKey":"steps.items.[INDEX].oneOf.0.userIdVariable","typeLabel":"string"},"ringSeconds":{"oneOf":[{"type":"integer","minimum":1,"description":"1 or more. Required when `onNoAnswer` has steps: without it the save is `422 CALL_FLOWS.RING_SECONDS_REQUIRED`, whose message suggests 30. Otherwise optional, with no default: left out, the phone rings until someone answers or the caller hangs up, as in a flow saved in the Dashboard.","uniqueKey":"steps.items.[INDEX].oneOf.0.ringSeconds.oneOf.0","typeLabel":"integer"},{"type":"null","minimum":1,"description":"1 or more. Required when `onNoAnswer` has steps: without it the save is `422 CALL_FLOWS.RING_SECONDS_REQUIRED`, whose message suggests 30. Otherwise optional, with no default: left out, the phone rings until someone answers or the caller hangs up, as in a flow saved in the Dashboard.","uniqueKey":"steps.items.[INDEX].oneOf.0.ringSeconds.oneOf.1","typeLabel":"null"}],"uniqueKey":"steps.items.[INDEX].oneOf.0.ringSeconds","typeLabel":"integer | null"},"onAnswered":{"type":"array","items":{"$circularRef":"855dd704-1e29-4d7c-a188-217e7e2b4a07"},"description":"Runs after the call was answered and ended. Ring, Voice Agent, Fax, Voicemail, Call recording, Redirect, Dial by Extension and Change of caller steps are not allowed here.","uniqueKey":"steps.items.[INDEX].oneOf.0.onAnswered","typeLabel":"array"},"onNoAnswer":{"type":"array","items":{"$circularRef":"855dd704-1e29-4d7c-a188-217e7e2b4a07"},"description":"Runs when nobody answered within `ringSeconds`.","uniqueKey":"steps.items.[INDEX].oneOf.0.onNoAnswer","typeLabel":"array"},"userName":{"oneOf":[{"type":"string","readOnly":true,"description":"Only with `include=names`: the user's name, or `null` when it no longer resolves. Read-only: it may be sent back and is ignored.","uniqueKey":"steps.items.[INDEX].oneOf.0.userName.oneOf.0","typeLabel":"string"},{"type":"null","readOnly":true,"description":"Only with `include=names`: the user's name, or `null` when it no longer resolves. Read-only: it may be sent back and is ignored.","uniqueKey":"steps.items.[INDEX].oneOf.0.userName.oneOf.1","typeLabel":"null"}],"uniqueKey":"steps.items.[INDEX].oneOf.0.userName","typeLabel":"string | null"}},"additionalProperties":false,"uniqueKey":"steps.items.[INDEX].oneOf.0","typeLabel":"Ring user · object"},{"type":"object","title":"Ring favorite user","description":"One step of a call flow. `type` picks its fields. A step that branches, or that ends the call, is the last in its array. A branch is an array of steps with the same rules.","required":["type"],"properties":{"type":{"type":"string","enum":["ringFavoriteUser"],"isRequired":true,"uniqueKey":"steps.items.[INDEX].oneOf.1.type","typeLabel":"enum\u003cstring>"},"id":{"type":"string","pattern":"^[1-9][0-9]*$","description":"The stored step id. Send it to keep and update this step; omit it for a new step. It must be a step of this number's flow.","example":"5001","uniqueKey":"steps.items.[INDEX].oneOf.1.id","typeLabel":"string"},"ref":{"type":"string","pattern":"^[a-z][a-z0-9_-]{0,39}$","description":"New steps only, optional. Your label for this step, so that other steps of the same document can point at it. Unique in the document. Echoed in the response to the save, not stored.","example":"ask-order","uniqueKey":"steps.items.[INDEX].oneOf.1.ref","typeLabel":"string"},"name":{"oneOf":[{"type":"string","maxLength":100,"description":"Optional label shown in the Dashboard designer, up to 100 characters.","uniqueKey":"steps.items.[INDEX].oneOf.1.name.oneOf.0","typeLabel":"string"},{"type":"null","maxLength":100,"description":"Optional label shown in the Dashboard designer, up to 100 characters.","uniqueKey":"steps.items.[INDEX].oneOf.1.name.oneOf.1","typeLabel":"null"}],"uniqueKey":"steps.items.[INDEX].oneOf.1.name","typeLabel":"string | null"},"ringSeconds":{"oneOf":[{"type":"integer","minimum":1,"description":"1 or more. Required when `onNoAnswer` has steps: without it the save is `422 CALL_FLOWS.RING_SECONDS_REQUIRED`, whose message suggests 30. Otherwise optional, with no default: left out, the phone rings until someone answers or the caller hangs up, as in a flow saved in the Dashboard.","uniqueKey":"steps.items.[INDEX].oneOf.1.ringSeconds.oneOf.0","typeLabel":"integer"},{"type":"null","minimum":1,"description":"1 or more. Required when `onNoAnswer` has steps: without it the save is `422 CALL_FLOWS.RING_SECONDS_REQUIRED`, whose message suggests 30. Otherwise optional, with no default: left out, the phone rings until someone answers or the caller hangs up, as in a flow saved in the Dashboard.","uniqueKey":"steps.items.[INDEX].oneOf.1.ringSeconds.oneOf.1","typeLabel":"null"}],"uniqueKey":"steps.items.[INDEX].oneOf.1.ringSeconds","typeLabel":"integer | null"},"onAnswered":{"type":"array","items":{"$circularRef":"855dd704-1e29-4d7c-a188-217e7e2b4a07"},"description":"Runs after the call was answered and ended. Ring, Voice Agent, Fax, Voicemail, Call recording, Redirect, Dial by Extension and Change of caller steps are not allowed here.","uniqueKey":"steps.items.[INDEX].oneOf.1.onAnswered","typeLabel":"array"},"onNoAnswer":{"type":"array","items":{"$circularRef":"855dd704-1e29-4d7c-a188-217e7e2b4a07"},"description":"Runs when nobody answered within `ringSeconds`.","uniqueKey":"steps.items.[INDEX].oneOf.1.onNoAnswer","typeLabel":"array"}},"additionalProperties":false,"uniqueKey":"steps.items.[INDEX].oneOf.1","typeLabel":"Ring favorite user · object"},{"type":"object","title":"Ring group","description":"One step of a call flow. `type` picks its fields. A step that branches, or that ends the call, is the last in its array. A branch is an array of steps with the same rules.","required":["type"],"properties":{"type":{"type":"string","enum":["ringGroup"],"isRequired":true,"uniqueKey":"steps.items.[INDEX].oneOf.2.type","typeLabel":"enum\u003cstring>"},"id":{"type":"string","pattern":"^[1-9][0-9]*$","description":"The stored step id. Send it to keep and update this step; omit it for a new step. It must be a step of this number's flow.","example":"5001","uniqueKey":"steps.items.[INDEX].oneOf.2.id","typeLabel":"string"},"ref":{"type":"string","pattern":"^[a-z][a-z0-9_-]{0,39}$","description":"New steps only, optional. Your label for this step, so that other steps of the same document can point at it. Unique in the document. Echoed in the response to the save, not stored.","example":"ask-order","uniqueKey":"steps.items.[INDEX].oneOf.2.ref","typeLabel":"string"},"name":{"oneOf":[{"type":"string","maxLength":100,"description":"Optional label shown in the Dashboard designer, up to 100 characters.","uniqueKey":"steps.items.[INDEX].oneOf.2.name.oneOf.0","typeLabel":"string"},{"type":"null","maxLength":100,"description":"Optional label shown in the Dashboard designer, up to 100 characters.","uniqueKey":"steps.items.[INDEX].oneOf.2.name.oneOf.1","typeLabel":"null"}],"uniqueKey":"steps.items.[INDEX].oneOf.2.name","typeLabel":"string | null"},"groupId":{"oneOf":[{"type":"string","pattern":"^[1-9][0-9]*$","description":"The group id, as the Groups API keys it (not the group's queue number). On a read it is `null` when what it pointed at no longer exists, and `problems` has `DANGLING_REFERENCE`.","example":"611","uniqueKey":"steps.items.[INDEX].oneOf.2.groupId.oneOf.0","typeLabel":"string"},{"type":"null","pattern":"^[1-9][0-9]*$","description":"The group id, as the Groups API keys it (not the group's queue number). On a read it is `null` when what it pointed at no longer exists, and `problems` has `DANGLING_REFERENCE`.","example":"611","uniqueKey":"steps.items.[INDEX].oneOf.2.groupId.oneOf.1","typeLabel":"null"}],"uniqueKey":"steps.items.[INDEX].oneOf.2.groupId","typeLabel":"string | null"},"groupVariable":{"type":"string","minLength":1,"maxLength":255,"description":"A template that resolves to the group's queue number at call time, not its id.","uniqueKey":"steps.items.[INDEX].oneOf.2.groupVariable","typeLabel":"string"},"ringSeconds":{"oneOf":[{"type":"integer","minimum":1,"description":"1 or more. Required when `onNoAnswer` has steps: without it the save is `422 CALL_FLOWS.RING_SECONDS_REQUIRED`, whose message names the minimum: the group's per-agent timeout plus 10 seconds, at least 20. Otherwise optional, with no default: left out, the caller waits in the group's queue until someone answers or hangs up, as in the Dashboard. A value below the minimum is a warning, `RING_TIME_BELOW_GROUP_MINIMUM`.","uniqueKey":"steps.items.[INDEX].oneOf.2.ringSeconds.oneOf.0","typeLabel":"integer"},{"type":"null","minimum":1,"description":"1 or more. Required when `onNoAnswer` has steps: without it the save is `422 CALL_FLOWS.RING_SECONDS_REQUIRED`, whose message names the minimum: the group's per-agent timeout plus 10 seconds, at least 20. Otherwise optional, with no default: left out, the caller waits in the group's queue until someone answers or hangs up, as in the Dashboard. A value below the minimum is a warning, `RING_TIME_BELOW_GROUP_MINIMUM`.","uniqueKey":"steps.items.[INDEX].oneOf.2.ringSeconds.oneOf.1","typeLabel":"null"}],"uniqueKey":"steps.items.[INDEX].oneOf.2.ringSeconds","typeLabel":"integer | null"},"onAnswered":{"type":"array","items":{"$circularRef":"855dd704-1e29-4d7c-a188-217e7e2b4a07"},"description":"Runs after the call was answered and ended. Ring, Voice Agent, Fax, Voicemail, Call recording, Redirect, Dial by Extension and Change of caller steps are not allowed here.","uniqueKey":"steps.items.[INDEX].oneOf.2.onAnswered","typeLabel":"array"},"onNoAnswer":{"type":"array","items":{"$circularRef":"855dd704-1e29-4d7c-a188-217e7e2b4a07"},"description":"Runs when nobody answered within `ringSeconds`.","uniqueKey":"steps.items.[INDEX].oneOf.2.onNoAnswer","typeLabel":"array"},"groupName":{"oneOf":[{"type":"string","readOnly":true,"description":"Only with `include=names`: the group's name, or `null` when it no longer resolves. Read-only: it may be sent back and is ignored.","uniqueKey":"steps.items.[INDEX].oneOf.2.groupName.oneOf.0","typeLabel":"string"},{"type":"null","readOnly":true,"description":"Only with `include=names`: the group's name, or `null` when it no longer resolves. Read-only: it may be sent back and is ignored.","uniqueKey":"steps.items.[INDEX].oneOf.2.groupName.oneOf.1","typeLabel":"null"}],"uniqueKey":"steps.items.[INDEX].oneOf.2.groupName","typeLabel":"string | null"}},"additionalProperties":false,"uniqueKey":"steps.items.[INDEX].oneOf.2","typeLabel":"Ring group · object"},{"type":"object","title":"Voice agent","description":"One step of a call flow. `type` picks its fields. A step that branches, or that ends the call, is the last in its array. A branch is an array of steps with the same rules.","required":["type","voiceAgentId"],"properties":{"type":{"type":"string","enum":["voiceAgent"],"isRequired":true,"uniqueKey":"steps.items.[INDEX].oneOf.3.type","typeLabel":"enum\u003cstring>"},"voiceAgentId":{"oneOf":[{"type":"string","pattern":"^[0-9a-f]{24}$","description":"Required. The `id` that [List voice agents](/api-reference/voiceagent/list-voice-agents) returns, a 24-character hex id. Must be an inbound voice agent of your account that can take calls, else `422 CALL_FLOWS.UNKNOWN_VOICE_AGENT`; checked when the step is new or changed. On a read it is `null` when the agent no longer exists (problem `DANGLING_REFERENCE`) or could not be looked up (problem `VOICE_AGENT_LOOKUP_FAILED`).","example":"674b87da2a8347e6682cca8d","isRequired":true,"uniqueKey":"steps.items.[INDEX].oneOf.3.voiceAgentId.oneOf.0","typeLabel":"string"},{"type":"null","pattern":"^[0-9a-f]{24}$","description":"Required. The `id` that [List voice agents](/api-reference/voiceagent/list-voice-agents) returns, a 24-character hex id. Must be an inbound voice agent of your account that can take calls, else `422 CALL_FLOWS.UNKNOWN_VOICE_AGENT`; checked when the step is new or changed. On a read it is `null` when the agent no longer exists (problem `DANGLING_REFERENCE`) or could not be looked up (problem `VOICE_AGENT_LOOKUP_FAILED`).","example":"674b87da2a8347e6682cca8d","isRequired":true,"uniqueKey":"steps.items.[INDEX].oneOf.3.voiceAgentId.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"steps.items.[INDEX].oneOf.3.voiceAgentId","typeLabel":"string | null"},"id":{"type":"string","pattern":"^[1-9][0-9]*$","description":"The stored step id. Send it to keep and update this step; omit it for a new step. It must be a step of this number's flow.","example":"5001","uniqueKey":"steps.items.[INDEX].oneOf.3.id","typeLabel":"string"},"ref":{"type":"string","pattern":"^[a-z][a-z0-9_-]{0,39}$","description":"New steps only, optional. Your label for this step, so that other steps of the same document can point at it. Unique in the document. Echoed in the response to the save, not stored.","example":"ask-order","uniqueKey":"steps.items.[INDEX].oneOf.3.ref","typeLabel":"string"},"name":{"oneOf":[{"type":"string","maxLength":100,"description":"Optional label shown in the Dashboard designer, up to 100 characters.","uniqueKey":"steps.items.[INDEX].oneOf.3.name.oneOf.0","typeLabel":"string"},{"type":"null","maxLength":100,"description":"Optional label shown in the Dashboard designer, up to 100 characters.","uniqueKey":"steps.items.[INDEX].oneOf.3.name.oneOf.1","typeLabel":"null"}],"uniqueKey":"steps.items.[INDEX].oneOf.3.name","typeLabel":"string | null"},"onAnswered":{"type":"array","items":{"$circularRef":"855dd704-1e29-4d7c-a188-217e7e2b4a07"},"description":"Runs after the voice agent handled the call. Any step may follow, ring steps included.","uniqueKey":"steps.items.[INDEX].oneOf.3.onAnswered","typeLabel":"array"},"onNoAnswer":{"type":"array","items":{"$circularRef":"855dd704-1e29-4d7c-a188-217e7e2b4a07"},"description":"Runs when the voice agent did not take the call.","uniqueKey":"steps.items.[INDEX].oneOf.3.onNoAnswer","typeLabel":"array"},"voiceAgentName":{"oneOf":[{"type":"string","readOnly":true,"description":"Only with `include=names`: the voice agent's name, or `null` when it no longer resolves. Read-only: it may be sent back and is ignored.","uniqueKey":"steps.items.[INDEX].oneOf.3.voiceAgentName.oneOf.0","typeLabel":"string"},{"type":"null","readOnly":true,"description":"Only with `include=names`: the voice agent's name, or `null` when it no longer resolves. Read-only: it may be sent back and is ignored.","uniqueKey":"steps.items.[INDEX].oneOf.3.voiceAgentName.oneOf.1","typeLabel":"null"}],"uniqueKey":"steps.items.[INDEX].oneOf.3.voiceAgentName","typeLabel":"string | null"}},"additionalProperties":false,"uniqueKey":"steps.items.[INDEX].oneOf.3","typeLabel":"Voice agent · object"},{"type":"object","title":"Playback","description":"One step of a call flow. `type` picks its fields. A step that branches, or that ends the call, is the last in its array. A branch is an array of steps with the same rules.","required":["type","soundId"],"properties":{"type":{"type":"string","enum":["playback"],"isRequired":true,"uniqueKey":"steps.items.[INDEX].oneOf.4.type","typeLabel":"enum\u003cstring>"},"soundId":{"oneOf":[{"type":"string","pattern":"^[1-9][0-9]*$","description":"Required. A sound of your account, or a CloudTalk default sound, from [List sounds](/api-reference/sounds/list-sounds). On a read it is `null` when what it pointed at no longer exists, and `problems` has `DANGLING_REFERENCE`.","example":"79","isRequired":true,"uniqueKey":"steps.items.[INDEX].oneOf.4.soundId.oneOf.0","typeLabel":"string"},{"type":"null","pattern":"^[1-9][0-9]*$","description":"Required. A sound of your account, or a CloudTalk default sound, from [List sounds](/api-reference/sounds/list-sounds). On a read it is `null` when what it pointed at no longer exists, and `problems` has `DANGLING_REFERENCE`.","example":"79","isRequired":true,"uniqueKey":"steps.items.[INDEX].oneOf.4.soundId.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"steps.items.[INDEX].oneOf.4.soundId","typeLabel":"string | null"},"id":{"type":"string","pattern":"^[1-9][0-9]*$","description":"The stored step id. Send it to keep and update this step; omit it for a new step. It must be a step of this number's flow.","example":"5001","uniqueKey":"steps.items.[INDEX].oneOf.4.id","typeLabel":"string"},"ref":{"type":"string","pattern":"^[a-z][a-z0-9_-]{0,39}$","description":"New steps only, optional. Your label for this step, so that other steps of the same document can point at it. Unique in the document. Echoed in the response to the save, not stored.","example":"ask-order","uniqueKey":"steps.items.[INDEX].oneOf.4.ref","typeLabel":"string"},"name":{"oneOf":[{"type":"string","maxLength":100,"description":"Optional label shown in the Dashboard designer, up to 100 characters.","uniqueKey":"steps.items.[INDEX].oneOf.4.name.oneOf.0","typeLabel":"string"},{"type":"null","maxLength":100,"description":"Optional label shown in the Dashboard designer, up to 100 characters.","uniqueKey":"steps.items.[INDEX].oneOf.4.name.oneOf.1","typeLabel":"null"}],"uniqueKey":"steps.items.[INDEX].oneOf.4.name","typeLabel":"string | null"},"soundName":{"oneOf":[{"type":"string","readOnly":true,"description":"Only with `include=names`: the sound's name, or `null` when it no longer resolves. Read-only: it may be sent back and is ignored.","uniqueKey":"steps.items.[INDEX].oneOf.4.soundName.oneOf.0","typeLabel":"string"},{"type":"null","readOnly":true,"description":"Only with `include=names`: the sound's name, or `null` when it no longer resolves. Read-only: it may be sent back and is ignored.","uniqueKey":"steps.items.[INDEX].oneOf.4.soundName.oneOf.1","typeLabel":"null"}],"uniqueKey":"steps.items.[INDEX].oneOf.4.soundName","typeLabel":"string | null"}},"additionalProperties":false,"uniqueKey":"steps.items.[INDEX].oneOf.4","typeLabel":"Playback · object"},{"type":"object","title":"Voicemail","description":"One step of a call flow. `type` picks its fields. A step that branches, or that ends the call, is the last in its array. A branch is an array of steps with the same rules.","required":["type","emailNotification","attachRecording"],"properties":{"type":{"type":"string","enum":["voicemail"],"isRequired":true,"uniqueKey":"steps.items.[INDEX].oneOf.5.type","typeLabel":"enum\u003cstring>"},"emailNotification":{"oneOf":[{"type":"string","enum":["on","off","accountDefault",null],"description":"Required. Whether the message is sent by email: `on`, `off`, or `accountDefault` to follow the account setting. A read shows `null` when the stored step has none; a save needs a value.","isRequired":true,"uniqueKey":"steps.items.[INDEX].oneOf.5.emailNotification.oneOf.0","typeLabel":"enum\u003cstring>"},{"type":"null","enum":["on","off","accountDefault",null],"description":"Required. Whether the message is sent by email: `on`, `off`, or `accountDefault` to follow the account setting. A read shows `null` when the stored step has none; a save needs a value.","isRequired":true,"uniqueKey":"steps.items.[INDEX].oneOf.5.emailNotification.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"steps.items.[INDEX].oneOf.5.emailNotification","typeLabel":"enum\u003cstring> | null"},"attachRecording":{"oneOf":[{"type":"string","enum":["on","off","accountDefault",null],"description":"Required. Whether the email carries the recording: `on`, `off` or `accountDefault`. A read shows `null` when the stored step has none; a save needs a value.","isRequired":true,"uniqueKey":"steps.items.[INDEX].oneOf.5.attachRecording.oneOf.0","typeLabel":"enum\u003cstring>"},{"type":"null","enum":["on","off","accountDefault",null],"description":"Required. Whether the email carries the recording: `on`, `off` or `accountDefault`. A read shows `null` when the stored step has none; a save needs a value.","isRequired":true,"uniqueKey":"steps.items.[INDEX].oneOf.5.attachRecording.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"steps.items.[INDEX].oneOf.5.attachRecording","typeLabel":"enum\u003cstring> | null"},"id":{"type":"string","pattern":"^[1-9][0-9]*$","description":"The stored step id. Send it to keep and update this step; omit it for a new step. It must be a step of this number's flow.","example":"5001","uniqueKey":"steps.items.[INDEX].oneOf.5.id","typeLabel":"string"},"ref":{"type":"string","pattern":"^[a-z][a-z0-9_-]{0,39}$","description":"New steps only, optional. Your label for this step, so that other steps of the same document can point at it. Unique in the document. Echoed in the response to the save, not stored.","example":"ask-order","uniqueKey":"steps.items.[INDEX].oneOf.5.ref","typeLabel":"string"},"name":{"oneOf":[{"type":"string","maxLength":100,"description":"Optional label shown in the Dashboard designer, up to 100 characters.","uniqueKey":"steps.items.[INDEX].oneOf.5.name.oneOf.0","typeLabel":"string"},{"type":"null","maxLength":100,"description":"Optional label shown in the Dashboard designer, up to 100 characters.","uniqueKey":"steps.items.[INDEX].oneOf.5.name.oneOf.1","typeLabel":"null"}],"uniqueKey":"steps.items.[INDEX].oneOf.5.name","typeLabel":"string | null"},"voicemailBoxId":{"oneOf":[{"type":"string","pattern":"^[1-9][0-9]*$","description":"A voicemail box from [List voicemail boxes](/api-reference/call-flows/list-voicemail-boxes). On a read it is `null` when what it pointed at no longer exists, and `problems` has `DANGLING_REFERENCE`.","example":"88","uniqueKey":"steps.items.[INDEX].oneOf.5.voicemailBoxId.oneOf.0","typeLabel":"string"},{"type":"null","pattern":"^[1-9][0-9]*$","description":"A voicemail box from [List voicemail boxes](/api-reference/call-flows/list-voicemail-boxes). On a read it is `null` when what it pointed at no longer exists, and `problems` has `DANGLING_REFERENCE`.","example":"88","uniqueKey":"steps.items.[INDEX].oneOf.5.voicemailBoxId.oneOf.1","typeLabel":"null"}],"uniqueKey":"steps.items.[INDEX].oneOf.5.voicemailBoxId","typeLabel":"string | null"},"voicemailBoxVariable":{"type":"string","minLength":1,"maxLength":255,"description":"A template that resolves to a mailbox number at call time.","uniqueKey":"steps.items.[INDEX].oneOf.5.voicemailBoxVariable","typeLabel":"string"},"voicemailBoxName":{"oneOf":[{"type":"string","readOnly":true,"description":"Only with `include=names`: the voicemail box's name, or `null` when it no longer resolves. Read-only: it may be sent back and is ignored.","uniqueKey":"steps.items.[INDEX].oneOf.5.voicemailBoxName.oneOf.0","typeLabel":"string"},{"type":"null","readOnly":true,"description":"Only with `include=names`: the voicemail box's name, or `null` when it no longer resolves. Read-only: it may be sent back and is ignored.","uniqueKey":"steps.items.[INDEX].oneOf.5.voicemailBoxName.oneOf.1","typeLabel":"null"}],"uniqueKey":"steps.items.[INDEX].oneOf.5.voicemailBoxName","typeLabel":"string | null"}},"additionalProperties":false,"uniqueKey":"steps.items.[INDEX].oneOf.5","typeLabel":"Voicemail · object"},{"type":"object","title":"Redirect","description":"One step of a call flow. `type` picks its fields. A step that branches, or that ends the call, is the last in its array. A branch is an array of steps with the same rules.","required":["type","phoneNumber"],"properties":{"type":{"type":"string","enum":["redirect"],"isRequired":true,"uniqueKey":"steps.items.[INDEX].oneOf.6.type","typeLabel":"enum\u003cstring>"},"phoneNumber":{"oneOf":[{"type":"string","pattern":"^[0-9+*#]+$","maxLength":255,"description":"Required. The number to forward to. Digits, `+`, `*` and `#` only, up to 255 characters. A read shows `null` when the stored step has none; a save needs a value.","example":"+12025550172","isRequired":true,"uniqueKey":"steps.items.[INDEX].oneOf.6.phoneNumber.oneOf.0","typeLabel":"string"},{"type":"null","pattern":"^[0-9+*#]+$","maxLength":255,"description":"Required. The number to forward to. Digits, `+`, `*` and `#` only, up to 255 characters. A read shows `null` when the stored step has none; a save needs a value.","example":"+12025550172","isRequired":true,"uniqueKey":"steps.items.[INDEX].oneOf.6.phoneNumber.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"steps.items.[INDEX].oneOf.6.phoneNumber","typeLabel":"string | null"},"id":{"type":"string","pattern":"^[1-9][0-9]*$","description":"The stored step id. Send it to keep and update this step; omit it for a new step. It must be a step of this number's flow.","example":"5001","uniqueKey":"steps.items.[INDEX].oneOf.6.id","typeLabel":"string"},"ref":{"type":"string","pattern":"^[a-z][a-z0-9_-]{0,39}$","description":"New steps only, optional. Your label for this step, so that other steps of the same document can point at it. Unique in the document. Echoed in the response to the save, not stored.","example":"ask-order","uniqueKey":"steps.items.[INDEX].oneOf.6.ref","typeLabel":"string"},"name":{"oneOf":[{"type":"string","maxLength":100,"description":"Optional label shown in the Dashboard designer, up to 100 characters.","uniqueKey":"steps.items.[INDEX].oneOf.6.name.oneOf.0","typeLabel":"string"},{"type":"null","maxLength":100,"description":"Optional label shown in the Dashboard designer, up to 100 characters.","uniqueKey":"steps.items.[INDEX].oneOf.6.name.oneOf.1","typeLabel":"null"}],"uniqueKey":"steps.items.[INDEX].oneOf.6.name","typeLabel":"string | null"},"ringSeconds":{"oneOf":[{"type":"integer","minimum":1,"description":"1 or more. Required when `onNoAnswer` has steps (`422 CALL_FLOWS.RING_SECONDS_REQUIRED`). Otherwise optional, with no default: left out, the forwarded call rings until answered or the caller hangs up, as in the Dashboard.","uniqueKey":"steps.items.[INDEX].oneOf.6.ringSeconds.oneOf.0","typeLabel":"integer"},{"type":"null","minimum":1,"description":"1 or more. Required when `onNoAnswer` has steps (`422 CALL_FLOWS.RING_SECONDS_REQUIRED`). Otherwise optional, with no default: left out, the forwarded call rings until answered or the caller hangs up, as in the Dashboard.","uniqueKey":"steps.items.[INDEX].oneOf.6.ringSeconds.oneOf.1","typeLabel":"null"}],"uniqueKey":"steps.items.[INDEX].oneOf.6.ringSeconds","typeLabel":"integer | null"},"onNoAnswer":{"type":"array","items":{"$circularRef":"855dd704-1e29-4d7c-a188-217e7e2b4a07"},"description":"Fallback when the forwarded call is not answered in time.","uniqueKey":"steps.items.[INDEX].oneOf.6.onNoAnswer","typeLabel":"array"}},"additionalProperties":false,"uniqueKey":"steps.items.[INDEX].oneOf.6","typeLabel":"Redirect · object"},{"type":"object","title":"Call recording","description":"One step of a call flow. `type` picks its fields. A step that branches, or that ends the call, is the last in its array. A branch is an array of steps with the same rules.","required":["type","enabled"],"properties":{"type":{"type":"string","enum":["recording"],"isRequired":true,"uniqueKey":"steps.items.[INDEX].oneOf.7.type","typeLabel":"enum\u003cstring>"},"enabled":{"type":"boolean","description":"Required. `true` records from here on, `false` stops recording.","isRequired":true,"uniqueKey":"steps.items.[INDEX].oneOf.7.enabled","typeLabel":"boolean"},"id":{"type":"string","pattern":"^[1-9][0-9]*$","description":"The stored step id. Send it to keep and update this step; omit it for a new step. It must be a step of this number's flow.","example":"5001","uniqueKey":"steps.items.[INDEX].oneOf.7.id","typeLabel":"string"},"ref":{"type":"string","pattern":"^[a-z][a-z0-9_-]{0,39}$","description":"New steps only, optional. Your label for this step, so that other steps of the same document can point at it. Unique in the document. Echoed in the response to the save, not stored.","example":"ask-order","uniqueKey":"steps.items.[INDEX].oneOf.7.ref","typeLabel":"string"},"name":{"oneOf":[{"type":"string","maxLength":100,"description":"Optional label shown in the Dashboard designer, up to 100 characters.","uniqueKey":"steps.items.[INDEX].oneOf.7.name.oneOf.0","typeLabel":"string"},{"type":"null","maxLength":100,"description":"Optional label shown in the Dashboard designer, up to 100 characters.","uniqueKey":"steps.items.[INDEX].oneOf.7.name.oneOf.1","typeLabel":"null"}],"uniqueKey":"steps.items.[INDEX].oneOf.7.name","typeLabel":"string | null"}},"additionalProperties":false,"uniqueKey":"steps.items.[INDEX].oneOf.7","typeLabel":"Call recording · object"},{"type":"object","title":"Fax","description":"One step of a call flow. `type` picks its fields. A step that branches, or that ends the call, is the last in its array. A branch is an array of steps with the same rules.","required":["type","email"],"properties":{"type":{"type":"string","enum":["fax"],"isRequired":true,"uniqueKey":"steps.items.[INDEX].oneOf.8.type","typeLabel":"enum\u003cstring>"},"email":{"oneOf":[{"type":"string","format":"email","maxLength":255,"description":"Required. A valid email address that receives the faxes, up to 255 characters. A read shows `null` when the stored step has none; a save needs a value.","isRequired":true,"uniqueKey":"steps.items.[INDEX].oneOf.8.email.oneOf.0","typeLabel":"string\u003cemail>"},{"type":"null","format":"email","maxLength":255,"description":"Required. A valid email address that receives the faxes, up to 255 characters. A read shows `null` when the stored step has none; a save needs a value.","isRequired":true,"uniqueKey":"steps.items.[INDEX].oneOf.8.email.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"steps.items.[INDEX].oneOf.8.email","typeLabel":"string\u003cemail> | null"},"id":{"type":"string","pattern":"^[1-9][0-9]*$","description":"The stored step id. Send it to keep and update this step; omit it for a new step. It must be a step of this number's flow.","example":"5001","uniqueKey":"steps.items.[INDEX].oneOf.8.id","typeLabel":"string"},"ref":{"type":"string","pattern":"^[a-z][a-z0-9_-]{0,39}$","description":"New steps only, optional. Your label for this step, so that other steps of the same document can point at it. Unique in the document. Echoed in the response to the save, not stored.","example":"ask-order","uniqueKey":"steps.items.[INDEX].oneOf.8.ref","typeLabel":"string"},"name":{"oneOf":[{"type":"string","maxLength":100,"description":"Optional label shown in the Dashboard designer, up to 100 characters.","uniqueKey":"steps.items.[INDEX].oneOf.8.name.oneOf.0","typeLabel":"string"},{"type":"null","maxLength":100,"description":"Optional label shown in the Dashboard designer, up to 100 characters.","uniqueKey":"steps.items.[INDEX].oneOf.8.name.oneOf.1","typeLabel":"null"}],"uniqueKey":"steps.items.[INDEX].oneOf.8.name","typeLabel":"string | null"}},"additionalProperties":false,"uniqueKey":"steps.items.[INDEX].oneOf.8","typeLabel":"Fax · object"},{"type":"object","title":"Change of caller","description":"One step of a call flow. `type` picks its fields. A step that branches, or that ends the call, is the last in its array. A branch is an array of steps with the same rules.","required":["type","phoneNumber"],"properties":{"type":{"type":"string","enum":["changeCallerId"],"isRequired":true,"uniqueKey":"steps.items.[INDEX].oneOf.9.type","typeLabel":"enum\u003cstring>"},"phoneNumber":{"oneOf":[{"type":"string","pattern":"^[0-9+*#]+$","maxLength":255,"description":"Required. The number shown next. Digits, `+`, `*` and `#` only, up to 255 characters. A read shows `null` when the stored step has none; a save needs a value.","isRequired":true,"uniqueKey":"steps.items.[INDEX].oneOf.9.phoneNumber.oneOf.0","typeLabel":"string"},{"type":"null","pattern":"^[0-9+*#]+$","maxLength":255,"description":"Required. The number shown next. Digits, `+`, `*` and `#` only, up to 255 characters. A read shows `null` when the stored step has none; a save needs a value.","isRequired":true,"uniqueKey":"steps.items.[INDEX].oneOf.9.phoneNumber.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"steps.items.[INDEX].oneOf.9.phoneNumber","typeLabel":"string | null"},"id":{"type":"string","pattern":"^[1-9][0-9]*$","description":"The stored step id. Send it to keep and update this step; omit it for a new step. It must be a step of this number's flow.","example":"5001","uniqueKey":"steps.items.[INDEX].oneOf.9.id","typeLabel":"string"},"ref":{"type":"string","pattern":"^[a-z][a-z0-9_-]{0,39}$","description":"New steps only, optional. Your label for this step, so that other steps of the same document can point at it. Unique in the document. Echoed in the response to the save, not stored.","example":"ask-order","uniqueKey":"steps.items.[INDEX].oneOf.9.ref","typeLabel":"string"},"name":{"oneOf":[{"type":"string","maxLength":100,"description":"Optional label shown in the Dashboard designer, up to 100 characters.","uniqueKey":"steps.items.[INDEX].oneOf.9.name.oneOf.0","typeLabel":"string"},{"type":"null","maxLength":100,"description":"Optional label shown in the Dashboard designer, up to 100 characters.","uniqueKey":"steps.items.[INDEX].oneOf.9.name.oneOf.1","typeLabel":"null"}],"uniqueKey":"steps.items.[INDEX].oneOf.9.name","typeLabel":"string | null"}},"additionalProperties":false,"uniqueKey":"steps.items.[INDEX].oneOf.9","typeLabel":"Change of caller · object"},{"type":"object","title":"Dial by extension","description":"One step of a call flow. `type` picks its fields. A step that branches, or that ends the call, is the last in its array. A branch is an array of steps with the same rules.","required":["type","soundId"],"properties":{"type":{"type":"string","enum":["dialByExtension"],"isRequired":true,"uniqueKey":"steps.items.[INDEX].oneOf.10.type","typeLabel":"enum\u003cstring>"},"soundId":{"oneOf":[{"type":"string","pattern":"^[1-9][0-9]*$","description":"Required. The prompt played to the caller. On a read it is `null` when what it pointed at no longer exists, and `problems` has `DANGLING_REFERENCE`.","example":"79","isRequired":true,"uniqueKey":"steps.items.[INDEX].oneOf.10.soundId.oneOf.0","typeLabel":"string"},{"type":"null","pattern":"^[1-9][0-9]*$","description":"Required. The prompt played to the caller. On a read it is `null` when what it pointed at no longer exists, and `problems` has `DANGLING_REFERENCE`.","example":"79","isRequired":true,"uniqueKey":"steps.items.[INDEX].oneOf.10.soundId.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"steps.items.[INDEX].oneOf.10.soundId","typeLabel":"string | null"},"id":{"type":"string","pattern":"^[1-9][0-9]*$","description":"The stored step id. Send it to keep and update this step; omit it for a new step. It must be a step of this number's flow.","example":"5001","uniqueKey":"steps.items.[INDEX].oneOf.10.id","typeLabel":"string"},"ref":{"type":"string","pattern":"^[a-z][a-z0-9_-]{0,39}$","description":"New steps only, optional. Your label for this step, so that other steps of the same document can point at it. Unique in the document. Echoed in the response to the save, not stored.","example":"ask-order","uniqueKey":"steps.items.[INDEX].oneOf.10.ref","typeLabel":"string"},"name":{"oneOf":[{"type":"string","maxLength":100,"description":"Optional label shown in the Dashboard designer, up to 100 characters.","uniqueKey":"steps.items.[INDEX].oneOf.10.name.oneOf.0","typeLabel":"string"},{"type":"null","maxLength":100,"description":"Optional label shown in the Dashboard designer, up to 100 characters.","uniqueKey":"steps.items.[INDEX].oneOf.10.name.oneOf.1","typeLabel":"null"}],"uniqueKey":"steps.items.[INDEX].oneOf.10.name","typeLabel":"string | null"},"waitSeconds":{"oneOf":[{"type":"integer","minimum":1,"description":"1 or more. How long to wait for the extension.","uniqueKey":"steps.items.[INDEX].oneOf.10.waitSeconds.oneOf.0","typeLabel":"integer"},{"type":"null","minimum":1,"description":"1 or more. How long to wait for the extension.","uniqueKey":"steps.items.[INDEX].oneOf.10.waitSeconds.oneOf.1","typeLabel":"null"}],"uniqueKey":"steps.items.[INDEX].oneOf.10.waitSeconds","typeLabel":"integer | null"},"soundName":{"oneOf":[{"type":"string","readOnly":true,"description":"Only with `include=names`: the sound's name, or `null` when it no longer resolves. Read-only: it may be sent back and is ignored.","uniqueKey":"steps.items.[INDEX].oneOf.10.soundName.oneOf.0","typeLabel":"string"},{"type":"null","readOnly":true,"description":"Only with `include=names`: the sound's name, or `null` when it no longer resolves. Read-only: it may be sent back and is ignored.","uniqueKey":"steps.items.[INDEX].oneOf.10.soundName.oneOf.1","typeLabel":"null"}],"uniqueKey":"steps.items.[INDEX].oneOf.10.soundName","typeLabel":"string | null"}},"additionalProperties":false,"uniqueKey":"steps.items.[INDEX].oneOf.10","typeLabel":"Dial by extension · object"},{"type":"object","title":"IVR menu","description":"One step of a call flow. `type` picks its fields. A step that branches, or that ends the call, is the last in its array. A branch is an array of steps with the same rules.","required":["type","soundId","waitSeconds"],"properties":{"type":{"type":"string","enum":["ivrMenu"],"isRequired":true,"uniqueKey":"steps.items.[INDEX].oneOf.11.type","typeLabel":"enum\u003cstring>"},"soundId":{"oneOf":[{"type":"string","pattern":"^[1-9][0-9]*$","description":"Required. The menu prompt. On a read it is `null` when what it pointed at no longer exists, and `problems` has `DANGLING_REFERENCE`.","example":"79","isRequired":true,"uniqueKey":"steps.items.[INDEX].oneOf.11.soundId.oneOf.0","typeLabel":"string"},{"type":"null","pattern":"^[1-9][0-9]*$","description":"Required. The menu prompt. On a read it is `null` when what it pointed at no longer exists, and `problems` has `DANGLING_REFERENCE`.","example":"79","isRequired":true,"uniqueKey":"steps.items.[INDEX].oneOf.11.soundId.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"steps.items.[INDEX].oneOf.11.soundId","typeLabel":"string | null"},"waitSeconds":{"oneOf":[{"type":"integer","minimum":1,"description":"Required, 1 or more. A read shows `null` when the stored step has none; a save needs a value.","isRequired":true,"uniqueKey":"steps.items.[INDEX].oneOf.11.waitSeconds.oneOf.0","typeLabel":"integer"},{"type":"null","minimum":1,"description":"Required, 1 or more. A read shows `null` when the stored step has none; a save needs a value.","isRequired":true,"uniqueKey":"steps.items.[INDEX].oneOf.11.waitSeconds.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"steps.items.[INDEX].oneOf.11.waitSeconds","typeLabel":"integer | null"},"id":{"type":"string","pattern":"^[1-9][0-9]*$","description":"The stored step id. Send it to keep and update this step; omit it for a new step. It must be a step of this number's flow.","example":"5001","uniqueKey":"steps.items.[INDEX].oneOf.11.id","typeLabel":"string"},"ref":{"type":"string","pattern":"^[a-z][a-z0-9_-]{0,39}$","description":"New steps only, optional. Your label for this step, so that other steps of the same document can point at it. Unique in the document. Echoed in the response to the save, not stored.","example":"ask-order","uniqueKey":"steps.items.[INDEX].oneOf.11.ref","typeLabel":"string"},"name":{"oneOf":[{"type":"string","maxLength":100,"description":"Optional label shown in the Dashboard designer, up to 100 characters.","uniqueKey":"steps.items.[INDEX].oneOf.11.name.oneOf.0","typeLabel":"string"},{"type":"null","maxLength":100,"description":"Optional label shown in the Dashboard designer, up to 100 characters.","uniqueKey":"steps.items.[INDEX].oneOf.11.name.oneOf.1","typeLabel":"null"}],"uniqueKey":"steps.items.[INDEX].oneOf.11.name","typeLabel":"string | null"},"options":{"type":"object","description":"One entry per key: each key matches `^[0-9*#]$` (`0` to `9`, `*` or `#`), and each value is the non-empty steps that run when the caller presses it. A menu needs at least one option, or a non-empty `noInput`.","additionalProperties":{"type":"array","minItems":1,"items":{"$circularRef":"855dd704-1e29-4d7c-a188-217e7e2b4a07"},"uniqueKey":"steps.items.[INDEX].oneOf.11.options.additionalProperties","typeLabel":"array"},"uniqueKey":"steps.items.[INDEX].oneOf.11.options","typeLabel":"object"},"noInput":{"type":"array","items":{"$circularRef":"855dd704-1e29-4d7c-a188-217e7e2b4a07"},"description":"Optional. Runs when the caller presses nothing or a key with no option.","uniqueKey":"steps.items.[INDEX].oneOf.11.noInput","typeLabel":"array"},"soundName":{"oneOf":[{"type":"string","readOnly":true,"description":"Only with `include=names`: the sound's name, or `null` when it no longer resolves. Read-only: it may be sent back and is ignored.","uniqueKey":"steps.items.[INDEX].oneOf.11.soundName.oneOf.0","typeLabel":"string"},{"type":"null","readOnly":true,"description":"Only with `include=names`: the sound's name, or `null` when it no longer resolves. Read-only: it may be sent back and is ignored.","uniqueKey":"steps.items.[INDEX].oneOf.11.soundName.oneOf.1","typeLabel":"null"}],"uniqueKey":"steps.items.[INDEX].oneOf.11.soundName","typeLabel":"string | null"}},"additionalProperties":false,"uniqueKey":"steps.items.[INDEX].oneOf.11","typeLabel":"IVR menu · object"},{"type":"object","title":"Day/time splitter","description":"One step of a call flow. `type` picks its fields. A step that branches, or that ends the call, is the last in its array. A branch is an array of steps with the same rules.","required":["type","branches"],"properties":{"type":{"type":"string","enum":["dayTimeSplitter"],"isRequired":true,"uniqueKey":"steps.items.[INDEX].oneOf.12.type","typeLabel":"enum\u003cstring>"},"branches":{"type":"array","maxItems":50,"items":{"type":"object","additionalProperties":false,"required":["days","holidays","from","to","steps"],"description":"One branch of a Day/Time Splitter.","properties":{"days":{"type":"array","uniqueItems":true,"items":{"type":"string","enum":["monday","tuesday","wednesday","thursday","friday","saturday","sunday"],"uniqueKey":"steps.items.[INDEX].oneOf.12.branches.items.[INDEX].days.items.[INDEX]","typeLabel":"enum\u003cstring>"},"description":"Required. The weekdays the branch matches, each once. May be empty: with `holidays: true` the branch matches only on public holidays; with `holidays: false` it never matches, and the save and validate warn `UNREACHABLE_BRANCH`.","isRequired":true,"uniqueKey":"steps.items.[INDEX].oneOf.12.branches.items.[INDEX].days","typeLabel":"enum\u003cstring>[]"},"holidays":{"type":"boolean","description":"Required. `true` makes the branch match on public holidays of the number's country (see [List public holidays](/api-reference/business-hours/list-public-holidays)).","isRequired":true,"uniqueKey":"steps.items.[INDEX].oneOf.12.branches.items.[INDEX].holidays","typeLabel":"boolean"},"from":{"oneOf":[{"type":"string","pattern":"^([01][0-9]|2[0-3]):[0-5][0-9]$","description":"Required. Start time, `HH:mm`, in the account time zone. A read shows `null` when the stored step has none; a save needs a value.","example":"08:00","isRequired":true,"uniqueKey":"steps.items.[INDEX].oneOf.12.branches.items.[INDEX].from.oneOf.0","typeLabel":"string"},{"type":"null","pattern":"^([01][0-9]|2[0-3]):[0-5][0-9]$","description":"Required. Start time, `HH:mm`, in the account time zone. A read shows `null` when the stored step has none; a save needs a value.","example":"08:00","isRequired":true,"uniqueKey":"steps.items.[INDEX].oneOf.12.branches.items.[INDEX].from.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"steps.items.[INDEX].oneOf.12.branches.items.[INDEX].from","typeLabel":"string | null"},"to":{"oneOf":[{"type":"string","pattern":"^([01][0-9]|2[0-3]):[0-5][0-9]$","description":"Required. End time, `HH:mm`, inclusive. A read shows `null` when the stored step has none; a save needs a value.","example":"17:00","isRequired":true,"uniqueKey":"steps.items.[INDEX].oneOf.12.branches.items.[INDEX].to.oneOf.0","typeLabel":"string"},{"type":"null","pattern":"^([01][0-9]|2[0-3]):[0-5][0-9]$","description":"Required. End time, `HH:mm`, inclusive. A read shows `null` when the stored step has none; a save needs a value.","example":"17:00","isRequired":true,"uniqueKey":"steps.items.[INDEX].oneOf.12.branches.items.[INDEX].to.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"steps.items.[INDEX].oneOf.12.branches.items.[INDEX].to","typeLabel":"string | null"},"steps":{"type":"array","items":{"$circularRef":"855dd704-1e29-4d7c-a188-217e7e2b4a07"},"description":"Non-empty. Runs when the branch matches.","minItems":1,"isRequired":true,"uniqueKey":"steps.items.[INDEX].oneOf.12.branches.items.[INDEX].steps","typeLabel":"array"}},"uniqueKey":"steps.items.[INDEX].oneOf.12.branches.items.[INDEX]","typeLabel":"object"},"description":"Up to 50 branches. May be empty, as the designer saves it: then `otherwise` runs, and with no `otherwise` either the save and validate warn `NO_FALLBACK`.","isRequired":true,"uniqueKey":"steps.items.[INDEX].oneOf.12.branches","typeLabel":"object[]"},"id":{"type":"string","pattern":"^[1-9][0-9]*$","description":"The stored step id. Send it to keep and update this step; omit it for a new step. It must be a step of this number's flow.","example":"5001","uniqueKey":"steps.items.[INDEX].oneOf.12.id","typeLabel":"string"},"ref":{"type":"string","pattern":"^[a-z][a-z0-9_-]{0,39}$","description":"New steps only, optional. Your label for this step, so that other steps of the same document can point at it. Unique in the document. Echoed in the response to the save, not stored.","example":"ask-order","uniqueKey":"steps.items.[INDEX].oneOf.12.ref","typeLabel":"string"},"name":{"oneOf":[{"type":"string","maxLength":100,"description":"Optional label shown in the Dashboard designer, up to 100 characters.","uniqueKey":"steps.items.[INDEX].oneOf.12.name.oneOf.0","typeLabel":"string"},{"type":"null","maxLength":100,"description":"Optional label shown in the Dashboard designer, up to 100 characters.","uniqueKey":"steps.items.[INDEX].oneOf.12.name.oneOf.1","typeLabel":"null"}],"uniqueKey":"steps.items.[INDEX].oneOf.12.name","typeLabel":"string | null"},"otherwise":{"type":"array","items":{"$circularRef":"855dd704-1e29-4d7c-a188-217e7e2b4a07"},"description":"Optional. Runs when no branch matches.","uniqueKey":"steps.items.[INDEX].oneOf.12.otherwise","typeLabel":"array"}},"additionalProperties":false,"uniqueKey":"steps.items.[INDEX].oneOf.12","typeLabel":"Day/time splitter · object"},{"type":"object","title":"Jump to","description":"One step of a call flow. `type` picks its fields. A step that branches, or that ends the call, is the last in its array. A branch is an array of steps with the same rules.","required":["type","target"],"properties":{"type":{"type":"string","enum":["jumpTo"],"isRequired":true,"uniqueKey":"steps.items.[INDEX].oneOf.13.type","typeLabel":"enum\u003cstring>"},"target":{"oneOf":[{"type":"string","pattern":"^(?:[1-9][0-9]*|[a-z][a-z0-9_-]{0,39})$","description":"A step of this flow (its id or `ref`), or the id of a step in another number's flow of your account. Not another Jump to (`422 CALL_FLOWS.JUMP_TO_JUMP`). On a read it is `null` when the step it pointed at no longer exists, and `problems` has `DANGLING_REFERENCE`.","example":"5003","isRequired":true,"uniqueKey":"steps.items.[INDEX].oneOf.13.target.oneOf.0","typeLabel":"string"},{"type":"null","pattern":"^(?:[1-9][0-9]*|[a-z][a-z0-9_-]{0,39})$","description":"A step of this flow (its id or `ref`), or the id of a step in another number's flow of your account. Not another Jump to (`422 CALL_FLOWS.JUMP_TO_JUMP`). On a read it is `null` when the step it pointed at no longer exists, and `problems` has `DANGLING_REFERENCE`.","example":"5003","isRequired":true,"uniqueKey":"steps.items.[INDEX].oneOf.13.target.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"steps.items.[INDEX].oneOf.13.target","typeLabel":"string | null"},"id":{"type":"string","pattern":"^[1-9][0-9]*$","description":"The stored step id. Send it to keep and update this step; omit it for a new step. It must be a step of this number's flow.","example":"5001","uniqueKey":"steps.items.[INDEX].oneOf.13.id","typeLabel":"string"},"ref":{"type":"string","pattern":"^[a-z][a-z0-9_-]{0,39}$","description":"New steps only, optional. Your label for this step, so that other steps of the same document can point at it. Unique in the document. Echoed in the response to the save, not stored.","example":"ask-order","uniqueKey":"steps.items.[INDEX].oneOf.13.ref","typeLabel":"string"},"name":{"oneOf":[{"type":"string","maxLength":100,"description":"Optional label shown in the Dashboard designer, up to 100 characters.","uniqueKey":"steps.items.[INDEX].oneOf.13.name.oneOf.0","typeLabel":"string"},{"type":"null","maxLength":100,"description":"Optional label shown in the Dashboard designer, up to 100 characters.","uniqueKey":"steps.items.[INDEX].oneOf.13.name.oneOf.1","typeLabel":"null"}],"uniqueKey":"steps.items.[INDEX].oneOf.13.name","typeLabel":"string | null"},"targetNumberId":{"oneOf":[{"type":"string","readOnly":true,"description":"The number that owns `target`, or `null` when `target` is. Read-only: it may be sent back and is ignored.","example":"600","uniqueKey":"steps.items.[INDEX].oneOf.13.targetNumberId.oneOf.0","typeLabel":"string"},{"type":"null","readOnly":true,"description":"The number that owns `target`, or `null` when `target` is. Read-only: it may be sent back and is ignored.","example":"600","uniqueKey":"steps.items.[INDEX].oneOf.13.targetNumberId.oneOf.1","typeLabel":"null"}],"uniqueKey":"steps.items.[INDEX].oneOf.13.targetNumberId","typeLabel":"string | null"}},"additionalProperties":false,"uniqueKey":"steps.items.[INDEX].oneOf.13","typeLabel":"Jump to · object"},{"type":"object","title":"Condition splitter","description":"One step of a call flow. `type` picks its fields. A step that branches, or that ends the call, is the last in its array. A branch is an array of steps with the same rules.","required":["type","branches"],"properties":{"type":{"type":"string","enum":["conditionSplitter"],"isRequired":true,"uniqueKey":"steps.items.[INDEX].oneOf.14.type","typeLabel":"enum\u003cstring>"},"branches":{"type":"array","minItems":1,"maxItems":50,"items":{"type":"object","additionalProperties":false,"required":["conditions","steps"],"description":"One branch of a Condition Splitter.","properties":{"conditions":{"type":"array","minItems":1,"maxItems":50,"items":{"type":"object","additionalProperties":false,"required":["field","operator"],"description":"One condition. All conditions of a branch must hold.\n\nFields: `call.externalNumber` and `call.internalNumber` (string); `call.waitingTime` (integer, seconds); `contact.name`, `contact.title`, `contact.company`, `contact.industry`, `contact.address`, `contact.city`, `contact.zip`, `contact.state` and `contact.type` (string); `contact.tags` (contact tag ids, as the Contacts API returns them); `contact.customFields.\u003cfieldId>` (string, a contact field id from [List contact fields](/api-reference/contacts/list-contact-fields)); `httpResponse.\u003cstep>.\u003cpath>` (a value of the response of an earlier `httpRequest` step); and `voiceAgent.\u003cstep>.\u003cproperty>` (the result of an earlier `voiceAgent` step). `\u003cstep>` is a step id or `ref`.\n\nStrings take `equals`, `notEquals`, `startsWith`, `endsWith`, `contains`, `isEmpty` and `isSet`. Integers take `equals`, `notEquals`, `lessThan`, `greaterThan`, `lessThanOrEqual`, `greaterThanOrEqual`, `isEmpty` and `isSet`. `contact.tags` takes only `contains`.","properties":{"field":{"type":"string","example":"call.waitingTime","description":"One of the fields above: `call.externalNumber`, `call.internalNumber`, `call.waitingTime`, `contact.\u003cname>`, `contact.tags`, `contact.customFields.\u003cfieldId>`, `httpResponse.\u003cstep>.\u003cpath>` or `voiceAgent.\u003cstep>.\u003cproperty>`. Anything else is `422 VALIDATION.INVALID_FIELD` on a save.","isRequired":true,"uniqueKey":"steps.items.[INDEX].oneOf.14.branches.items.[INDEX].conditions.items.[INDEX].field","typeLabel":"string"},"operator":{"type":"string","enum":["equals","notEquals","lessThan","greaterThan","lessThanOrEqual","greaterThanOrEqual","startsWith","endsWith","contains","isEmpty","isSet"],"isRequired":true,"uniqueKey":"steps.items.[INDEX].oneOf.14.branches.items.[INDEX].conditions.items.[INDEX].operator","typeLabel":"enum\u003cstring>"},"value":{"oneOf":[{"type":"string","title":"Text","description":"The value to compare with: a string; an integer for `call.waitingTime`; an array of contact tag ids for `contact.tags`. Required for every operator but `isEmpty` and `isSet`, which take no `value`. A read shows `null` for a stored condition without a value.","uniqueKey":"steps.items.[INDEX].oneOf.14.branches.items.[INDEX].conditions.items.[INDEX].value.oneOf.0","typeLabel":"string"},{"type":"integer","title":"Number","description":"The value to compare with: a string; an integer for `call.waitingTime`; an array of contact tag ids for `contact.tags`. Required for every operator but `isEmpty` and `isSet`, which take no `value`. A read shows `null` for a stored condition without a value.","uniqueKey":"steps.items.[INDEX].oneOf.14.branches.items.[INDEX].conditions.items.[INDEX].value.oneOf.1","typeLabel":"integer"},{"type":"array","items":{"type":"string","uniqueKey":"steps.items.[INDEX].oneOf.14.branches.items.[INDEX].conditions.items.[INDEX].value.oneOf.2.items.[INDEX]","typeLabel":"string"},"title":"Contact tag ids","description":"The value to compare with: a string; an integer for `call.waitingTime`; an array of contact tag ids for `contact.tags`. Required for every operator but `isEmpty` and `isSet`, which take no `value`. A read shows `null` for a stored condition without a value.","uniqueKey":"steps.items.[INDEX].oneOf.14.branches.items.[INDEX].conditions.items.[INDEX].value.oneOf.2","typeLabel":"string[]"},{"type":"object","title":"No value","description":"The value to compare with: a string; an integer for `call.waitingTime`; an array of contact tag ids for `contact.tags`. Required for every operator but `isEmpty` and `isSet`, which take no `value`. A read shows `null` for a stored condition without a value.","enum":[null],"uniqueKey":"steps.items.[INDEX].oneOf.14.branches.items.[INDEX].conditions.items.[INDEX].value.oneOf.3","typeLabel":"No value · object"},{"type":"null","title":"No value","description":"The value to compare with: a string; an integer for `call.waitingTime`; an array of contact tag ids for `contact.tags`. Required for every operator but `isEmpty` and `isSet`, which take no `value`. A read shows `null` for a stored condition without a value.","enum":[null],"uniqueKey":"steps.items.[INDEX].oneOf.14.branches.items.[INDEX].conditions.items.[INDEX].value.oneOf.4","typeLabel":"null"}],"uniqueKey":"steps.items.[INDEX].oneOf.14.branches.items.[INDEX].conditions.items.[INDEX].value","typeLabel":"string | integer | string[] | No value · object | null"}},"uniqueKey":"steps.items.[INDEX].oneOf.14.branches.items.[INDEX].conditions.items.[INDEX]","typeLabel":"object"},"description":"1 to 50 conditions, all of which must hold.","isRequired":true,"uniqueKey":"steps.items.[INDEX].oneOf.14.branches.items.[INDEX].conditions","typeLabel":"object[]"},"steps":{"type":"array","items":{"$circularRef":"855dd704-1e29-4d7c-a188-217e7e2b4a07"},"description":"Non-empty. Runs when every condition holds.","minItems":1,"isRequired":true,"uniqueKey":"steps.items.[INDEX].oneOf.14.branches.items.[INDEX].steps","typeLabel":"array"}},"uniqueKey":"steps.items.[INDEX].oneOf.14.branches.items.[INDEX]","typeLabel":"object"},"description":"1 to 50 branches.","isRequired":true,"uniqueKey":"steps.items.[INDEX].oneOf.14.branches","typeLabel":"object[]"},"id":{"type":"string","pattern":"^[1-9][0-9]*$","description":"The stored step id. Send it to keep and update this step; omit it for a new step. It must be a step of this number's flow.","example":"5001","uniqueKey":"steps.items.[INDEX].oneOf.14.id","typeLabel":"string"},"ref":{"type":"string","pattern":"^[a-z][a-z0-9_-]{0,39}$","description":"New steps only, optional. Your label for this step, so that other steps of the same document can point at it. Unique in the document. Echoed in the response to the save, not stored.","example":"ask-order","uniqueKey":"steps.items.[INDEX].oneOf.14.ref","typeLabel":"string"},"name":{"oneOf":[{"type":"string","maxLength":100,"description":"Optional label shown in the Dashboard designer, up to 100 characters.","uniqueKey":"steps.items.[INDEX].oneOf.14.name.oneOf.0","typeLabel":"string"},{"type":"null","maxLength":100,"description":"Optional label shown in the Dashboard designer, up to 100 characters.","uniqueKey":"steps.items.[INDEX].oneOf.14.name.oneOf.1","typeLabel":"null"}],"uniqueKey":"steps.items.[INDEX].oneOf.14.name","typeLabel":"string | null"},"otherwise":{"type":"array","items":{"$circularRef":"855dd704-1e29-4d7c-a188-217e7e2b4a07"},"description":"Optional. Runs when no branch matches.","uniqueKey":"steps.items.[INDEX].oneOf.14.otherwise","typeLabel":"array"}},"additionalProperties":false,"uniqueKey":"steps.items.[INDEX].oneOf.14","typeLabel":"Condition splitter · object"},{"type":"object","title":"HTTP request","description":"One step of a call flow. `type` picks its fields. A step that branches, or that ends the call, is the last in its array. A branch is an array of steps with the same rules.","required":["type","method","url","parseResponse","keepResponseAfterCall"],"properties":{"type":{"type":"string","enum":["httpRequest"],"isRequired":true,"uniqueKey":"steps.items.[INDEX].oneOf.15.type","typeLabel":"enum\u003cstring>"},"method":{"oneOf":[{"type":"string","enum":["GET","POST","PUT","PATCH","DELETE",null],"description":"Required. The HTTP method. A read shows `null` when the stored step has none; a save needs a value.","isRequired":true,"uniqueKey":"steps.items.[INDEX].oneOf.15.method.oneOf.0","typeLabel":"enum\u003cstring>"},{"type":"null","enum":["GET","POST","PUT","PATCH","DELETE",null],"description":"Required. The HTTP method. A read shows `null` when the stored step has none; a save needs a value.","isRequired":true,"uniqueKey":"steps.items.[INDEX].oneOf.15.method.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"steps.items.[INDEX].oneOf.15.method","typeLabel":"enum\u003cstring> | null"},"url":{"oneOf":[{"type":"string","minLength":1,"maxLength":2048,"description":"Required, up to 2,048 characters. May hold template variables such as `{{call.external_number}}`. A read shows `null` when the stored step has none; a save needs a value.","example":"https://erp.example.com/orders/lookup","isRequired":true,"uniqueKey":"steps.items.[INDEX].oneOf.15.url.oneOf.0","typeLabel":"string"},{"type":"null","minLength":1,"maxLength":2048,"description":"Required, up to 2,048 characters. May hold template variables such as `{{call.external_number}}`. A read shows `null` when the stored step has none; a save needs a value.","example":"https://erp.example.com/orders/lookup","isRequired":true,"uniqueKey":"steps.items.[INDEX].oneOf.15.url.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"steps.items.[INDEX].oneOf.15.url","typeLabel":"string | null"},"parseResponse":{"type":"boolean","description":"Required. Makes the response readable by later conditions (`httpResponse.\u003cstep>.\u003cpath>`).","isRequired":true,"uniqueKey":"steps.items.[INDEX].oneOf.15.parseResponse","typeLabel":"boolean"},"keepResponseAfterCall":{"type":"boolean","description":"Required. Keeps the response after the call.","isRequired":true,"uniqueKey":"steps.items.[INDEX].oneOf.15.keepResponseAfterCall","typeLabel":"boolean"},"id":{"type":"string","pattern":"^[1-9][0-9]*$","description":"The stored step id. Send it to keep and update this step; omit it for a new step. It must be a step of this number's flow.","example":"5001","uniqueKey":"steps.items.[INDEX].oneOf.15.id","typeLabel":"string"},"ref":{"type":"string","pattern":"^[a-z][a-z0-9_-]{0,39}$","description":"New steps only, optional. Your label for this step, so that other steps of the same document can point at it. Unique in the document. Echoed in the response to the save, not stored.","example":"ask-order","uniqueKey":"steps.items.[INDEX].oneOf.15.ref","typeLabel":"string"},"name":{"oneOf":[{"type":"string","maxLength":100,"description":"Optional label shown in the Dashboard designer, up to 100 characters.","uniqueKey":"steps.items.[INDEX].oneOf.15.name.oneOf.0","typeLabel":"string"},{"type":"null","maxLength":100,"description":"Optional label shown in the Dashboard designer, up to 100 characters.","uniqueKey":"steps.items.[INDEX].oneOf.15.name.oneOf.1","typeLabel":"null"}],"uniqueKey":"steps.items.[INDEX].oneOf.15.name","typeLabel":"string | null"},"headers":{"type":"array","maxItems":50,"items":{"type":"object","additionalProperties":false,"required":["name"],"description":"One request header. Put credentials here, not in `url` or `body`: only header values are hidden.","properties":{"name":{"type":"string","minLength":1,"maxLength":256,"description":"Up to 256 characters.","example":"Authorization","isRequired":true,"uniqueKey":"steps.items.[INDEX].oneOf.15.headers.items.[INDEX].name","typeLabel":"string"},"value":{"oneOf":[{"type":"string","maxLength":8192,"description":"Up to 8,192 characters. Write-only: the value is never returned, and a read gives `null` with `valueSet: true`. Leave it out to keep the stored value. A new header needs a value, else `422 CALL_FLOWS.HEADER_VALUE_REQUIRED`.","uniqueKey":"steps.items.[INDEX].oneOf.15.headers.items.[INDEX].value.oneOf.0","typeLabel":"string"},{"type":"null","maxLength":8192,"description":"Up to 8,192 characters. Write-only: the value is never returned, and a read gives `null` with `valueSet: true`. Leave it out to keep the stored value. A new header needs a value, else `422 CALL_FLOWS.HEADER_VALUE_REQUIRED`.","uniqueKey":"steps.items.[INDEX].oneOf.15.headers.items.[INDEX].value.oneOf.1","typeLabel":"null"}],"uniqueKey":"steps.items.[INDEX].oneOf.15.headers.items.[INDEX].value","typeLabel":"string | null"},"valueSet":{"type":"boolean","readOnly":true,"description":"On a read, `true` when a value is stored. Read-only: it may be sent back and is ignored.","uniqueKey":"steps.items.[INDEX].oneOf.15.headers.items.[INDEX].valueSet","typeLabel":"boolean"}},"uniqueKey":"steps.items.[INDEX].oneOf.15.headers.items.[INDEX]","typeLabel":"object"},"description":"Up to 50 headers.","uniqueKey":"steps.items.[INDEX].oneOf.15.headers","typeLabel":"object[]"},"body":{"type":"array","maxItems":50,"items":{"type":"object","additionalProperties":false,"required":["key","value"],"properties":{"key":{"type":"string","minLength":1,"maxLength":255,"description":"Up to 255 characters.","isRequired":true,"uniqueKey":"steps.items.[INDEX].oneOf.15.body.items.[INDEX].key","typeLabel":"string"},"value":{"oneOf":[{"type":"string","minLength":1,"maxLength":8192,"description":"A non-empty string, up to 8,192 characters. It may hold template variables, such as `{{input[ask-order]}}`. A read shows `null` when the stored step has none; a save needs a value.","isRequired":true,"uniqueKey":"steps.items.[INDEX].oneOf.15.body.items.[INDEX].value.oneOf.0","typeLabel":"string"},{"type":"null","minLength":1,"maxLength":8192,"description":"A non-empty string, up to 8,192 characters. It may hold template variables, such as `{{input[ask-order]}}`. A read shows `null` when the stored step has none; a save needs a value.","isRequired":true,"uniqueKey":"steps.items.[INDEX].oneOf.15.body.items.[INDEX].value.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"steps.items.[INDEX].oneOf.15.body.items.[INDEX].value","typeLabel":"string | null"}},"uniqueKey":"steps.items.[INDEX].oneOf.15.body.items.[INDEX]","typeLabel":"object"},"description":"Up to 50 body fields.","uniqueKey":"steps.items.[INDEX].oneOf.15.body","typeLabel":"object[]"}},"additionalProperties":false,"uniqueKey":"steps.items.[INDEX].oneOf.15","typeLabel":"HTTP request · object"},{"type":"object","title":"Collect input","description":"One step of a call flow. `type` picks its fields. A step that branches, or that ends the call, is the last in its array. A branch is an array of steps with the same rules.","required":["type","soundId","waitSeconds","pattern"],"properties":{"type":{"type":"string","enum":["collectInput"],"isRequired":true,"uniqueKey":"steps.items.[INDEX].oneOf.16.type","typeLabel":"enum\u003cstring>"},"soundId":{"oneOf":[{"type":"string","pattern":"^[1-9][0-9]*$","description":"Required. The prompt. On a read it is `null` when what it pointed at no longer exists, and `problems` has `DANGLING_REFERENCE`.","example":"80","isRequired":true,"uniqueKey":"steps.items.[INDEX].oneOf.16.soundId.oneOf.0","typeLabel":"string"},{"type":"null","pattern":"^[1-9][0-9]*$","description":"Required. The prompt. On a read it is `null` when what it pointed at no longer exists, and `problems` has `DANGLING_REFERENCE`.","example":"80","isRequired":true,"uniqueKey":"steps.items.[INDEX].oneOf.16.soundId.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"steps.items.[INDEX].oneOf.16.soundId","typeLabel":"string | null"},"waitSeconds":{"oneOf":[{"type":"integer","minimum":1,"description":"Required, 1 or more. A read shows `null` when the stored step has none; a save needs a value.","isRequired":true,"uniqueKey":"steps.items.[INDEX].oneOf.16.waitSeconds.oneOf.0","typeLabel":"integer"},{"type":"null","minimum":1,"description":"Required, 1 or more. A read shows `null` when the stored step has none; a save needs a value.","isRequired":true,"uniqueKey":"steps.items.[INDEX].oneOf.16.waitSeconds.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"steps.items.[INDEX].oneOf.16.waitSeconds","typeLabel":"integer | null"},"pattern":{"oneOf":[{"type":"string","minLength":1,"maxLength":255,"description":"Required. A digit count or a regular expression, up to 255 characters. A read shows `null` when the stored step has none; a save needs a value.","example":"6","isRequired":true,"uniqueKey":"steps.items.[INDEX].oneOf.16.pattern.oneOf.0","typeLabel":"string"},{"type":"null","minLength":1,"maxLength":255,"description":"Required. A digit count or a regular expression, up to 255 characters. A read shows `null` when the stored step has none; a save needs a value.","example":"6","isRequired":true,"uniqueKey":"steps.items.[INDEX].oneOf.16.pattern.oneOf.1","typeLabel":"null"}],"isRequired":true,"uniqueKey":"steps.items.[INDEX].oneOf.16.pattern","typeLabel":"string | null"},"id":{"type":"string","pattern":"^[1-9][0-9]*$","description":"The stored step id. Send it to keep and update this step; omit it for a new step. It must be a step of this number's flow.","example":"5001","uniqueKey":"steps.items.[INDEX].oneOf.16.id","typeLabel":"string"},"ref":{"type":"string","pattern":"^[a-z][a-z0-9_-]{0,39}$","description":"New steps only, optional. Your label for this step, so that other steps of the same document can point at it. Unique in the document. Echoed in the response to the save, not stored.","example":"ask-order","uniqueKey":"steps.items.[INDEX].oneOf.16.ref","typeLabel":"string"},"name":{"oneOf":[{"type":"string","maxLength":100,"description":"Optional label shown in the Dashboard designer, up to 100 characters.","uniqueKey":"steps.items.[INDEX].oneOf.16.name.oneOf.0","typeLabel":"string"},{"type":"null","maxLength":100,"description":"Optional label shown in the Dashboard designer, up to 100 characters.","uniqueKey":"steps.items.[INDEX].oneOf.16.name.oneOf.1","typeLabel":"null"}],"uniqueKey":"steps.items.[INDEX].oneOf.16.name","typeLabel":"string | null"},"retryOnInvalid":{"type":"boolean","description":"Ask again when the input does not match.","uniqueKey":"steps.items.[INDEX].oneOf.16.retryOnInvalid","typeLabel":"boolean"},"soundName":{"oneOf":[{"type":"string","readOnly":true,"description":"Only with `include=names`: the sound's name, or `null` when it no longer resolves. Read-only: it may be sent back and is ignored.","uniqueKey":"steps.items.[INDEX].oneOf.16.soundName.oneOf.0","typeLabel":"string"},{"type":"null","readOnly":true,"description":"Only with `include=names`: the sound's name, or `null` when it no longer resolves. Read-only: it may be sent back and is ignored.","uniqueKey":"steps.items.[INDEX].oneOf.16.soundName.oneOf.1","typeLabel":"null"}],"uniqueKey":"steps.items.[INDEX].oneOf.16.soundName","typeLabel":"string | null"}},"additionalProperties":false,"uniqueKey":"steps.items.[INDEX].oneOf.16","typeLabel":"Collect input · object"},{"type":"object","title":"Mark call as resolved","description":"One step of a call flow. `type` picks its fields. A step that branches, or that ends the call, is the last in its array. A branch is an array of steps with the same rules.","required":["type"],"properties":{"type":{"type":"string","enum":["markResolved"],"isRequired":true,"uniqueKey":"steps.items.[INDEX].oneOf.17.type","typeLabel":"enum\u003cstring>"},"id":{"type":"string","pattern":"^[1-9][0-9]*$","description":"The stored step id. Send it to keep and update this step; omit it for a new step. It must be a step of this number's flow.","example":"5001","uniqueKey":"steps.items.[INDEX].oneOf.17.id","typeLabel":"string"},"ref":{"type":"string","pattern":"^[a-z][a-z0-9_-]{0,39}$","description":"New steps only, optional. Your label for this step, so that other steps of the same document can point at it. Unique in the document. Echoed in the response to the save, not stored.","example":"ask-order","uniqueKey":"steps.items.[INDEX].oneOf.17.ref","typeLabel":"string"},"name":{"oneOf":[{"type":"string","maxLength":100,"description":"Optional label shown in the Dashboard designer, up to 100 characters.","uniqueKey":"steps.items.[INDEX].oneOf.17.name.oneOf.0","typeLabel":"string"},{"type":"null","maxLength":100,"description":"Optional label shown in the Dashboard designer, up to 100 characters.","uniqueKey":"steps.items.[INDEX].oneOf.17.name.oneOf.1","typeLabel":"null"}],"uniqueKey":"steps.items.[INDEX].oneOf.17.name","typeLabel":"string | null"}},"additionalProperties":false,"uniqueKey":"steps.items.[INDEX].oneOf.17","typeLabel":"Mark call as resolved · object"},{"type":"object","title":"Unsupported step","description":"One step of a call flow. `type` picks its fields. A step that branches, or that ends the call, is the last in its array. A branch is an array of steps with the same rules.","required":["id","type","storedType"],"properties":{"id":{"type":"string","example":"419","isRequired":true,"uniqueKey":"steps.items.[INDEX].oneOf.18.id","typeLabel":"string"},"type":{"type":"string","enum":["unsupported"],"isRequired":true,"uniqueKey":"steps.items.[INDEX].oneOf.18.type","typeLabel":"enum\u003cstring>"},"storedType":{"type":"string","readOnly":true,"description":"The stored type, such as `webhook`.","example":"webhook","isRequired":true,"uniqueKey":"steps.items.[INDEX].oneOf.18.storedType","typeLabel":"string"}},"additionalProperties":false,"uniqueKey":"steps.items.[INDEX].oneOf.18","typeLabel":"Unsupported step · object"}],"uniqueKey":"steps.items.[INDEX]","typeLabel":"Ring user · object | Ring favorite user · object | Ring group · object | Voice agent · object | Playback · object | Voicemail · object | Redirect · object | Call recording · object | Fax · object | Change of caller · object | Dial by extension · object | IVR menu · object | Day/time splitter · object | Jump to · object | Condition splitter · object | HTTP request · object | Collect input · object | Mark call as resolved · object | Unsupported step · object"},"description":"The main sequence, from \"Call comes in\". The first step runs first, then the next one in the array. A step that branches, or that ends the call, is the last in its array. 1 to 200 steps in the whole flow on a save; a number with no steps reads `[]`.","isRequired":true,"uniqueKey":"steps","typeLabel":"(Ring user · object | Ring favorite user · object | Ring group · object | Voice agent · object | Playback · object | Voicemail · object | Redirect · object | Call recording · object | Fax · object | Change of caller · object | Dial by extension · object | IVR menu · object | Day/time splitter · object | Jump to · object | Condition splitter · object | HTTP request · object | Collect input · object | Mark call as resolved · object | Unsupported step · object)[]"},"updatedAt":{"type":"string","format":"date-time","readOnly":true,"description":"When the draft was saved. Read-only.","isRequired":true,"uniqueKey":"updatedAt","typeLabel":"string\u003cdate-time>"},"versionId":{"type":"string","description":"The draft's version id. Publish it with [Publish a call flow draft](/api-reference/call-flows/publish-a-call-flow-draft).","isRequired":true,"uniqueKey":"versionId","typeLabel":"string"},"dashboardUrl":{"type":"string","readOnly":true,"description":"Opens this flow in the Dashboard designer, for an Admin. Read-only.","isRequired":true,"uniqueKey":"dashboardUrl","typeLabel":"string"},"warnings":{"type":"array","items":{"type":"object","additionalProperties":false,"required":["code","message","target"],"description":"Something worth a look that does not stop a save. Codes: `RING_TIME_BELOW_GROUP_MINIMUM` (`ringSeconds` is below the group's per-agent timeout plus 10 seconds), `REGION_MISMATCH` (the user or group is in another call routing region than the number), `BUSINESS_HOURS_APPLY` (business hours run before the flow; when closed, the closed action wins), `JUMP_TO_OTHER_NUMBER` (a Jump to enters another number's flow, and changes there can delete it), `JUMP_TARGETS_REMOVED` (Jump to steps in other numbers point at steps this change removes), `UNREACHABLE_BRANCH` (a Day/Time branch with no days and no holidays, or `from` after `to`), `NO_FALLBACK` (a Day/Time Splitter has no `otherwise`, so unmatched calls hang up), `OVERLAPPING_TIME_BRANCHES` (which of two overlapping branches wins is not guaranteed), `BRANCH_ORDER_IGNORED` (saved branches were reordered; the stored order does not change), `SOUND_PROCESSING` (a sound is still converting), `VOICE_AGENT_CHECK_SKIPPED` (the voice agents could not be looked up, so their ids were not checked) and, on a restore only, `JUMP_TO_NOT_RESTORED` (a Jump to step of another number that pointed at a step of the version was deleted with it, and does not come back).","properties":{"code":{"type":"string","example":"BUSINESS_HOURS_APPLY","isRequired":true,"uniqueKey":"warnings.items.[INDEX].code","typeLabel":"string"},"message":{"type":"string","isRequired":true,"uniqueKey":"warnings.items.[INDEX].message","typeLabel":"string"},"target":{"type":"string","description":"A JSON pointer into the document.","example":"/steps","isRequired":true,"uniqueKey":"warnings.items.[INDEX].target","typeLabel":"string"}},"uniqueKey":"warnings.items.[INDEX]","typeLabel":"object"},"description":"Warnings about the saved flow. They never stop a save.","isRequired":true,"uniqueKey":"warnings","typeLabel":"object[]"},"live":{"type":"boolean","enum":[false],"description":"Always `false`: calls keep using the live flow.","isRequired":true,"uniqueKey":"live","typeLabel":"enum\u003cboolean>"}},"uniqueKey":"","typeLabel":"object"},"example":{"numberId":"600","etag":"\"cf1-9fJ2kQx7Lr0aT3\"","editable":true,"problems":[],"businessHours":{"active":true,"scope":"company"},"steps":[{"type":"playback","name":null,"soundId":"79"},{"ref":"ask-order","type":"collectInput","name":null,"soundId":"80","waitSeconds":8,"pattern":"6","retryOnInvalid":true}],"warnings":[{"code":"BUSINESS_HOURS_APPLY","message":"Company business hours run before this flow. When closed, callers get the closed action instead.","target":"/steps"}],"updatedAt":"2026-11-06T10:05:41Z","versionId":"1836","dashboardUrl":"https://dashboard.cloudtalk.io/menu/numbers/edit/600/call-flow-design","live":false},"examples":{"Example":{"title":"Example","value":{"numberId":"600","etag":"\"cf1-9fJ2kQx7Lr0aT3\"","editable":true,"problems":[],"businessHours":{"active":true,"scope":"company"},"steps":[{"type":"playback","name":null,"soundId":"79"},{"ref":"ask-order","type":"collectInput","name":null,"soundId":"80","waitSeconds":8,"pattern":"6","retryOnInvalid":true}],"warnings":[{"code":"BUSINESS_HOURS_APPLY","message":"Company business hours run before this flow. When closed, callers get the closed action instead.","target":"/steps"}],"updatedAt":"2026-11-06T10:05:41Z","versionId":"1836","dashboardUrl":"https://dashboard.cloudtalk.io/menu/numbers/edit/600/call-flow-design","live":false}}},"exampleType":"examples"}},"exampleType":"examples"},"0f2764c1-a5fe-4c4a-9113-a4949f98d0eb":{"description":"The body is not one JSON object, is empty, or has an unknown field (code VALIDATION.INVALID_BODY, `target` points at it), or a query parameter is unknown or malformed (code VALIDATION.INVALID_PARAMETER).","content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"error":{"additionalProperties":false,"properties":{"code":{"type":"string","isRequired":true,"uniqueKey":"error.code","typeLabel":"string"},"message":{"type":"string","isRequired":true,"uniqueKey":"error.message","typeLabel":"string"},"details":{"oneOf":[{"items":{"additionalProperties":false,"properties":{"code":{"type":"string","isRequired":true,"uniqueKey":"error.details.oneOf.0.items.[INDEX].code","typeLabel":"string"},"message":{"type":"string","isRequired":true,"uniqueKey":"error.details.oneOf.0.items.[INDEX].message","typeLabel":"string"},"target":{"type":"string","uniqueKey":"error.details.oneOf.0.items.[INDEX].target","typeLabel":"string"}},"required":["code","message"],"type":"object","uniqueKey":"error.details.oneOf.0.items.[INDEX]","typeLabel":"object"},"type":"array","uniqueKey":"error.details.oneOf.0","typeLabel":"object[]"},{"items":{"additionalProperties":false,"properties":{"code":{"type":"string"},"message":{"type":"string"},"target":{"type":"string"}},"required":["code","message"],"type":"object"},"type":"null","uniqueKey":"error.details.oneOf.1","typeLabel":"null"}],"uniqueKey":"error.details","typeLabel":"object[] | null"},"target":{"type":"string","uniqueKey":"error.target","typeLabel":"string"}},"required":["code","message"],"type":"object","isRequired":true,"uniqueKey":"error","typeLabel":"object"},"requestId":{"type":"string","isRequired":true,"uniqueKey":"requestId","typeLabel":"string"}},"required":["error","requestId"],"type":"object","uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"error":{"code":"\u003cstring>","message":"\u003cstring>","details":[{"code":"\u003cstring>","message":"\u003cstring>","target":"\u003cstring>"}],"target":"\u003cstring>"},"requestId":"\u003cstring>"}}},"exampleType":"generated"}},"exampleType":"generated"},"cac37626-3d8a-4059-984d-ce5980df31fd":{"description":"Unauthorized","content":{"application/json":{"schema":{"type":"object","description":"Error envelope returned by the authentication layer in front of the `api.cloudtalk.io/v1` surface. It differs from the per-service error shapes used for other statuses.","properties":{"code":{"type":"string","description":"Error code","example":"UNAUTHORIZED","isRequired":true,"uniqueKey":"code","typeLabel":"string"},"message":{"type":"string","description":"Error message","example":"You are not authorized to access this resource.","isRequired":true,"uniqueKey":"message","typeLabel":"string"}},"required":["code","message"],"uniqueKey":"","typeLabel":"object"},"example":{"code":"UNAUTHORIZED","message":"You are not authorized to access this resource."},"examples":{"Example":{"title":"Example","value":{"code":"UNAUTHORIZED","message":"You are not authorized to access this resource."}}},"exampleType":"examples"}},"exampleType":"examples"},"4abd59cd-71e6-4629-83aa-f1cae3dff5fa":{"description":"A step type is not in your plan, or its feature is off (code CALL_FLOWS.STEP_TYPE_NOT_IN_PLAN, `target` points at the step). Or your CloudTalk account is not active, for example a trial that ended (code FORBIDDEN).","content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"error":{"additionalProperties":false,"properties":{"code":{"type":"string","isRequired":true,"uniqueKey":"error.code","typeLabel":"string"},"message":{"type":"string","isRequired":true,"uniqueKey":"error.message","typeLabel":"string"},"details":{"oneOf":[{"items":{"additionalProperties":false,"properties":{"code":{"type":"string","isRequired":true,"uniqueKey":"error.details.oneOf.0.items.[INDEX].code","typeLabel":"string"},"message":{"type":"string","isRequired":true,"uniqueKey":"error.details.oneOf.0.items.[INDEX].message","typeLabel":"string"},"target":{"type":"string","uniqueKey":"error.details.oneOf.0.items.[INDEX].target","typeLabel":"string"}},"required":["code","message"],"type":"object","uniqueKey":"error.details.oneOf.0.items.[INDEX]","typeLabel":"object"},"type":"array","uniqueKey":"error.details.oneOf.0","typeLabel":"object[]"},{"items":{"additionalProperties":false,"properties":{"code":{"type":"string"},"message":{"type":"string"},"target":{"type":"string"}},"required":["code","message"],"type":"object"},"type":"null","uniqueKey":"error.details.oneOf.1","typeLabel":"null"}],"uniqueKey":"error.details","typeLabel":"object[] | null"},"target":{"type":"string","uniqueKey":"error.target","typeLabel":"string"}},"required":["code","message"],"type":"object","isRequired":true,"uniqueKey":"error","typeLabel":"object"},"requestId":{"type":"string","isRequired":true,"uniqueKey":"requestId","typeLabel":"string"}},"required":["error","requestId"],"type":"object","uniqueKey":"","typeLabel":"object"},"example":{"error":{"code":"CALL_FLOWS.STEP_TYPE_NOT_IN_PLAN","message":"The jumpTo step is not in your plan.","target":"/steps/2"},"requestId":"c41f0a9e2b"},"examples":{"Example":{"title":"Example","value":{"error":{"code":"CALL_FLOWS.STEP_TYPE_NOT_IN_PLAN","message":"The jumpTo step is not in your plan.","target":"/steps/2"},"requestId":"c41f0a9e2b"}}},"exampleType":"examples"}},"exampleType":"examples"},"2e086f9f-dd58-4468-b17b-ee8796ba9625":{"description":"No number with this id in your account (code CALL_FLOWS.NUMBER_NOT_FOUND). An unknown id, a malformed id and another account's id get the same answer.","content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"error":{"additionalProperties":false,"properties":{"code":{"type":"string","isRequired":true,"uniqueKey":"error.code","typeLabel":"string"},"message":{"type":"string","isRequired":true,"uniqueKey":"error.message","typeLabel":"string"},"details":{"oneOf":[{"items":{"additionalProperties":false,"properties":{"code":{"type":"string","isRequired":true,"uniqueKey":"error.details.oneOf.0.items.[INDEX].code","typeLabel":"string"},"message":{"type":"string","isRequired":true,"uniqueKey":"error.details.oneOf.0.items.[INDEX].message","typeLabel":"string"},"target":{"type":"string","uniqueKey":"error.details.oneOf.0.items.[INDEX].target","typeLabel":"string"}},"required":["code","message"],"type":"object","uniqueKey":"error.details.oneOf.0.items.[INDEX]","typeLabel":"object"},"type":"array","uniqueKey":"error.details.oneOf.0","typeLabel":"object[]"},{"items":{"additionalProperties":false,"properties":{"code":{"type":"string"},"message":{"type":"string"},"target":{"type":"string"}},"required":["code","message"],"type":"object"},"type":"null","uniqueKey":"error.details.oneOf.1","typeLabel":"null"}],"uniqueKey":"error.details","typeLabel":"object[] | null"},"target":{"type":"string","uniqueKey":"error.target","typeLabel":"string"}},"required":["code","message"],"type":"object","isRequired":true,"uniqueKey":"error","typeLabel":"object"},"requestId":{"type":"string","isRequired":true,"uniqueKey":"requestId","typeLabel":"string"}},"required":["error","requestId"],"type":"object","uniqueKey":"","typeLabel":"object"},"example":{"error":{"code":"CALL_FLOWS.NUMBER_NOT_FOUND","message":"No number with this id in your account."},"requestId":"c41f0a9e2b"},"examples":{"Example":{"title":"Example","value":{"error":{"code":"CALL_FLOWS.NUMBER_NOT_FOUND","message":"No number with this id in your account."},"requestId":"c41f0a9e2b"}}},"exampleType":"examples"}},"exampleType":"examples"},"70b0ff25-ccaa-46e8-a861-3f03458dd073":{"description":"The number has no routing record (code CALL_FLOWS.NUMBER_NOT_READY). Contact support.","content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"error":{"additionalProperties":false,"properties":{"code":{"type":"string","isRequired":true,"uniqueKey":"error.code","typeLabel":"string"},"message":{"type":"string","isRequired":true,"uniqueKey":"error.message","typeLabel":"string"},"details":{"oneOf":[{"items":{"additionalProperties":false,"properties":{"code":{"type":"string","isRequired":true,"uniqueKey":"error.details.oneOf.0.items.[INDEX].code","typeLabel":"string"},"message":{"type":"string","isRequired":true,"uniqueKey":"error.details.oneOf.0.items.[INDEX].message","typeLabel":"string"},"target":{"type":"string","uniqueKey":"error.details.oneOf.0.items.[INDEX].target","typeLabel":"string"}},"required":["code","message"],"type":"object","uniqueKey":"error.details.oneOf.0.items.[INDEX]","typeLabel":"object"},"type":"array","uniqueKey":"error.details.oneOf.0","typeLabel":"object[]"},{"items":{"additionalProperties":false,"properties":{"code":{"type":"string"},"message":{"type":"string"},"target":{"type":"string"}},"required":["code","message"],"type":"object"},"type":"null","uniqueKey":"error.details.oneOf.1","typeLabel":"null"}],"uniqueKey":"error.details","typeLabel":"object[] | null"},"target":{"type":"string","uniqueKey":"error.target","typeLabel":"string"}},"required":["code","message"],"type":"object","isRequired":true,"uniqueKey":"error","typeLabel":"object"},"requestId":{"type":"string","isRequired":true,"uniqueKey":"requestId","typeLabel":"string"}},"required":["error","requestId"],"type":"object","uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"error":{"code":"\u003cstring>","message":"\u003cstring>","details":[{"code":"\u003cstring>","message":"\u003cstring>","target":"\u003cstring>"}],"target":"\u003cstring>"},"requestId":"\u003cstring>"}}},"exampleType":"generated"}},"exampleType":"generated"},"04622dbf-dffd-425d-86f3-051a138ffe72":{"description":"The flow's steps differ from the read whose `ETag` you sent (code CALL_FLOWS.ETAG_MISMATCH). Read the flow again, apply your change to it, and retry with its new `ETag`.","content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"error":{"additionalProperties":false,"properties":{"code":{"type":"string","isRequired":true,"uniqueKey":"error.code","typeLabel":"string"},"message":{"type":"string","isRequired":true,"uniqueKey":"error.message","typeLabel":"string"},"details":{"oneOf":[{"items":{"additionalProperties":false,"properties":{"code":{"type":"string","isRequired":true,"uniqueKey":"error.details.oneOf.0.items.[INDEX].code","typeLabel":"string"},"message":{"type":"string","isRequired":true,"uniqueKey":"error.details.oneOf.0.items.[INDEX].message","typeLabel":"string"},"target":{"type":"string","uniqueKey":"error.details.oneOf.0.items.[INDEX].target","typeLabel":"string"}},"required":["code","message"],"type":"object","uniqueKey":"error.details.oneOf.0.items.[INDEX]","typeLabel":"object"},"type":"array","uniqueKey":"error.details.oneOf.0","typeLabel":"object[]"},{"items":{"additionalProperties":false,"properties":{"code":{"type":"string"},"message":{"type":"string"},"target":{"type":"string"}},"required":["code","message"],"type":"object"},"type":"null","uniqueKey":"error.details.oneOf.1","typeLabel":"null"}],"uniqueKey":"error.details","typeLabel":"object[] | null"},"target":{"type":"string","uniqueKey":"error.target","typeLabel":"string"}},"required":["code","message"],"type":"object","isRequired":true,"uniqueKey":"error","typeLabel":"object"},"requestId":{"type":"string","isRequired":true,"uniqueKey":"requestId","typeLabel":"string"}},"required":["error","requestId"],"type":"object","uniqueKey":"","typeLabel":"object"},"example":{"error":{"code":"CALL_FLOWS.ETAG_MISMATCH","message":"The flow changed since your read. Read it again, reapply your change and retry.","target":"If-Match"},"requestId":"c41f0a9e2b"},"examples":{"Example":{"title":"Example","value":{"error":{"code":"CALL_FLOWS.ETAG_MISMATCH","message":"The flow changed since your read. Read it again, reapply your change and retry.","target":"If-Match"},"requestId":"c41f0a9e2b"}}},"exampleType":"examples"}},"exampleType":"examples"},"eda5c882-4e6d-4fa4-86cf-0d848ed10341":{"description":"The body is over 1 MiB, 1,048,576 bytes (code VALIDATION.INVALID_BODY).","content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"error":{"additionalProperties":false,"properties":{"code":{"type":"string","isRequired":true,"uniqueKey":"error.code","typeLabel":"string"},"message":{"type":"string","isRequired":true,"uniqueKey":"error.message","typeLabel":"string"},"details":{"oneOf":[{"items":{"additionalProperties":false,"properties":{"code":{"type":"string","isRequired":true,"uniqueKey":"error.details.oneOf.0.items.[INDEX].code","typeLabel":"string"},"message":{"type":"string","isRequired":true,"uniqueKey":"error.details.oneOf.0.items.[INDEX].message","typeLabel":"string"},"target":{"type":"string","uniqueKey":"error.details.oneOf.0.items.[INDEX].target","typeLabel":"string"}},"required":["code","message"],"type":"object","uniqueKey":"error.details.oneOf.0.items.[INDEX]","typeLabel":"object"},"type":"array","uniqueKey":"error.details.oneOf.0","typeLabel":"object[]"},{"items":{"additionalProperties":false,"properties":{"code":{"type":"string"},"message":{"type":"string"},"target":{"type":"string"}},"required":["code","message"],"type":"object"},"type":"null","uniqueKey":"error.details.oneOf.1","typeLabel":"null"}],"uniqueKey":"error.details","typeLabel":"object[] | null"},"target":{"type":"string","uniqueKey":"error.target","typeLabel":"string"}},"required":["code","message"],"type":"object","isRequired":true,"uniqueKey":"error","typeLabel":"object"},"requestId":{"type":"string","isRequired":true,"uniqueKey":"requestId","typeLabel":"string"}},"required":["error","requestId"],"type":"object","uniqueKey":"","typeLabel":"object"},"example":{"error":{"code":"VALIDATION.INVALID_BODY","message":"Request body is too large."},"requestId":"8c1f4a2e60"},"examples":{"Example":{"title":"Example","value":{"error":{"code":"VALIDATION.INVALID_BODY","message":"Request body is too large."},"requestId":"8c1f4a2e60"}}},"exampleType":"examples"}},"exampleType":"examples"},"aff2cdc8-f815-4c89-bb60-c90dc8f7850e":{"description":"The body is not declared `application/json` (code UNSUPPORTED_MEDIA_TYPE).","content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"error":{"additionalProperties":false,"properties":{"code":{"type":"string","isRequired":true,"uniqueKey":"error.code","typeLabel":"string"},"message":{"type":"string","isRequired":true,"uniqueKey":"error.message","typeLabel":"string"},"details":{"oneOf":[{"items":{"additionalProperties":false,"properties":{"code":{"type":"string","isRequired":true,"uniqueKey":"error.details.oneOf.0.items.[INDEX].code","typeLabel":"string"},"message":{"type":"string","isRequired":true,"uniqueKey":"error.details.oneOf.0.items.[INDEX].message","typeLabel":"string"},"target":{"type":"string","uniqueKey":"error.details.oneOf.0.items.[INDEX].target","typeLabel":"string"}},"required":["code","message"],"type":"object","uniqueKey":"error.details.oneOf.0.items.[INDEX]","typeLabel":"object"},"type":"array","uniqueKey":"error.details.oneOf.0","typeLabel":"object[]"},{"items":{"additionalProperties":false,"properties":{"code":{"type":"string"},"message":{"type":"string"},"target":{"type":"string"}},"required":["code","message"],"type":"object"},"type":"null","uniqueKey":"error.details.oneOf.1","typeLabel":"null"}],"uniqueKey":"error.details","typeLabel":"object[] | null"},"target":{"type":"string","uniqueKey":"error.target","typeLabel":"string"}},"required":["code","message"],"type":"object","isRequired":true,"uniqueKey":"error","typeLabel":"object"},"requestId":{"type":"string","isRequired":true,"uniqueKey":"requestId","typeLabel":"string"}},"required":["error","requestId"],"type":"object","uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"error":{"code":"\u003cstring>","message":"\u003cstring>","details":[{"code":"\u003cstring>","message":"\u003cstring>","target":"\u003cstring>"}],"target":"\u003cstring>"},"requestId":"\u003cstring>"}}},"exampleType":"generated"}},"exampleType":"generated"},"976b2e04-ceab-4523-9588-8514f129d6d6":{"description":"The document breaks a rule; `target` is a JSON pointer into it, and `error.details` lists each problem when there are several. A field is missing, has the wrong type or value, is longer than its `maxLength` or has more items than its `maxItems`, or `steps` is empty or over 200 in the whole flow (code VALIDATION.INVALID_FIELD). A step whose stored settings would be over 64 KB is refused at that step (code VALIDATION.INVALID_FIELD, `target` the step). A draft (`draft=true`) whose stored copy would be over 15 MiB is refused at `/steps` (code VALIDATION.INVALID_FIELD). An `id` is not a step of this number's flow (code CALL_FLOWS.UNKNOWN_STEP_ID). The same `id` or `ref` appears twice (code CALL_FLOWS.DUPLICATE_STEP). A `target`, condition step or `{{input[...]}}` names no step, or the wrong kind of step (code CALL_FLOWS.UNKNOWN_REFERENCE). A user, group, sound, voicemail box, contact tag or contact field is not in your account (codes CALL_FLOWS.UNKNOWN_USER, CALL_FLOWS.UNKNOWN_GROUP, CALL_FLOWS.UNKNOWN_SOUND, CALL_FLOWS.UNKNOWN_VOICEMAIL_BOX, CALL_FLOWS.UNKNOWN_CONTACT_TAG, CALL_FLOWS.UNKNOWN_CONTACT_FIELD). The voice agent does not exist, or is not an inbound agent (code CALL_FLOWS.UNKNOWN_VOICE_AGENT). A sound failed to convert and cannot play (code CALL_FLOWS.SOUND_FAILED). A Fax step is not the only step, a step follows one that ends its array, a step after Voicemail or on an answered branch is a kind that would never run there, or a ring step follows Voicemail (code CALL_FLOWS.STEP_NOT_ALLOWED_HERE). A ring or redirect step has `onNoAnswer` steps but no `ringSeconds` (code CALL_FLOWS.RING_SECONDS_REQUIRED; the message suggests a value). A kept step changed type; ring types may switch among themselves (code CALL_FLOWS.STEP_TYPE_CHANGED). A Jump to targets another Jump to (code CALL_FLOWS.JUMP_TO_JUMP). A Jump to loop has no step that waits for the caller (code CALL_FLOWS.LOOP_WITHOUT_WAIT). A new HTTP Request header has no `value` (code CALL_FLOWS.HEADER_VALUE_REQUIRED). The body contains an `unsupported` step (code CALL_FLOWS.UNSUPPORTED_STEP_TYPE).","content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"error":{"additionalProperties":false,"properties":{"code":{"type":"string","isRequired":true,"uniqueKey":"error.code","typeLabel":"string"},"message":{"type":"string","isRequired":true,"uniqueKey":"error.message","typeLabel":"string"},"details":{"oneOf":[{"items":{"additionalProperties":false,"properties":{"code":{"type":"string","isRequired":true,"uniqueKey":"error.details.oneOf.0.items.[INDEX].code","typeLabel":"string"},"message":{"type":"string","isRequired":true,"uniqueKey":"error.details.oneOf.0.items.[INDEX].message","typeLabel":"string"},"target":{"type":"string","uniqueKey":"error.details.oneOf.0.items.[INDEX].target","typeLabel":"string"}},"required":["code","message"],"type":"object","uniqueKey":"error.details.oneOf.0.items.[INDEX]","typeLabel":"object"},"type":"array","uniqueKey":"error.details.oneOf.0","typeLabel":"object[]"},{"items":{"additionalProperties":false,"properties":{"code":{"type":"string"},"message":{"type":"string"},"target":{"type":"string"}},"required":["code","message"],"type":"object"},"type":"null","uniqueKey":"error.details.oneOf.1","typeLabel":"null"}],"uniqueKey":"error.details","typeLabel":"object[] | null"},"target":{"type":"string","uniqueKey":"error.target","typeLabel":"string"}},"required":["code","message"],"type":"object","isRequired":true,"uniqueKey":"error","typeLabel":"object"},"requestId":{"type":"string","isRequired":true,"uniqueKey":"requestId","typeLabel":"string"}},"required":["error","requestId"],"type":"object","uniqueKey":"","typeLabel":"object"},"example":{"error":{"code":"CALL_FLOWS.UNKNOWN_GROUP","message":"Group 568 is not in your account.","target":"/steps/3/otherwise/0/groupId","details":[{"code":"CALL_FLOWS.UNKNOWN_GROUP","message":"Group 568 is not in your account.","target":"/steps/3/otherwise/0/groupId"},{"code":"CALL_FLOWS.RING_SECONDS_REQUIRED","message":"Set ringSeconds, or the onNoAnswer steps never run. 30 seconds suits most calls.","target":"/steps/5"}]},"requestId":"c41f0a9e2b"},"examples":{"Example":{"title":"Example","value":{"error":{"code":"CALL_FLOWS.UNKNOWN_GROUP","message":"Group 568 is not in your account.","target":"/steps/3/otherwise/0/groupId","details":[{"code":"CALL_FLOWS.UNKNOWN_GROUP","message":"Group 568 is not in your account.","target":"/steps/3/otherwise/0/groupId"},{"code":"CALL_FLOWS.RING_SECONDS_REQUIRED","message":"Set ringSeconds, or the onNoAnswer steps never run. 30 seconds suits most calls.","target":"/steps/5"}]},"requestId":"c41f0a9e2b"}}},"exampleType":"examples"}},"exampleType":"examples"},"7a4f3b28-57bc-428f-9193-c8975e31acbc":{"description":"`If-Match` is missing, or is `*` (code CALL_FLOWS.IF_MATCH_REQUIRED).","content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"error":{"additionalProperties":false,"properties":{"code":{"type":"string","isRequired":true,"uniqueKey":"error.code","typeLabel":"string"},"message":{"type":"string","isRequired":true,"uniqueKey":"error.message","typeLabel":"string"},"details":{"oneOf":[{"items":{"additionalProperties":false,"properties":{"code":{"type":"string","isRequired":true,"uniqueKey":"error.details.oneOf.0.items.[INDEX].code","typeLabel":"string"},"message":{"type":"string","isRequired":true,"uniqueKey":"error.details.oneOf.0.items.[INDEX].message","typeLabel":"string"},"target":{"type":"string","uniqueKey":"error.details.oneOf.0.items.[INDEX].target","typeLabel":"string"}},"required":["code","message"],"type":"object","uniqueKey":"error.details.oneOf.0.items.[INDEX]","typeLabel":"object"},"type":"array","uniqueKey":"error.details.oneOf.0","typeLabel":"object[]"},{"items":{"additionalProperties":false,"properties":{"code":{"type":"string"},"message":{"type":"string"},"target":{"type":"string"}},"required":["code","message"],"type":"object"},"type":"null","uniqueKey":"error.details.oneOf.1","typeLabel":"null"}],"uniqueKey":"error.details","typeLabel":"object[] | null"},"target":{"type":"string","uniqueKey":"error.target","typeLabel":"string"}},"required":["code","message"],"type":"object","isRequired":true,"uniqueKey":"error","typeLabel":"object"},"requestId":{"type":"string","isRequired":true,"uniqueKey":"requestId","typeLabel":"string"}},"required":["error","requestId"],"type":"object","uniqueKey":"","typeLabel":"object"},"example":{"error":{"code":"CALL_FLOWS.IF_MATCH_REQUIRED","message":"Send If-Match with the ETag of your last read of the flow.","target":"If-Match"},"requestId":"c41f0a9e2b"},"examples":{"Example":{"title":"Example","value":{"error":{"code":"CALL_FLOWS.IF_MATCH_REQUIRED","message":"Send If-Match with the ETag of your last read of the flow.","target":"If-Match"},"requestId":"c41f0a9e2b"}}},"exampleType":"examples"}},"exampleType":"examples"},"5b45ba82-d1ef-4343-b3c5-39a7080e9539":{"description":"Too many requests: this company is over the API rate limit (see the Rate limiting guide). The gateway answers before the request reaches the API, so there is no JSON error body; rely on the status and the headers X-CloudTalkAPI-Limit, X-CloudTalkAPI-Remaining and X-CloudTalkAPI-ResetTime.","headers":{"X-CloudTalkAPI-Limit":{"description":"Your company's limit for this product area, in requests per 60-second window.","schema":{"type":"integer"}},"X-CloudTalkAPI-Remaining":{"description":"Requests left in the current window.","schema":{"type":"integer"}},"X-CloudTalkAPI-ResetTime":{"description":"Seconds until the current window resets, for example `10`. Not a Unix timestamp.","schema":{"type":"integer"}}},"content":{"text/plain":{"schema":{"type":"string","description":"Empty or a short plain-text reason from the gateway. Do not parse it.","uniqueKey":"","typeLabel":"string"},"example":"","examples":{"Example":{"title":"Example","value":"\u003cstring>"}},"exampleType":"generated"}},"exampleType":"generated"},"7d84eba9-b196-4dbe-a930-7327be64fa1d":{"description":"Unexpected server error (code INTERNAL). The message is always \"Internal error.\" and never carries upstream detail.","content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"error":{"additionalProperties":false,"properties":{"code":{"type":"string","isRequired":true,"uniqueKey":"error.code","typeLabel":"string"},"message":{"type":"string","isRequired":true,"uniqueKey":"error.message","typeLabel":"string"},"details":{"oneOf":[{"items":{"additionalProperties":false,"properties":{"code":{"type":"string","isRequired":true,"uniqueKey":"error.details.oneOf.0.items.[INDEX].code","typeLabel":"string"},"message":{"type":"string","isRequired":true,"uniqueKey":"error.details.oneOf.0.items.[INDEX].message","typeLabel":"string"},"target":{"type":"string","uniqueKey":"error.details.oneOf.0.items.[INDEX].target","typeLabel":"string"}},"required":["code","message"],"type":"object","uniqueKey":"error.details.oneOf.0.items.[INDEX]","typeLabel":"object"},"type":"array","uniqueKey":"error.details.oneOf.0","typeLabel":"object[]"},{"items":{"additionalProperties":false,"properties":{"code":{"type":"string"},"message":{"type":"string"},"target":{"type":"string"}},"required":["code","message"],"type":"object"},"type":"null","uniqueKey":"error.details.oneOf.1","typeLabel":"null"}],"uniqueKey":"error.details","typeLabel":"object[] | null"},"target":{"type":"string","uniqueKey":"error.target","typeLabel":"string"}},"required":["code","message"],"type":"object","isRequired":true,"uniqueKey":"error","typeLabel":"object"},"requestId":{"type":"string","isRequired":true,"uniqueKey":"requestId","typeLabel":"string"}},"required":["error","requestId"],"type":"object","uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"error":{"code":"\u003cstring>","message":"\u003cstring>","details":[{"code":"\u003cstring>","message":"\u003cstring>","target":"\u003cstring>"}],"target":"\u003cstring>"},"requestId":"\u003cstring>"}}},"exampleType":"generated"}},"exampleType":"generated"},"82680ac8-445e-4c5c-8c08-a1da5b476de8":{"description":"The voice agent service did not answer while a new or changed Voice Agent step was checked (code CALL_FLOWS.UPSTREAM_UNAVAILABLE). Nothing was saved. Retry the request.","content":{"application/json":{"schema":{"additionalProperties":false,"properties":{"error":{"additionalProperties":false,"properties":{"code":{"type":"string","isRequired":true,"uniqueKey":"error.code","typeLabel":"string"},"message":{"type":"string","isRequired":true,"uniqueKey":"error.message","typeLabel":"string"},"details":{"oneOf":[{"items":{"additionalProperties":false,"properties":{"code":{"type":"string","isRequired":true,"uniqueKey":"error.details.oneOf.0.items.[INDEX].code","typeLabel":"string"},"message":{"type":"string","isRequired":true,"uniqueKey":"error.details.oneOf.0.items.[INDEX].message","typeLabel":"string"},"target":{"type":"string","uniqueKey":"error.details.oneOf.0.items.[INDEX].target","typeLabel":"string"}},"required":["code","message"],"type":"object","uniqueKey":"error.details.oneOf.0.items.[INDEX]","typeLabel":"object"},"type":"array","uniqueKey":"error.details.oneOf.0","typeLabel":"object[]"},{"items":{"additionalProperties":false,"properties":{"code":{"type":"string"},"message":{"type":"string"},"target":{"type":"string"}},"required":["code","message"],"type":"object"},"type":"null","uniqueKey":"error.details.oneOf.1","typeLabel":"null"}],"uniqueKey":"error.details","typeLabel":"object[] | null"},"target":{"type":"string","uniqueKey":"error.target","typeLabel":"string"}},"required":["code","message"],"type":"object","isRequired":true,"uniqueKey":"error","typeLabel":"object"},"requestId":{"type":"string","isRequired":true,"uniqueKey":"requestId","typeLabel":"string"}},"required":["error","requestId"],"type":"object","uniqueKey":"","typeLabel":"object"},"examples":{"Example":{"title":"Example","value":{"error":{"code":"\u003cstring>","message":"\u003cstring>","details":[{"code":"\u003cstring>","message":"\u003cstring>","target":"\u003cstring>"}],"target":"\u003cstring>"},"requestId":"\u003cstring>"}}},"exampleType":"generated"}},"exampleType":"generated"}},"security":{"fb8f040b-d777-4598-a42b-217a477e9e95":{"basicAuth":{"type":"http","scheme":"basic","description":"HTTP Basic Authentication. Use your API Access Key ID as the username and your API Access Key Secret as the password. Generate keys in the CloudTalk Dashboard under Account -> Settings -> API Keys (https://dashboard.cloudtalk.io/menu/account/settings/API-keys).","scopes":[],"schemeName":"basicAuth"}}},"servers":{"c68bc1a6-7d01-4daf-aa42-04461084c48e":{"url":"https://api.cloudtalk.io/v1"}},"schemas":{"855dd704-1e29-4d7c-a188-217e7e2b4a07":{"oneOf":[{"type":"object","title":"Ring user","description":"One step of a call flow. `type` picks its fields. A step that branches, or that ends the call, is the last in its array. A branch is an array of steps with the same rules.","required":["type"],"properties":{"type":{"type":"string","enum":["ringUser"],"isRequired":true},"id":{"type":"string","pattern":"^[1-9][0-9]*$","description":"The stored step id. Send it to keep and update this step; omit it for a new step. It must be a step of this number's flow.","example":"5001"},"ref":{"type":"string","pattern":"^[a-z][a-z0-9_-]{0,39}$","description":"New steps only, optional. Your label for this step, so that other steps of the same document can point at it. Unique in the document. Echoed in the response to the save, not stored.","example":"ask-order"},"name":{"oneOf":[{"type":"string","description":"Optional label shown in the Dashboard designer, up to 100 characters.","maxLength":100},{"type":"null","description":"Optional label shown in the Dashboard designer, up to 100 characters.","maxLength":100}]},"userId":{"oneOf":[{"type":"string","description":"A user of your account. On a read it is `null` when what it pointed at no longer exists, and `problems` has `DANGLING_REFERENCE`.","pattern":"^[1-9][0-9]*$","example":"7"},{"type":"null","description":"A user of your account. On a read it is `null` when what it pointed at no longer exists, and `problems` has `DANGLING_REFERENCE`.","pattern":"^[1-9][0-9]*$","example":"7"}]},"userIdVariable":{"type":"string","minLength":1,"maxLength":255,"description":"A template such as `{{input[ask-agent]}}` that resolves to a user id at call time."},"ringSeconds":{"oneOf":[{"type":"integer","description":"1 or more. Required when `onNoAnswer` has steps: without it the save is `422 CALL_FLOWS.RING_SECONDS_REQUIRED`, whose message suggests 30. Otherwise optional, with no default: left out, the phone rings until someone answers or the caller hangs up, as in a flow saved in the Dashboard.","minimum":1},{"type":"null","description":"1 or more. Required when `onNoAnswer` has steps: without it the save is `422 CALL_FLOWS.RING_SECONDS_REQUIRED`, whose message suggests 30. Otherwise optional, with no default: left out, the phone rings until someone answers or the caller hangs up, as in a flow saved in the Dashboard.","minimum":1}]},"onAnswered":{"type":"array","items":{"$circularRef":"855dd704-1e29-4d7c-a188-217e7e2b4a07"},"description":"Runs after the call was answered and ended. Ring, Voice Agent, Fax, Voicemail, Call recording, Redirect, Dial by Extension and Change of caller steps are not allowed here."},"onNoAnswer":{"type":"array","items":{"$circularRef":"855dd704-1e29-4d7c-a188-217e7e2b4a07"},"description":"Runs when nobody answered within `ringSeconds`."},"userName":{"oneOf":[{"type":"string","description":"Only with `include=names`: the user's name, or `null` when it no longer resolves. Read-only: it may be sent back and is ignored."},{"type":"null","description":"Only with `include=names`: the user's name, or `null` when it no longer resolves. Read-only: it may be sent back and is ignored."}]}},"additionalProperties":false},{"type":"object","title":"Ring favorite user","description":"One step of a call flow. `type` picks its fields. A step that branches, or that ends the call, is the last in its array. A branch is an array of steps with the same rules.","required":["type"],"properties":{"type":{"type":"string","enum":["ringFavoriteUser"],"isRequired":true},"id":{"type":"string","pattern":"^[1-9][0-9]*$","description":"The stored step id. Send it to keep and update this step; omit it for a new step. It must be a step of this number's flow.","example":"5001"},"ref":{"type":"string","pattern":"^[a-z][a-z0-9_-]{0,39}$","description":"New steps only, optional. Your label for this step, so that other steps of the same document can point at it. Unique in the document. Echoed in the response to the save, not stored.","example":"ask-order"},"name":{"oneOf":[{"type":"string","description":"Optional label shown in the Dashboard designer, up to 100 characters.","maxLength":100},{"type":"null","description":"Optional label shown in the Dashboard designer, up to 100 characters.","maxLength":100}]},"ringSeconds":{"oneOf":[{"type":"integer","description":"1 or more. Required when `onNoAnswer` has steps: without it the save is `422 CALL_FLOWS.RING_SECONDS_REQUIRED`, whose message suggests 30. Otherwise optional, with no default: left out, the phone rings until someone answers or the caller hangs up, as in a flow saved in the Dashboard.","minimum":1},{"type":"null","description":"1 or more. Required when `onNoAnswer` has steps: without it the save is `422 CALL_FLOWS.RING_SECONDS_REQUIRED`, whose message suggests 30. Otherwise optional, with no default: left out, the phone rings until someone answers or the caller hangs up, as in a flow saved in the Dashboard.","minimum":1}]},"onAnswered":{"type":"array","items":{"$circularRef":"855dd704-1e29-4d7c-a188-217e7e2b4a07"},"description":"Runs after the call was answered and ended. Ring, Voice Agent, Fax, Voicemail, Call recording, Redirect, Dial by Extension and Change of caller steps are not allowed here."},"onNoAnswer":{"type":"array","items":{"$circularRef":"855dd704-1e29-4d7c-a188-217e7e2b4a07"},"description":"Runs when nobody answered within `ringSeconds`."}},"additionalProperties":false},{"type":"object","title":"Ring group","description":"One step of a call flow. `type` picks its fields. A step that branches, or that ends the call, is the last in its array. A branch is an array of steps with the same rules.","required":["type"],"properties":{"type":{"type":"string","enum":["ringGroup"],"isRequired":true},"id":{"type":"string","pattern":"^[1-9][0-9]*$","description":"The stored step id. Send it to keep and update this step; omit it for a new step. It must be a step of this number's flow.","example":"5001"},"ref":{"type":"string","pattern":"^[a-z][a-z0-9_-]{0,39}$","description":"New steps only, optional. Your label for this step, so that other steps of the same document can point at it. Unique in the document. Echoed in the response to the save, not stored.","example":"ask-order"},"name":{"oneOf":[{"type":"string","description":"Optional label shown in the Dashboard designer, up to 100 characters.","maxLength":100},{"type":"null","description":"Optional label shown in the Dashboard designer, up to 100 characters.","maxLength":100}]},"groupId":{"oneOf":[{"type":"string","description":"The group id, as the Groups API keys it (not the group's queue number). On a read it is `null` when what it pointed at no longer exists, and `problems` has `DANGLING_REFERENCE`.","pattern":"^[1-9][0-9]*$","example":"611"},{"type":"null","description":"The group id, as the Groups API keys it (not the group's queue number). On a read it is `null` when what it pointed at no longer exists, and `problems` has `DANGLING_REFERENCE`.","pattern":"^[1-9][0-9]*$","example":"611"}]},"groupVariable":{"type":"string","minLength":1,"maxLength":255,"description":"A template that resolves to the group's queue number at call time, not its id."},"ringSeconds":{"oneOf":[{"type":"integer","description":"1 or more. Required when `onNoAnswer` has steps: without it the save is `422 CALL_FLOWS.RING_SECONDS_REQUIRED`, whose message names the minimum: the group's per-agent timeout plus 10 seconds, at least 20. Otherwise optional, with no default: left out, the caller waits in the group's queue until someone answers or hangs up, as in the Dashboard. A value below the minimum is a warning, `RING_TIME_BELOW_GROUP_MINIMUM`.","minimum":1},{"type":"null","description":"1 or more. Required when `onNoAnswer` has steps: without it the save is `422 CALL_FLOWS.RING_SECONDS_REQUIRED`, whose message names the minimum: the group's per-agent timeout plus 10 seconds, at least 20. Otherwise optional, with no default: left out, the caller waits in the group's queue until someone answers or hangs up, as in the Dashboard. A value below the minimum is a warning, `RING_TIME_BELOW_GROUP_MINIMUM`.","minimum":1}]},"onAnswered":{"type":"array","items":{"$circularRef":"855dd704-1e29-4d7c-a188-217e7e2b4a07"},"description":"Runs after the call was answered and ended. Ring, Voice Agent, Fax, Voicemail, Call recording, Redirect, Dial by Extension and Change of caller steps are not allowed here."},"onNoAnswer":{"type":"array","items":{"$circularRef":"855dd704-1e29-4d7c-a188-217e7e2b4a07"},"description":"Runs when nobody answered within `ringSeconds`."},"groupName":{"oneOf":[{"type":"string","description":"Only with `include=names`: the group's name, or `null` when it no longer resolves. Read-only: it may be sent back and is ignored."},{"type":"null","description":"Only with `include=names`: the group's name, or `null` when it no longer resolves. Read-only: it may be sent back and is ignored."}]}},"additionalProperties":false},{"type":"object","title":"Voice agent","description":"One step of a call flow. `type` picks its fields. A step that branches, or that ends the call, is the last in its array. A branch is an array of steps with the same rules.","required":["type","voiceAgentId"],"properties":{"type":{"type":"string","enum":["voiceAgent"],"isRequired":true},"voiceAgentId":{"oneOf":[{"type":"string","description":"Required. The `id` that [List voice agents](/api-reference/voiceagent/list-voice-agents) returns, a 24-character hex id. Must be an inbound voice agent of your account that can take calls, else `422 CALL_FLOWS.UNKNOWN_VOICE_AGENT`; checked when the step is new or changed. On a read it is `null` when the agent no longer exists (problem `DANGLING_REFERENCE`) or could not be looked up (problem `VOICE_AGENT_LOOKUP_FAILED`).","pattern":"^[0-9a-f]{24}$","example":"674b87da2a8347e6682cca8d","isRequired":true},{"type":"null","description":"Required. The `id` that [List voice agents](/api-reference/voiceagent/list-voice-agents) returns, a 24-character hex id. Must be an inbound voice agent of your account that can take calls, else `422 CALL_FLOWS.UNKNOWN_VOICE_AGENT`; checked when the step is new or changed. On a read it is `null` when the agent no longer exists (problem `DANGLING_REFERENCE`) or could not be looked up (problem `VOICE_AGENT_LOOKUP_FAILED`).","pattern":"^[0-9a-f]{24}$","example":"674b87da2a8347e6682cca8d","isRequired":true}],"isRequired":true},"id":{"type":"string","pattern":"^[1-9][0-9]*$","description":"The stored step id. Send it to keep and update this step; omit it for a new step. It must be a step of this number's flow.","example":"5001"},"ref":{"type":"string","pattern":"^[a-z][a-z0-9_-]{0,39}$","description":"New steps only, optional. Your label for this step, so that other steps of the same document can point at it. Unique in the document. Echoed in the response to the save, not stored.","example":"ask-order"},"name":{"oneOf":[{"type":"string","description":"Optional label shown in the Dashboard designer, up to 100 characters.","maxLength":100},{"type":"null","description":"Optional label shown in the Dashboard designer, up to 100 characters.","maxLength":100}]},"onAnswered":{"type":"array","items":{"$circularRef":"855dd704-1e29-4d7c-a188-217e7e2b4a07"},"description":"Runs after the voice agent handled the call. Any step may follow, ring steps included."},"onNoAnswer":{"type":"array","items":{"$circularRef":"855dd704-1e29-4d7c-a188-217e7e2b4a07"},"description":"Runs when the voice agent did not take the call."},"voiceAgentName":{"oneOf":[{"type":"string","description":"Only with `include=names`: the voice agent's name, or `null` when it no longer resolves. Read-only: it may be sent back and is ignored."},{"type":"null","description":"Only with `include=names`: the voice agent's name, or `null` when it no longer resolves. Read-only: it may be sent back and is ignored."}]}},"additionalProperties":false},{"type":"object","title":"Playback","description":"One step of a call flow. `type` picks its fields. A step that branches, or that ends the call, is the last in its array. A branch is an array of steps with the same rules.","required":["type","soundId"],"properties":{"type":{"type":"string","enum":["playback"],"isRequired":true},"soundId":{"oneOf":[{"type":"string","description":"Required. A sound of your account, or a CloudTalk default sound, from [List sounds](/api-reference/sounds/list-sounds). On a read it is `null` when what it pointed at no longer exists, and `problems` has `DANGLING_REFERENCE`.","pattern":"^[1-9][0-9]*$","example":"79","isRequired":true},{"type":"null","description":"Required. A sound of your account, or a CloudTalk default sound, from [List sounds](/api-reference/sounds/list-sounds). On a read it is `null` when what it pointed at no longer exists, and `problems` has `DANGLING_REFERENCE`.","pattern":"^[1-9][0-9]*$","example":"79","isRequired":true}],"isRequired":true},"id":{"type":"string","pattern":"^[1-9][0-9]*$","description":"The stored step id. Send it to keep and update this step; omit it for a new step. It must be a step of this number's flow.","example":"5001"},"ref":{"type":"string","pattern":"^[a-z][a-z0-9_-]{0,39}$","description":"New steps only, optional. Your label for this step, so that other steps of the same document can point at it. Unique in the document. Echoed in the response to the save, not stored.","example":"ask-order"},"name":{"oneOf":[{"type":"string","description":"Optional label shown in the Dashboard designer, up to 100 characters.","maxLength":100},{"type":"null","description":"Optional label shown in the Dashboard designer, up to 100 characters.","maxLength":100}]},"soundName":{"oneOf":[{"type":"string","description":"Only with `include=names`: the sound's name, or `null` when it no longer resolves. Read-only: it may be sent back and is ignored."},{"type":"null","description":"Only with `include=names`: the sound's name, or `null` when it no longer resolves. Read-only: it may be sent back and is ignored."}]}},"additionalProperties":false},{"type":"object","title":"Voicemail","description":"One step of a call flow. `type` picks its fields. A step that branches, or that ends the call, is the last in its array. A branch is an array of steps with the same rules.","required":["type","emailNotification","attachRecording"],"properties":{"type":{"type":"string","enum":["voicemail"],"isRequired":true},"emailNotification":{"oneOf":[{"type":"string","description":"Required. Whether the message is sent by email: `on`, `off`, or `accountDefault` to follow the account setting. A read shows `null` when the stored step has none; a save needs a value.","enum":["on","off","accountDefault",null],"isRequired":true},{"type":"null","description":"Required. Whether the message is sent by email: `on`, `off`, or `accountDefault` to follow the account setting. A read shows `null` when the stored step has none; a save needs a value.","enum":["on","off","accountDefault",null],"isRequired":true}],"isRequired":true},"attachRecording":{"oneOf":[{"type":"string","description":"Required. Whether the email carries the recording: `on`, `off` or `accountDefault`. A read shows `null` when the stored step has none; a save needs a value.","enum":["on","off","accountDefault",null],"isRequired":true},{"type":"null","description":"Required. Whether the email carries the recording: `on`, `off` or `accountDefault`. A read shows `null` when the stored step has none; a save needs a value.","enum":["on","off","accountDefault",null],"isRequired":true}],"isRequired":true},"id":{"type":"string","pattern":"^[1-9][0-9]*$","description":"The stored step id. Send it to keep and update this step; omit it for a new step. It must be a step of this number's flow.","example":"5001"},"ref":{"type":"string","pattern":"^[a-z][a-z0-9_-]{0,39}$","description":"New steps only, optional. Your label for this step, so that other steps of the same document can point at it. Unique in the document. Echoed in the response to the save, not stored.","example":"ask-order"},"name":{"oneOf":[{"type":"string","description":"Optional label shown in the Dashboard designer, up to 100 characters.","maxLength":100},{"type":"null","description":"Optional label shown in the Dashboard designer, up to 100 characters.","maxLength":100}]},"voicemailBoxId":{"oneOf":[{"type":"string","description":"A voicemail box from [List voicemail boxes](/api-reference/call-flows/list-voicemail-boxes). On a read it is `null` when what it pointed at no longer exists, and `problems` has `DANGLING_REFERENCE`.","pattern":"^[1-9][0-9]*$","example":"88"},{"type":"null","description":"A voicemail box from [List voicemail boxes](/api-reference/call-flows/list-voicemail-boxes). On a read it is `null` when what it pointed at no longer exists, and `problems` has `DANGLING_REFERENCE`.","pattern":"^[1-9][0-9]*$","example":"88"}]},"voicemailBoxVariable":{"type":"string","minLength":1,"maxLength":255,"description":"A template that resolves to a mailbox number at call time."},"voicemailBoxName":{"oneOf":[{"type":"string","description":"Only with `include=names`: the voicemail box's name, or `null` when it no longer resolves. Read-only: it may be sent back and is ignored."},{"type":"null","description":"Only with `include=names`: the voicemail box's name, or `null` when it no longer resolves. Read-only: it may be sent back and is ignored."}]}},"additionalProperties":false},{"type":"object","title":"Redirect","description":"One step of a call flow. `type` picks its fields. A step that branches, or that ends the call, is the last in its array. A branch is an array of steps with the same rules.","required":["type","phoneNumber"],"properties":{"type":{"type":"string","enum":["redirect"],"isRequired":true},"phoneNumber":{"oneOf":[{"type":"string","description":"Required. The number to forward to. Digits, `+`, `*` and `#` only, up to 255 characters. A read shows `null` when the stored step has none; a save needs a value.","maxLength":255,"pattern":"^[0-9+*#]+$","example":"+12025550172","isRequired":true},{"type":"null","description":"Required. The number to forward to. Digits, `+`, `*` and `#` only, up to 255 characters. A read shows `null` when the stored step has none; a save needs a value.","maxLength":255,"pattern":"^[0-9+*#]+$","example":"+12025550172","isRequired":true}],"isRequired":true},"id":{"type":"string","pattern":"^[1-9][0-9]*$","description":"The stored step id. Send it to keep and update this step; omit it for a new step. It must be a step of this number's flow.","example":"5001"},"ref":{"type":"string","pattern":"^[a-z][a-z0-9_-]{0,39}$","description":"New steps only, optional. Your label for this step, so that other steps of the same document can point at it. Unique in the document. Echoed in the response to the save, not stored.","example":"ask-order"},"name":{"oneOf":[{"type":"string","description":"Optional label shown in the Dashboard designer, up to 100 characters.","maxLength":100},{"type":"null","description":"Optional label shown in the Dashboard designer, up to 100 characters.","maxLength":100}]},"ringSeconds":{"oneOf":[{"type":"integer","description":"1 or more. Required when `onNoAnswer` has steps (`422 CALL_FLOWS.RING_SECONDS_REQUIRED`). Otherwise optional, with no default: left out, the forwarded call rings until answered or the caller hangs up, as in the Dashboard.","minimum":1},{"type":"null","description":"1 or more. Required when `onNoAnswer` has steps (`422 CALL_FLOWS.RING_SECONDS_REQUIRED`). Otherwise optional, with no default: left out, the forwarded call rings until answered or the caller hangs up, as in the Dashboard.","minimum":1}]},"onNoAnswer":{"type":"array","items":{"$circularRef":"855dd704-1e29-4d7c-a188-217e7e2b4a07"},"description":"Fallback when the forwarded call is not answered in time."}},"additionalProperties":false},{"type":"object","title":"Call recording","description":"One step of a call flow. `type` picks its fields. A step that branches, or that ends the call, is the last in its array. A branch is an array of steps with the same rules.","required":["type","enabled"],"properties":{"type":{"type":"string","enum":["recording"],"isRequired":true},"enabled":{"type":"boolean","description":"Required. `true` records from here on, `false` stops recording.","isRequired":true},"id":{"type":"string","pattern":"^[1-9][0-9]*$","description":"The stored step id. Send it to keep and update this step; omit it for a new step. It must be a step of this number's flow.","example":"5001"},"ref":{"type":"string","pattern":"^[a-z][a-z0-9_-]{0,39}$","description":"New steps only, optional. Your label for this step, so that other steps of the same document can point at it. Unique in the document. Echoed in the response to the save, not stored.","example":"ask-order"},"name":{"oneOf":[{"type":"string","description":"Optional label shown in the Dashboard designer, up to 100 characters.","maxLength":100},{"type":"null","description":"Optional label shown in the Dashboard designer, up to 100 characters.","maxLength":100}]}},"additionalProperties":false},{"type":"object","title":"Fax","description":"One step of a call flow. `type` picks its fields. A step that branches, or that ends the call, is the last in its array. A branch is an array of steps with the same rules.","required":["type","email"],"properties":{"type":{"type":"string","enum":["fax"],"isRequired":true},"email":{"oneOf":[{"type":"string","description":"Required. A valid email address that receives the faxes, up to 255 characters. A read shows `null` when the stored step has none; a save needs a value.","format":"email","maxLength":255,"isRequired":true},{"type":"null","description":"Required. A valid email address that receives the faxes, up to 255 characters. A read shows `null` when the stored step has none; a save needs a value.","format":"email","maxLength":255,"isRequired":true}],"isRequired":true},"id":{"type":"string","pattern":"^[1-9][0-9]*$","description":"The stored step id. Send it to keep and update this step; omit it for a new step. It must be a step of this number's flow.","example":"5001"},"ref":{"type":"string","pattern":"^[a-z][a-z0-9_-]{0,39}$","description":"New steps only, optional. Your label for this step, so that other steps of the same document can point at it. Unique in the document. Echoed in the response to the save, not stored.","example":"ask-order"},"name":{"oneOf":[{"type":"string","description":"Optional label shown in the Dashboard designer, up to 100 characters.","maxLength":100},{"type":"null","description":"Optional label shown in the Dashboard designer, up to 100 characters.","maxLength":100}]}},"additionalProperties":false},{"type":"object","title":"Change of caller","description":"One step of a call flow. `type` picks its fields. A step that branches, or that ends the call, is the last in its array. A branch is an array of steps with the same rules.","required":["type","phoneNumber"],"properties":{"type":{"type":"string","enum":["changeCallerId"],"isRequired":true},"phoneNumber":{"oneOf":[{"type":"string","description":"Required. The number shown next. Digits, `+`, `*` and `#` only, up to 255 characters. A read shows `null` when the stored step has none; a save needs a value.","maxLength":255,"pattern":"^[0-9+*#]+$","isRequired":true},{"type":"null","description":"Required. The number shown next. Digits, `+`, `*` and `#` only, up to 255 characters. A read shows `null` when the stored step has none; a save needs a value.","maxLength":255,"pattern":"^[0-9+*#]+$","isRequired":true}],"isRequired":true},"id":{"type":"string","pattern":"^[1-9][0-9]*$","description":"The stored step id. Send it to keep and update this step; omit it for a new step. It must be a step of this number's flow.","example":"5001"},"ref":{"type":"string","pattern":"^[a-z][a-z0-9_-]{0,39}$","description":"New steps only, optional. Your label for this step, so that other steps of the same document can point at it. Unique in the document. Echoed in the response to the save, not stored.","example":"ask-order"},"name":{"oneOf":[{"type":"string","description":"Optional label shown in the Dashboard designer, up to 100 characters.","maxLength":100},{"type":"null","description":"Optional label shown in the Dashboard designer, up to 100 characters.","maxLength":100}]}},"additionalProperties":false},{"type":"object","title":"Dial by extension","description":"One step of a call flow. `type` picks its fields. A step that branches, or that ends the call, is the last in its array. A branch is an array of steps with the same rules.","required":["type","soundId"],"properties":{"type":{"type":"string","enum":["dialByExtension"],"isRequired":true},"soundId":{"oneOf":[{"type":"string","description":"Required. The prompt played to the caller. On a read it is `null` when what it pointed at no longer exists, and `problems` has `DANGLING_REFERENCE`.","pattern":"^[1-9][0-9]*$","example":"79","isRequired":true},{"type":"null","description":"Required. The prompt played to the caller. On a read it is `null` when what it pointed at no longer exists, and `problems` has `DANGLING_REFERENCE`.","pattern":"^[1-9][0-9]*$","example":"79","isRequired":true}],"isRequired":true},"id":{"type":"string","pattern":"^[1-9][0-9]*$","description":"The stored step id. Send it to keep and update this step; omit it for a new step. It must be a step of this number's flow.","example":"5001"},"ref":{"type":"string","pattern":"^[a-z][a-z0-9_-]{0,39}$","description":"New steps only, optional. Your label for this step, so that other steps of the same document can point at it. Unique in the document. Echoed in the response to the save, not stored.","example":"ask-order"},"name":{"oneOf":[{"type":"string","description":"Optional label shown in the Dashboard designer, up to 100 characters.","maxLength":100},{"type":"null","description":"Optional label shown in the Dashboard designer, up to 100 characters.","maxLength":100}]},"waitSeconds":{"oneOf":[{"type":"integer","description":"1 or more. How long to wait for the extension.","minimum":1},{"type":"null","description":"1 or more. How long to wait for the extension.","minimum":1}]},"soundName":{"oneOf":[{"type":"string","description":"Only with `include=names`: the sound's name, or `null` when it no longer resolves. Read-only: it may be sent back and is ignored."},{"type":"null","description":"Only with `include=names`: the sound's name, or `null` when it no longer resolves. Read-only: it may be sent back and is ignored."}]}},"additionalProperties":false},{"type":"object","title":"IVR menu","description":"One step of a call flow. `type` picks its fields. A step that branches, or that ends the call, is the last in its array. A branch is an array of steps with the same rules.","required":["type","soundId","waitSeconds"],"properties":{"type":{"type":"string","enum":["ivrMenu"],"isRequired":true},"soundId":{"oneOf":[{"type":"string","description":"Required. The menu prompt. On a read it is `null` when what it pointed at no longer exists, and `problems` has `DANGLING_REFERENCE`.","pattern":"^[1-9][0-9]*$","example":"79","isRequired":true},{"type":"null","description":"Required. The menu prompt. On a read it is `null` when what it pointed at no longer exists, and `problems` has `DANGLING_REFERENCE`.","pattern":"^[1-9][0-9]*$","example":"79","isRequired":true}],"isRequired":true},"waitSeconds":{"oneOf":[{"type":"integer","description":"Required, 1 or more. A read shows `null` when the stored step has none; a save needs a value.","minimum":1,"isRequired":true},{"type":"null","description":"Required, 1 or more. A read shows `null` when the stored step has none; a save needs a value.","minimum":1,"isRequired":true}],"isRequired":true},"id":{"type":"string","pattern":"^[1-9][0-9]*$","description":"The stored step id. Send it to keep and update this step; omit it for a new step. It must be a step of this number's flow.","example":"5001"},"ref":{"type":"string","pattern":"^[a-z][a-z0-9_-]{0,39}$","description":"New steps only, optional. Your label for this step, so that other steps of the same document can point at it. Unique in the document. Echoed in the response to the save, not stored.","example":"ask-order"},"name":{"oneOf":[{"type":"string","description":"Optional label shown in the Dashboard designer, up to 100 characters.","maxLength":100},{"type":"null","description":"Optional label shown in the Dashboard designer, up to 100 characters.","maxLength":100}]},"options":{"type":"object","description":"One entry per key: each key matches `^[0-9*#]$` (`0` to `9`, `*` or `#`), and each value is the non-empty steps that run when the caller presses it. A menu needs at least one option, or a non-empty `noInput`.","additionalProperties":{"type":"array","minItems":1,"items":{"$circularRef":"855dd704-1e29-4d7c-a188-217e7e2b4a07"}}},"noInput":{"type":"array","items":{"$circularRef":"855dd704-1e29-4d7c-a188-217e7e2b4a07"},"description":"Optional. Runs when the caller presses nothing or a key with no option."},"soundName":{"oneOf":[{"type":"string","description":"Only with `include=names`: the sound's name, or `null` when it no longer resolves. Read-only: it may be sent back and is ignored."},{"type":"null","description":"Only with `include=names`: the sound's name, or `null` when it no longer resolves. Read-only: it may be sent back and is ignored."}]}},"additionalProperties":false},{"type":"object","title":"Day/time splitter","description":"One step of a call flow. `type` picks its fields. A step that branches, or that ends the call, is the last in its array. A branch is an array of steps with the same rules.","required":["type","branches"],"properties":{"type":{"type":"string","enum":["dayTimeSplitter"],"isRequired":true},"branches":{"type":"array","maxItems":50,"items":{"type":"object","additionalProperties":false,"required":["days","holidays","from","to","steps"],"description":"One branch of a Day/Time Splitter.","properties":{"days":{"type":"array","uniqueItems":true,"items":{"type":"string","enum":["monday","tuesday","wednesday","thursday","friday","saturday","sunday"]},"description":"Required. The weekdays the branch matches, each once. May be empty: with `holidays: true` the branch matches only on public holidays; with `holidays: false` it never matches, and the save and validate warn `UNREACHABLE_BRANCH`.","isRequired":true},"holidays":{"type":"boolean","description":"Required. `true` makes the branch match on public holidays of the number's country (see [List public holidays](/api-reference/business-hours/list-public-holidays)).","isRequired":true},"from":{"oneOf":[{"type":"string","description":"Required. Start time, `HH:mm`, in the account time zone. A read shows `null` when the stored step has none; a save needs a value.","pattern":"^([01][0-9]|2[0-3]):[0-5][0-9]$","example":"08:00","isRequired":true},{"type":"null","description":"Required. Start time, `HH:mm`, in the account time zone. A read shows `null` when the stored step has none; a save needs a value.","pattern":"^([01][0-9]|2[0-3]):[0-5][0-9]$","example":"08:00","isRequired":true}],"isRequired":true},"to":{"oneOf":[{"type":"string","description":"Required. End time, `HH:mm`, inclusive. A read shows `null` when the stored step has none; a save needs a value.","pattern":"^([01][0-9]|2[0-3]):[0-5][0-9]$","example":"17:00","isRequired":true},{"type":"null","description":"Required. End time, `HH:mm`, inclusive. A read shows `null` when the stored step has none; a save needs a value.","pattern":"^([01][0-9]|2[0-3]):[0-5][0-9]$","example":"17:00","isRequired":true}],"isRequired":true},"steps":{"type":"array","items":{"$circularRef":"855dd704-1e29-4d7c-a188-217e7e2b4a07"},"description":"Non-empty. Runs when the branch matches.","minItems":1,"isRequired":true}}},"description":"Up to 50 branches. May be empty, as the designer saves it: then `otherwise` runs, and with no `otherwise` either the save and validate warn `NO_FALLBACK`.","isRequired":true},"id":{"type":"string","pattern":"^[1-9][0-9]*$","description":"The stored step id. Send it to keep and update this step; omit it for a new step. It must be a step of this number's flow.","example":"5001"},"ref":{"type":"string","pattern":"^[a-z][a-z0-9_-]{0,39}$","description":"New steps only, optional. Your label for this step, so that other steps of the same document can point at it. Unique in the document. Echoed in the response to the save, not stored.","example":"ask-order"},"name":{"oneOf":[{"type":"string","description":"Optional label shown in the Dashboard designer, up to 100 characters.","maxLength":100},{"type":"null","description":"Optional label shown in the Dashboard designer, up to 100 characters.","maxLength":100}]},"otherwise":{"type":"array","items":{"$circularRef":"855dd704-1e29-4d7c-a188-217e7e2b4a07"},"description":"Optional. Runs when no branch matches."}},"additionalProperties":false},{"type":"object","title":"Jump to","description":"One step of a call flow. `type` picks its fields. A step that branches, or that ends the call, is the last in its array. A branch is an array of steps with the same rules.","required":["type","target"],"properties":{"type":{"type":"string","enum":["jumpTo"],"isRequired":true},"target":{"oneOf":[{"type":"string","description":"A step of this flow (its id or `ref`), or the id of a step in another number's flow of your account. Not another Jump to (`422 CALL_FLOWS.JUMP_TO_JUMP`). On a read it is `null` when the step it pointed at no longer exists, and `problems` has `DANGLING_REFERENCE`.","pattern":"^(?:[1-9][0-9]*|[a-z][a-z0-9_-]{0,39})$","example":"5003","isRequired":true},{"type":"null","description":"A step of this flow (its id or `ref`), or the id of a step in another number's flow of your account. Not another Jump to (`422 CALL_FLOWS.JUMP_TO_JUMP`). On a read it is `null` when the step it pointed at no longer exists, and `problems` has `DANGLING_REFERENCE`.","pattern":"^(?:[1-9][0-9]*|[a-z][a-z0-9_-]{0,39})$","example":"5003","isRequired":true}],"isRequired":true},"id":{"type":"string","pattern":"^[1-9][0-9]*$","description":"The stored step id. Send it to keep and update this step; omit it for a new step. It must be a step of this number's flow.","example":"5001"},"ref":{"type":"string","pattern":"^[a-z][a-z0-9_-]{0,39}$","description":"New steps only, optional. Your label for this step, so that other steps of the same document can point at it. Unique in the document. Echoed in the response to the save, not stored.","example":"ask-order"},"name":{"oneOf":[{"type":"string","description":"Optional label shown in the Dashboard designer, up to 100 characters.","maxLength":100},{"type":"null","description":"Optional label shown in the Dashboard designer, up to 100 characters.","maxLength":100}]},"targetNumberId":{"oneOf":[{"type":"string","description":"The number that owns `target`, or `null` when `target` is. Read-only: it may be sent back and is ignored.","example":"600"},{"type":"null","description":"The number that owns `target`, or `null` when `target` is. Read-only: it may be sent back and is ignored.","example":"600"}]}},"additionalProperties":false},{"type":"object","title":"Condition splitter","description":"One step of a call flow. `type` picks its fields. A step that branches, or that ends the call, is the last in its array. A branch is an array of steps with the same rules.","required":["type","branches"],"properties":{"type":{"type":"string","enum":["conditionSplitter"],"isRequired":true},"branches":{"type":"array","minItems":1,"maxItems":50,"items":{"type":"object","additionalProperties":false,"required":["conditions","steps"],"description":"One branch of a Condition Splitter.","properties":{"conditions":{"type":"array","minItems":1,"maxItems":50,"items":{"type":"object","additionalProperties":false,"required":["field","operator"],"description":"One condition. All conditions of a branch must hold.\n\nFields: `call.externalNumber` and `call.internalNumber` (string); `call.waitingTime` (integer, seconds); `contact.name`, `contact.title`, `contact.company`, `contact.industry`, `contact.address`, `contact.city`, `contact.zip`, `contact.state` and `contact.type` (string); `contact.tags` (contact tag ids, as the Contacts API returns them); `contact.customFields.\u003cfieldId>` (string, a contact field id from [List contact fields](/api-reference/contacts/list-contact-fields)); `httpResponse.\u003cstep>.\u003cpath>` (a value of the response of an earlier `httpRequest` step); and `voiceAgent.\u003cstep>.\u003cproperty>` (the result of an earlier `voiceAgent` step). `\u003cstep>` is a step id or `ref`.\n\nStrings take `equals`, `notEquals`, `startsWith`, `endsWith`, `contains`, `isEmpty` and `isSet`. Integers take `equals`, `notEquals`, `lessThan`, `greaterThan`, `lessThanOrEqual`, `greaterThanOrEqual`, `isEmpty` and `isSet`. `contact.tags` takes only `contains`.","properties":{"field":{"type":"string","example":"call.waitingTime","description":"One of the fields above: `call.externalNumber`, `call.internalNumber`, `call.waitingTime`, `contact.\u003cname>`, `contact.tags`, `contact.customFields.\u003cfieldId>`, `httpResponse.\u003cstep>.\u003cpath>` or `voiceAgent.\u003cstep>.\u003cproperty>`. Anything else is `422 VALIDATION.INVALID_FIELD` on a save.","isRequired":true},"operator":{"type":"string","enum":["equals","notEquals","lessThan","greaterThan","lessThanOrEqual","greaterThanOrEqual","startsWith","endsWith","contains","isEmpty","isSet"],"isRequired":true},"value":{"oneOf":[{"type":"string","title":"Text","description":"The value to compare with: a string; an integer for `call.waitingTime`; an array of contact tag ids for `contact.tags`. Required for every operator but `isEmpty` and `isSet`, which take no `value`. A read shows `null` for a stored condition without a value."},{"type":"integer","title":"Number","description":"The value to compare with: a string; an integer for `call.waitingTime`; an array of contact tag ids for `contact.tags`. Required for every operator but `isEmpty` and `isSet`, which take no `value`. A read shows `null` for a stored condition without a value."},{"type":"array","items":{"type":"string"},"title":"Contact tag ids","description":"The value to compare with: a string; an integer for `call.waitingTime`; an array of contact tag ids for `contact.tags`. Required for every operator but `isEmpty` and `isSet`, which take no `value`. A read shows `null` for a stored condition without a value."},{"type":"object","title":"No value","description":"The value to compare with: a string; an integer for `call.waitingTime`; an array of contact tag ids for `contact.tags`. Required for every operator but `isEmpty` and `isSet`, which take no `value`. A read shows `null` for a stored condition without a value.","enum":[null]},{"type":"null","title":"No value","description":"The value to compare with: a string; an integer for `call.waitingTime`; an array of contact tag ids for `contact.tags`. Required for every operator but `isEmpty` and `isSet`, which take no `value`. A read shows `null` for a stored condition without a value.","enum":[null]}]}}},"description":"1 to 50 conditions, all of which must hold.","isRequired":true},"steps":{"type":"array","items":{"$circularRef":"855dd704-1e29-4d7c-a188-217e7e2b4a07"},"description":"Non-empty. Runs when every condition holds.","minItems":1,"isRequired":true}}},"description":"1 to 50 branches.","isRequired":true},"id":{"type":"string","pattern":"^[1-9][0-9]*$","description":"The stored step id. Send it to keep and update this step; omit it for a new step. It must be a step of this number's flow.","example":"5001"},"ref":{"type":"string","pattern":"^[a-z][a-z0-9_-]{0,39}$","description":"New steps only, optional. Your label for this step, so that other steps of the same document can point at it. Unique in the document. Echoed in the response to the save, not stored.","example":"ask-order"},"name":{"oneOf":[{"type":"string","description":"Optional label shown in the Dashboard designer, up to 100 characters.","maxLength":100},{"type":"null","description":"Optional label shown in the Dashboard designer, up to 100 characters.","maxLength":100}]},"otherwise":{"type":"array","items":{"$circularRef":"855dd704-1e29-4d7c-a188-217e7e2b4a07"},"description":"Optional. Runs when no branch matches."}},"additionalProperties":false},{"type":"object","title":"HTTP request","description":"One step of a call flow. `type` picks its fields. A step that branches, or that ends the call, is the last in its array. A branch is an array of steps with the same rules.","required":["type","method","url","parseResponse","keepResponseAfterCall"],"properties":{"type":{"type":"string","enum":["httpRequest"],"isRequired":true},"method":{"oneOf":[{"type":"string","description":"Required. The HTTP method. A read shows `null` when the stored step has none; a save needs a value.","enum":["GET","POST","PUT","PATCH","DELETE",null],"isRequired":true},{"type":"null","description":"Required. The HTTP method. A read shows `null` when the stored step has none; a save needs a value.","enum":["GET","POST","PUT","PATCH","DELETE",null],"isRequired":true}],"isRequired":true},"url":{"oneOf":[{"type":"string","description":"Required, up to 2,048 characters. May hold template variables such as `{{call.external_number}}`. A read shows `null` when the stored step has none; a save needs a value.","maxLength":2048,"minLength":1,"example":"https://erp.example.com/orders/lookup","isRequired":true},{"type":"null","description":"Required, up to 2,048 characters. May hold template variables such as `{{call.external_number}}`. A read shows `null` when the stored step has none; a save needs a value.","maxLength":2048,"minLength":1,"example":"https://erp.example.com/orders/lookup","isRequired":true}],"isRequired":true},"parseResponse":{"type":"boolean","description":"Required. Makes the response readable by later conditions (`httpResponse.\u003cstep>.\u003cpath>`).","isRequired":true},"keepResponseAfterCall":{"type":"boolean","description":"Required. Keeps the response after the call.","isRequired":true},"id":{"type":"string","pattern":"^[1-9][0-9]*$","description":"The stored step id. Send it to keep and update this step; omit it for a new step. It must be a step of this number's flow.","example":"5001"},"ref":{"type":"string","pattern":"^[a-z][a-z0-9_-]{0,39}$","description":"New steps only, optional. Your label for this step, so that other steps of the same document can point at it. Unique in the document. Echoed in the response to the save, not stored.","example":"ask-order"},"name":{"oneOf":[{"type":"string","description":"Optional label shown in the Dashboard designer, up to 100 characters.","maxLength":100},{"type":"null","description":"Optional label shown in the Dashboard designer, up to 100 characters.","maxLength":100}]},"headers":{"type":"array","maxItems":50,"items":{"type":"object","additionalProperties":false,"required":["name"],"description":"One request header. Put credentials here, not in `url` or `body`: only header values are hidden.","properties":{"name":{"type":"string","minLength":1,"maxLength":256,"description":"Up to 256 characters.","example":"Authorization","isRequired":true},"value":{"oneOf":[{"type":"string","description":"Up to 8,192 characters. Write-only: the value is never returned, and a read gives `null` with `valueSet: true`. Leave it out to keep the stored value. A new header needs a value, else `422 CALL_FLOWS.HEADER_VALUE_REQUIRED`.","maxLength":8192},{"type":"null","description":"Up to 8,192 characters. Write-only: the value is never returned, and a read gives `null` with `valueSet: true`. Leave it out to keep the stored value. A new header needs a value, else `422 CALL_FLOWS.HEADER_VALUE_REQUIRED`.","maxLength":8192}]}}},"description":"Up to 50 headers."},"body":{"type":"array","maxItems":50,"items":{"type":"object","additionalProperties":false,"required":["key","value"],"properties":{"key":{"type":"string","minLength":1,"maxLength":255,"description":"Up to 255 characters.","isRequired":true},"value":{"oneOf":[{"type":"string","description":"A non-empty string, up to 8,192 characters. It may hold template variables, such as `{{input[ask-order]}}`. A read shows `null` when the stored step has none; a save needs a value.","maxLength":8192,"minLength":1,"isRequired":true},{"type":"null","description":"A non-empty string, up to 8,192 characters. It may hold template variables, such as `{{input[ask-order]}}`. A read shows `null` when the stored step has none; a save needs a value.","maxLength":8192,"minLength":1,"isRequired":true}],"isRequired":true}}},"description":"Up to 50 body fields."}},"additionalProperties":false},{"type":"object","title":"Collect input","description":"One step of a call flow. `type` picks its fields. A step that branches, or that ends the call, is the last in its array. A branch is an array of steps with the same rules.","required":["type","soundId","waitSeconds","pattern"],"properties":{"type":{"type":"string","enum":["collectInput"],"isRequired":true},"soundId":{"oneOf":[{"type":"string","description":"Required. The prompt. On a read it is `null` when what it pointed at no longer exists, and `problems` has `DANGLING_REFERENCE`.","pattern":"^[1-9][0-9]*$","example":"80","isRequired":true},{"type":"null","description":"Required. The prompt. On a read it is `null` when what it pointed at no longer exists, and `problems` has `DANGLING_REFERENCE`.","pattern":"^[1-9][0-9]*$","example":"80","isRequired":true}],"isRequired":true},"waitSeconds":{"oneOf":[{"type":"integer","description":"Required, 1 or more. A read shows `null` when the stored step has none; a save needs a value.","minimum":1,"isRequired":true},{"type":"null","description":"Required, 1 or more. A read shows `null` when the stored step has none; a save needs a value.","minimum":1,"isRequired":true}],"isRequired":true},"pattern":{"oneOf":[{"type":"string","description":"Required. A digit count or a regular expression, up to 255 characters. A read shows `null` when the stored step has none; a save needs a value.","maxLength":255,"minLength":1,"example":"6","isRequired":true},{"type":"null","description":"Required. A digit count or a regular expression, up to 255 characters. A read shows `null` when the stored step has none; a save needs a value.","maxLength":255,"minLength":1,"example":"6","isRequired":true}],"isRequired":true},"id":{"type":"string","pattern":"^[1-9][0-9]*$","description":"The stored step id. Send it to keep and update this step; omit it for a new step. It must be a step of this number's flow.","example":"5001"},"ref":{"type":"string","pattern":"^[a-z][a-z0-9_-]{0,39}$","description":"New steps only, optional. Your label for this step, so that other steps of the same document can point at it. Unique in the document. Echoed in the response to the save, not stored.","example":"ask-order"},"name":{"oneOf":[{"type":"string","description":"Optional label shown in the Dashboard designer, up to 100 characters.","maxLength":100},{"type":"null","description":"Optional label shown in the Dashboard designer, up to 100 characters.","maxLength":100}]},"retryOnInvalid":{"type":"boolean","description":"Ask again when the input does not match."},"soundName":{"oneOf":[{"type":"string","description":"Only with `include=names`: the sound's name, or `null` when it no longer resolves. Read-only: it may be sent back and is ignored."},{"type":"null","description":"Only with `include=names`: the sound's name, or `null` when it no longer resolves. Read-only: it may be sent back and is ignored."}]}},"additionalProperties":false},{"type":"object","title":"Mark call as resolved","description":"One step of a call flow. `type` picks its fields. A step that branches, or that ends the call, is the last in its array. A branch is an array of steps with the same rules.","required":["type"],"properties":{"type":{"type":"string","enum":["markResolved"],"isRequired":true},"id":{"type":"string","pattern":"^[1-9][0-9]*$","description":"The stored step id. Send it to keep and update this step; omit it for a new step. It must be a step of this number's flow.","example":"5001"},"ref":{"type":"string","pattern":"^[a-z][a-z0-9_-]{0,39}$","description":"New steps only, optional. Your label for this step, so that other steps of the same document can point at it. Unique in the document. Echoed in the response to the save, not stored.","example":"ask-order"},"name":{"oneOf":[{"type":"string","description":"Optional label shown in the Dashboard designer, up to 100 characters.","maxLength":100},{"type":"null","description":"Optional label shown in the Dashboard designer, up to 100 characters.","maxLength":100}]}},"additionalProperties":false},{"type":"object","title":"Unsupported step","description":"One step of a call flow. `type` picks its fields. A step that branches, or that ends the call, is the last in its array. A branch is an array of steps with the same rules.","required":["id","type","storedType"],"properties":{"id":{"type":"string","example":"419","isRequired":true},"type":{"type":"string","enum":["unsupported"],"isRequired":true}},"additionalProperties":false}]}},"processedSecurityOptions":[{"schemes":[{"scheme":{"type":"http","scheme":"basic","description":"HTTP Basic Authentication. Use your API Access Key ID as the username and your API Access Key Secret as the password. Generate keys in the CloudTalk Dashboard under Account -> Settings -> API Keys (https://dashboard.cloudtalk.io/menu/account/settings/API-keys).","scopes":[],"schemeName":"basicAuth"},"schema":{"title":"Basic Auth","type":"object","description":"HTTP Basic Authentication. Use your API Access Key ID as the username and your API Access Key Secret as the password. Generate keys in the CloudTalk Dashboard under Account -> Settings -> API Keys (https://dashboard.cloudtalk.io/menu/account/settings/API-keys).","isRequired":true,"properties":{"username":{"type":"string","uniqueKey":"username","isRequired":true,"typeLabel":"string","deprecated":false},"password":{"type":"string","uniqueKey":"password","isRequired":true,"typeLabel":"string","deprecated":false}},"additionalProperties":false,"deprecated":false},"schemeName":"basicAuth","name":"Authorization"}],"title":"basicAuth"}]},"originalFileLocation":"api-reference/openapi.json"},"subdomain":"cloudtalk","siteName":"CloudTalk Help Center","title":"Replace a number's call flow - CloudTalk Help Center","relatedPagesConfig":{"enabled":true,"limit":3,"mode":"automatic"},"contextualStarterQuestions":[],"navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{"en":{"href":"/api-reference/call-flows/replace-a-numbers-call-flow","matchLevel":0},"de":{"href":"/de","matchLevel":4},"es":{"href":"/es","matchLevel":4},"fr":{"href":"/fr","matchLevel":4},"nl":{"href":"/nl","matchLevel":4},"pt":{"href":"/pt","matchLevel":4}}},"lastModified":"2026-11-27T20:33:18.846Z","originalFileLocation":"api-reference/call-flows/replace-a-numbers-call-flow.mdx","locale":"en"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"system\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"Replaces the whole flow with the document you send. Steps you keep carry their id; steps you leave out are deleted; steps without an id are created. It answers the next call, so a mistake reaches callers at once: run Validate a call flow first. To undo the save with Restore a call flow version, keep the versionId of your read: the versionId a save returns names the version that save created. If you did not keep it, or your read had versionId: null, find the version from before your save in List call flow versions (for a first save, the source: baseline version, which keeps the flow as it was) and restore that id. - Concurrency. Send If-Match with the ETag of your last read, so you never overwrite steps you have not seen (see 412). - References. Give a new step a ref (a label you choose) when another step must point at it. A reference field takes an existing step id or a ref from the same document, for example {{input[ask-order]}}. - Jump to steps elsewhere. Deleting a step also deletes every Jump to step, in any number of your account, that pointed at it. Validate lists those numbers first. - Secrets. Send an HTTP Request header without value to keep its stored value. - Size limits. At most 200 steps and a body of at most 1 MiB. A step name takes up to 100 characters and a Collect input pattern up to 255. An HTTP Request step takes a url of up to 2,048 characters, up to 50 headers (name up to 256 characters, value up to 8,192) and up to 50 body fields (key up to 255 characters, value up to 8,192). A Condition splitter takes up to 50 branches with up to 50 conditions each, and a Day/Time splitter up to 50 branches. The Dashboard does not enforce these limits, so a flow saved there can exceed one; such a flow reads normally, but sending it back unchanged is refused with 422 VALIDATION.INVALID_FIELD at the field over its limit. Shorten that field, or edit the flow in the Dashboard. - Ring time. The Dashboard also saves a ring step with steps under \u0026quot;no answer\u0026quot; but no ring time. Such a flow reads normally, but sending it back unchanged is refused with 422 CALL_FLOWS.RING_SECONDS_REQUIRED at that step: add ringSeconds. - Drafts. draft=true saves the document as a draft version instead, through every check of a live save (see 201). Calls keep using the live flow. If-Match is optional: send the ETag of your read, and the same one to Publish a call flow draft. Every save keeps a version. The legacy Edit a number deletes a flow built here; the next read shows the change, and restore brings back the last saved version.\">\u003cmeta data-mint-head name=\"application-name\" content=\"CloudTalk Help Center\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/cloudtalk/VvADT62SW6ZfhiGL/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/mintlify-assets/_mintlify/favicons/cloudtalk/VvADT62SW6ZfhiGL/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/cloudtalk/VvADT62SW6ZfhiGL/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/cloudtalk/VvADT62SW6ZfhiGL/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/cloudtalk/VvADT62SW6ZfhiGL/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/cloudtalk/VvADT62SW6ZfhiGL/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/cloudtalk/VvADT62SW6ZfhiGL/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/cloudtalk/VvADT62SW6ZfhiGL/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/cloudtalk/VvADT62SW6ZfhiGL/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Replace a number\u0026#x27;s call flow - CloudTalk Help Center\">\u003cmeta data-mint-head property=\"og:description\" content=\"Replaces the whole flow with the document you send. Steps you keep carry their id; steps you leave out are deleted; steps without an id are created. It answers the next call, so a mistake reaches callers at once: run Validate a call flow first. To undo the save with Restore a call flow version, keep the versionId of your read: the versionId a save returns names the version that save created. If you did not keep it, or your read had versionId: null, find the version from before your save in List call flow versions (for a first save, the source: baseline version, which keeps the flow as it was) and restore that id. - Concurrency. Send If-Match with the ETag of your last read, so you never overwrite steps you have not seen (see 412). - References. Give a new step a ref (a label you choose) when another step must point at it. A reference field takes an existing step id or a ref from the same document, for example {{input[ask-order]}}. - Jump to steps elsewhere. Deleting a step also deletes every Jump to step, in any number of your account, that pointed at it. Validate lists those numbers first. - Secrets. Send an HTTP Request header without value to keep its stored value. - Size limits. At most 200 steps and a body of at most 1 MiB. A step name takes up to 100 characters and a Collect input pattern up to 255. An HTTP Request step takes a url of up to 2,048 characters, up to 50 headers (name up to 256 characters, value up to 8,192) and up to 50 body fields (key up to 255 characters, value up to 8,192). A Condition splitter takes up to 50 branches with up to 50 conditions each, and a Day/Time splitter up to 50 branches. The Dashboard does not enforce these limits, so a flow saved there can exceed one; such a flow reads normally, but sending it back unchanged is refused with 422 VALIDATION.INVALID_FIELD at the field over its limit. Shorten that field, or edit the flow in the Dashboard. - Ring time. The Dashboard also saves a ring step with steps under \u0026quot;no answer\u0026quot; but no ring time. Such a flow reads normally, but sending it back unchanged is refused with 422 CALL_FLOWS.RING_SECONDS_REQUIRED at that step: add ringSeconds. - Drafts. draft=true saves the document as a draft version instead, through every check of a live save (see 201). Calls keep using the live flow. If-Match is optional: send the ETag of your read, and the same one to Publish a call flow draft. Every save keeps a version. The legacy Edit a number deletes a flow built here; the next read shows the change, and restore brings back the last saved version.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"CloudTalk Help Center\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://help.cloudtalk.io/api-reference/call-flows/replace-a-numbers-call-flow\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://cloudtalk.mintlify.site/_mintlify/api/og/v2?division=Call+flows\u0026amp;title=Replace+a+number%27s+call+flow\u0026amp;description=Replaces+the+whole+flow+with+the+document+you+send.+Steps+you+keep+carry+their+%60id%60%3B+steps+you+leave+out+are+deleted%3B+steps+without+an+%60id%60+are+created.+**It+an\u0026amp;theme=e5a1c749ba86e8123a66a147\u0026amp;signature=2a0e290c78326444c0c64b643a8d75e1dfcdf96aa2fa5fd8d29a69e546e1d539\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"Replace a number\u0026#x27;s call flow - CloudTalk Help Center\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Replaces the whole flow with the document you send. Steps you keep carry their id; steps you leave out are deleted; steps without an id are created. It answers the next call, so a mistake reaches callers at once: run Validate a call flow first. To undo the save with Restore a call flow version, keep the versionId of your read: the versionId a save returns names the version that save created. If you did not keep it, or your read had versionId: null, find the version from before your save in List call flow versions (for a first save, the source: baseline version, which keeps the flow as it was) and restore that id. - Concurrency. Send If-Match with the ETag of your last read, so you never overwrite steps you have not seen (see 412). - References. Give a new step a ref (a label you choose) when another step must point at it. A reference field takes an existing step id or a ref from the same document, for example {{input[ask-order]}}. - Jump to steps elsewhere. Deleting a step also deletes every Jump to step, in any number of your account, that pointed at it. Validate lists those numbers first. - Secrets. Send an HTTP Request header without value to keep its stored value. - Size limits. At most 200 steps and a body of at most 1 MiB. A step name takes up to 100 characters and a Collect input pattern up to 255. An HTTP Request step takes a url of up to 2,048 characters, up to 50 headers (name up to 256 characters, value up to 8,192) and up to 50 body fields (key up to 255 characters, value up to 8,192). A Condition splitter takes up to 50 branches with up to 50 conditions each, and a Day/Time splitter up to 50 branches. The Dashboard does not enforce these limits, so a flow saved there can exceed one; such a flow reads normally, but sending it back unchanged is refused with 422 VALIDATION.INVALID_FIELD at the field over its limit. Shorten that field, or edit the flow in the Dashboard. - Ring time. The Dashboard also saves a ring step with steps under \u0026quot;no answer\u0026quot; but no ring time. Such a flow reads normally, but sending it back unchanged is refused with 422 CALL_FLOWS.RING_SECONDS_REQUIRED at that step: add ringSeconds. - Drafts. draft=true saves the document as a draft version instead, through every check of a live save (see 201). Calls keep using the live flow. If-Match is optional: send the ETag of your read, and the same one to Publish a call flow draft. Every save keeps a version. The legacy Edit a number deletes a flow built here; the next read shows the change, and restore brings back the last saved version.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://cloudtalk.mintlify.site/_mintlify/api/og/v2?division=Call+flows\u0026amp;title=Replace+a+number%27s+call+flow\u0026amp;description=Replaces+the+whole+flow+with+the+document+you+send.+Steps+you+keep+carry+their+%60id%60%3B+steps+you+leave+out+are+deleted%3B+steps+without+an+%60id%60+are+created.+**It+an\u0026amp;theme=e5a1c749ba86e8123a66a147\u0026amp;signature=2a0e290c78326444c0c64b643a8d75e1dfcdf96aa2fa5fd8d29a69e546e1d539\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/mintlify-assets/_mintlify/favicons/cloudtalk/VvADT62SW6ZfhiGL/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"CloudTalk Help Center\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#0527FF\">\u003clink data-mint-head rel=\"canonical\" href=\"https://help.cloudtalk.io/api-reference/call-flows/replace-a-numbers-call-flow\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/api-reference/call-flows/replace-a-numbers-call-flow.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://help.cloudtalk.io/#organization\",\"name\":\"CloudTalk Help Center\",\"url\":\"https://help.cloudtalk.io\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/cloudtalk/M_FX1uE099dO0_78/logo/light.svg?fit=max\u0026auto=format\u0026n=M_FX1uE099dO0_78\u0026q=85\u0026s=9efde0e0ef215d0b41a2f8f92056e144\"}},{\"@type\":\"WebSite\",\"@id\":\"https://help.cloudtalk.io#website\",\"name\":\"CloudTalk Help Center\",\"url\":\"https://help.cloudtalk.io\",\"publisher\":{\"@id\":\"https://help.cloudtalk.io/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://help.cloudtalk.io/api-reference/call-flows/replace-a-numbers-call-flow#webpage\",\"url\":\"https://help.cloudtalk.io/api-reference/call-flows/replace-a-numbers-call-flow\",\"name\":\"Replace a number's call flow\",\"description\":\"Replaces the whole flow with the document you send. Steps you keep carry their id; steps you leave out are deleted; steps without an id are created. It answers the next call, so a mistake reaches callers at once: run Validate a call flow first. To undo the save with Restore a call flow version, keep the versionId of your read: the versionId a save returns names the version that save created. If you did not keep it, or your read had versionId: null, find the version from before your save in List call flow versions (for a first save, the source: baseline version, which keeps the flow as it was) and restore that id. - Concurrency. Send If-Match with the ETag of your last read, so you never overwrite steps you have not seen (see 412). - References. Give a new step a ref (a label you choose) when another step must point at it. A reference field takes an existing step id or a ref from the same document, for example {{input[ask-order]}}. - Jump to steps elsewhere. Deleting a step also deletes every Jump to step, in any number of your account, that pointed at it. Validate lists those numbers first. - Secrets. Send an HTTP Request header without value to keep its stored value. - Size limits. At most 200 steps and a body of at most 1 MiB. A step name takes up to 100 characters and a Collect input pattern up to 255. An HTTP Request step takes a url of up to 2,048 characters, up to 50 headers (name up to 256 characters, value up to 8,192) and up to 50 body fields (key up to 255 characters, value up to 8,192). A Condition splitter takes up to 50 branches with up to 50 conditions each, and a Day/Time splitter up to 50 branches. The Dashboard does not enforce these limits, so a flow saved there can exceed one; such a flow reads normally, but sending it back unchanged is refused with 422 VALIDATION.INVALID_FIELD at the field over its limit. Shorten that field, or edit the flow in the Dashboard. - Ring time. The Dashboard also saves a ring step with steps under \\\"no answer\\\" but no ring time. Such a flow reads normally, but sending it back unchanged is refused with 422 CALL_FLOWS.RING_SECONDS_REQUIRED at that step: add ringSeconds. - Drafts. draft=true saves the document as a draft version instead, through every check of a live save (see 201). Calls keep using the live flow. If-Match is optional: send the ETag of your read, and the same one to Publish a call flow draft. Every save keeps a version. The legacy Edit a number deletes a flow built here; the next read shows the change, and restore brings back the last saved version.\",\"dateModified\":\"2026-11-27T20:33:18.846Z\",\"isPartOf\":{\"@id\":\"https://help.cloudtalk.io#website\"},\"breadcrumb\":{\"@id\":\"https://help.cloudtalk.io/api-reference/call-flows/replace-a-numbers-call-flow#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://help.cloudtalk.io/api-reference/call-flows/replace-a-numbers-call-flow#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"API Reference\",\"item\":\"https://help.cloudtalk.io/api-reference/overview\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Call flows\",\"item\":\"https://help.cloudtalk.io/api-reference/call-flows/get-a-numbers-call-flow\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Call flows\",\"item\":\"https://help.cloudtalk.io/api-reference/call-flows/get-a-numbers-call-flow\"},{\"@type\":\"ListItem\",\"position\":4,\"name\":\"Replace a number's call flow\",\"item\":\"https://help.cloudtalk.io/api-reference/call-flows/replace-a-numbers-call-flow\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://help.cloudtalk.io/api-reference/call-flows/replace-a-numbers-call-flow#apireference\",\"headline\":\"Replace a number's call flow\",\"name\":\"Replace a number's call flow\",\"description\":\"Replaces the whole flow with the document you send. Steps you keep carry their id; steps you leave out are deleted; steps without an id are created. It answers the next call, so a mistake reaches callers at once: run Validate a call flow first. To undo the save with Restore a call flow version, keep the versionId of your read: the versionId a save returns names the version that save created. If you did not keep it, or your read had versionId: null, find the version from before your save in List call flow versions (for a first save, the source: baseline version, which keeps the flow as it was) and restore that id. - Concurrency. Send If-Match with the ETag of your last read, so you never overwrite steps you have not seen (see 412). - References. Give a new step a ref (a label you choose) when another step must point at it. A reference field takes an existing step id or a ref from the same document, for example {{input[ask-order]}}. - Jump to steps elsewhere. Deleting a step also deletes every Jump to step, in any number of your account, that pointed at it. Validate lists those numbers first. - Secrets. Send an HTTP Request header without value to keep its stored value. - Size limits. At most 200 steps and a body of at most 1 MiB. A step name takes up to 100 characters and a Collect input pattern up to 255. An HTTP Request step takes a url of up to 2,048 characters, up to 50 headers (name up to 256 characters, value up to 8,192) and up to 50 body fields (key up to 255 characters, value up to 8,192). A Condition splitter takes up to 50 branches with up to 50 conditions each, and a Day/Time splitter up to 50 branches. The Dashboard does not enforce these limits, so a flow saved there can exceed one; such a flow reads normally, but sending it back unchanged is refused with 422 VALIDATION.INVALID_FIELD at the field over its limit. Shorten that field, or edit the flow in the Dashboard. - Ring time. The Dashboard also saves a ring step with steps under \\\"no answer\\\" but no ring time. Such a flow reads normally, but sending it back unchanged is refused with 422 CALL_FLOWS.RING_SECONDS_REQUIRED at that step: add ringSeconds. - Drafts. draft=true saves the document as a draft version instead, through every check of a live save (see 201). Calls keep using the live flow. If-Match is optional: send the ETag of your read, and the same one to Publish a call flow draft. Every save keeps a version. The legacy Edit a number deletes a flow built here; the next read shows the change, and restore brings back the last saved version.\",\"url\":\"https://help.cloudtalk.io/api-reference/call-flows/replace-a-numbers-call-flow\",\"mainEntityOfPage\":{\"@id\":\"https://help.cloudtalk.io/api-reference/call-flows/replace-a-numbers-call-flow#webpage\"},\"dateModified\":\"2026-11-27T20:33:18.846Z\",\"publisher\":{\"@id\":\"https://help.cloudtalk.io/#organization\"},\"isPartOf\":{\"@id\":\"https://help.cloudtalk.io#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"CloudTalk Help Center\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"CloudTalk Help Center\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/api-reference/call-flows/replace-a-numbers-call-flow.md","siteName":"CloudTalk Help Center","nav":{"global":null,"languages":[{"language":"en","tabs":[{"tab":"Help Center","pages":[{"title":"Help Center","href":"/en"}]},{"tab":"API","groups":[{"group":"Getting Started","pages":[{"title":"CloudTalk Developer Documentation","sidebarTitle":"Home","href":"/developers"},{"title":"CloudTalk REST API: Call Center Automation Platform","sidebarTitle":"Introduction","href":"/guides/introduction"},{"title":"How to Authenticate Requests to the CloudTalk REST API","sidebarTitle":"Authentication","href":"/guides/authentication"},{"title":"Quickstart: Make Your First CloudTalk REST API Call","sidebarTitle":"Quickstart","href":"/guides/quickstart"}]},{"group":"API Concepts","pages":[{"title":"CloudTalk API Response Envelope Formats and Schema","sidebarTitle":"Response Envelopes","href":"/guides/response-envelopes"},{"title":"How to Paginate CloudTalk API Collection Responses","sidebarTitle":"Pagination","href":"/guides/pagination"},{"title":"CloudTalk API Rate Limits, Headers, and Throttling","sidebarTitle":"Rate Limiting","href":"/guides/rate-limiting"},{"title":"CloudTalk API HTTP Error Codes: Causes and Resolutions","sidebarTitle":"Error Codes","href":"/guides/error-codes"}]},{"group":"API Guides","pages":[{"title":"Manage contacts with the API","sidebarTitle":"Contacts API","href":"/guides/contacts/manage-with-api"},{"title":"Read and set user status with the API","sidebarTitle":"User status API","href":"/guides/user-status/manage-with-api"},{"title":"Send and read messages with the API","sidebarTitle":"Messages API","href":"/guides/messages/manage-with-api"},{"title":"Manage phone numbers with the API","sidebarTitle":"Numbers API","href":"/guides/numbers/manage-with-api"},{"title":"Build call flows with the API","sidebarTitle":"Call flows API","href":"/guides/call-flows/build-with-api"},{"title":"Migrate from Cue Cards to insight cards","sidebarTitle":"Migrate from Cue Cards","href":"/guides/insight-cards/migrate-from-cue-cards"}]},{"group":"API Reference","pages":[{"title":"API reference","sidebarTitle":"Overview","href":"/api-reference/overview"},{"title":"Classic API","sidebarTitle":"Classic API","href":"/api-reference/legacy/classic-api"},{"group":"AI Voice Agents","pages":[{"title":"Initiate VoiceAgent call","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /voice-agent/calls","href":"/api-reference/voiceagent/initiate-voiceagent-call"},{"title":"Stop outbound VoiceAgent calls","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /voice-agent/outbound/kill","href":"/api-reference/voiceagent/stop-outbound-voiceagent-calls"},{"title":"List voice agents","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /voice-agents","href":"/api-reference/voiceagent/list-voice-agents"},{"title":"Create a voice agent","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /voice-agents","href":"/api-reference/voiceagent/create-a-voice-agent"},{"title":"Get a voice agent","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /voice-agents/{voiceAgentId}","href":"/api-reference/voiceagent/get-a-voice-agent"},{"title":"Replace a voice agent","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json put /voice-agents/{voiceAgentId}","href":"/api-reference/voiceagent/replace-a-voice-agent"},{"title":"Delete a voice agent","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json delete /voice-agents/{voiceAgentId}","href":"/api-reference/voiceagent/delete-a-voice-agent"},{"title":"Attach a knowledge base to a voice agent","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json put /voice-agents/{voiceAgentId}/knowledge-bases/{knowledgeBaseId}","href":"/api-reference/voiceagent/attach-a-knowledge-base-to-a-voice-agent"},{"title":"Detach a knowledge base from a voice agent","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json delete /voice-agents/{voiceAgentId}/knowledge-bases/{knowledgeBaseId}","href":"/api-reference/voiceagent/detach-a-knowledge-base-from-a-voice-agent"},{"title":"List knowledge bases","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /knowledge-bases","href":"/api-reference/voiceagent/list-knowledge-bases"},{"title":"Create a knowledge base","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /knowledge-bases","href":"/api-reference/voiceagent/create-a-knowledge-base"},{"title":"Upload a knowledge base file","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /knowledge-bases/files","href":"/api-reference/voiceagent/upload-a-knowledge-base-file"},{"title":"Delete a knowledge base","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json delete /knowledge-bases/{knowledgeBaseId}","href":"/api-reference/voiceagent/delete-a-knowledge-base"}]},{"group":"AI Conversation Intelligence","pages":[{"title":"Summary","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /ai/calls/{callId}/summary","href":"/api-reference/conversation-intelligence/summary"},{"title":"Overall sentiment","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /ai/calls/{callId}/overall-sentiment","href":"/api-reference/conversation-intelligence/overall-sentiment"},{"title":"Talk-listen ratio","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /ai/calls/{callId}/talk-listen-ratio","href":"/api-reference/conversation-intelligence/talk-listen-ratio"},{"title":"Topics","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /ai/calls/{callId}/topics","href":"/api-reference/conversation-intelligence/topics"},{"title":"Transcription","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /ai/calls/{callId}/transcription","href":"/api-reference/conversation-intelligence/transcription"},{"title":"Smart notes","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /ai/calls/{callId}/smart-notes","href":"/api-reference/conversation-intelligence/smart-notes"},{"title":"Call details link","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /ai/calls/{callId}/details-link","href":"/api-reference/conversation-intelligence/call-details-link"}]},{"group":"Contacts","pages":[{"group":"Contacts","pages":[{"title":"List and search contacts","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /contacts","href":"/api-reference/contacts/list-and-search-contacts"},{"title":"Create a contact","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /contacts","href":"/api-reference/contacts/create-a-contact"},{"title":"Look up contacts","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /contacts/lookup","href":"/api-reference/contacts/look-up-contacts"},{"title":"Bulk upsert contacts","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /contacts/bulk","href":"/api-reference/contacts/bulk-upsert-contacts"},{"title":"Get a contact","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /contacts/{contactId}","href":"/api-reference/contacts/get-a-contact"},{"title":"Delete a contact","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json delete /contacts/{contactId}","href":"/api-reference/contacts/delete-a-contact"},{"title":"Update a contact","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json patch /contacts/{contactId}","href":"/api-reference/contacts/update-a-contact"},{"title":"Add tags to a contact","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /contacts/{contactId}/tags","href":"/api-reference/contacts/add-tags-to-a-contact"},{"title":"Remove tags from a contact","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json delete /contacts/{contactId}/tags","href":"/api-reference/contacts/remove-tags-from-a-contact"}]},{"group":"Contact tags","pages":[{"title":"List contact tags","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /contact-tags","href":"/api-reference/contacts/list-contact-tags"},{"title":"Create a contact tag","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /contact-tags","href":"/api-reference/contacts/create-a-contact-tag"},{"title":"Delete a contact tag","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json delete /contact-tags/{tagId}","href":"/api-reference/contacts/delete-a-contact-tag"},{"title":"Rename a contact tag","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json patch /contact-tags/{tagId}","href":"/api-reference/contacts/rename-a-contact-tag"}]},{"group":"Contact fields","pages":[{"title":"List contact fields","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /contact-fields","href":"/api-reference/contacts/list-contact-fields"}]}]},{"group":"AI Sales Dialer \u0026 Campaigns","pages":[{"group":"AI Sales Dialer","pages":[{"title":"List call scripts","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /dialer/scripts","href":"/api-reference/dialer/list-call-scripts"},{"title":"Create a call script","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /dialer/scripts","href":"/api-reference/dialer/create-a-call-script"},{"title":"Get a call script","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /dialer/scripts/{scriptId}","href":"/api-reference/dialer/get-a-call-script"},{"title":"Archive a call script","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json delete /dialer/scripts/{scriptId}","href":"/api-reference/dialer/archive-a-call-script"},{"title":"Update a call script","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json patch /dialer/scripts/{scriptId}","href":"/api-reference/dialer/update-a-call-script"},{"title":"List surveys","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /dialer/surveys","href":"/api-reference/dialer/list-surveys"},{"title":"Create a survey","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /dialer/surveys","href":"/api-reference/dialer/create-a-survey"},{"title":"Get a survey","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /dialer/surveys/{surveyId}","href":"/api-reference/dialer/get-a-survey"},{"title":"Rename or archive a survey","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json patch /dialer/surveys/{surveyId}","href":"/api-reference/dialer/rename-or-archive-a-survey"},{"title":"Replace a survey's questions","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json put /dialer/surveys/{surveyId}/questions","href":"/api-reference/dialer/replace-a-surveys-questions"},{"title":"List disposition tags","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /dialer/disposition-tags","href":"/api-reference/dialer/list-disposition-tags"}]},{"group":"Campaigns","pages":[{"title":"List dialer campaigns","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /dialer/campaigns","href":"/api-reference/dialer/list-dialer-campaigns"},{"title":"Create a dialer campaign","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /dialer/campaigns","href":"/api-reference/dialer/create-a-dialer-campaign"},{"title":"Get a dialer campaign","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /dialer/campaigns/{campaignId}","href":"/api-reference/dialer/get-a-dialer-campaign"},{"title":"Delete a dialer campaign","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json delete /dialer/campaigns/{campaignId}","href":"/api-reference/dialer/delete-a-dialer-campaign"},{"title":"Update a dialer campaign","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json patch /dialer/campaigns/{campaignId}","href":"/api-reference/dialer/update-a-dialer-campaign"},{"title":"Get a campaign's associations","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /dialer/campaigns/{campaignId}/associations","href":"/api-reference/dialer/get-a-campaigns-associations"},{"title":"Replace a campaign's associations","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json put /dialer/campaigns/{campaignId}/associations","href":"/api-reference/dialer/replace-a-campaigns-associations"},{"title":"Get a campaign's disposition buttons","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /dialer/campaigns/{campaignId}/disposition-buttons","href":"/api-reference/dialer/get-a-campaigns-disposition-buttons"},{"title":"Replace a campaign's disposition buttons","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json put /dialer/campaigns/{campaignId}/disposition-buttons","href":"/api-reference/dialer/replace-a-campaigns-disposition-buttons"},{"title":"Get a campaign's statistics","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /dialer/campaigns/{campaignId}/statistics","href":"/api-reference/dialer/get-a-campaigns-statistics"},{"title":"List a campaign's contacts","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /dialer/campaigns/{campaignId}/contacts","href":"/api-reference/dialer/list-a-campaigns-contacts"},{"title":"Peek at the next contacts to be dialed","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /dialer/campaigns/{campaignId}/contacts/next","href":"/api-reference/dialer/peek-at-the-next-contacts-to-be-dialed"},{"title":"Get one campaign contact","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /dialer/campaigns/{campaignId}/contacts/{campaignContactId}","href":"/api-reference/dialer/get-one-campaign-contact"},{"title":"Request a campaign data export","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /dialer/campaigns/{campaignId}/exports","href":"/api-reference/dialer/request-a-campaign-data-export"},{"title":"Get an export job's status","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /dialer/exports/{jobId}","href":"/api-reference/dialer/get-an-export-jobs-status"},{"title":"Get a download link for a completed export","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /dialer/exports/{jobId}/download","href":"/api-reference/dialer/get-a-download-link-for-a-completed-export"}]}]},{"group":"Calls","pages":[{"title":"Call history","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /calls/index.json","href":"/api-reference/calls/call-history"},{"title":"Get call details","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /calls/{callId}","href":"/api-reference/calls/get-call-details"},{"title":"Recording media","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /calls/recording/{callId}.json","href":"/api-reference/calls/recording-media"},{"title":"Delete call recording","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json delete /recordings/delete/{callId}.json","href":"/api-reference/calls/delete-call-recording"},{"title":"Make a call","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /calls/create.json","href":"/api-reference/calls/make-a-call"},{"title":"Group statistics","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /statistics/realtime/groups.json","href":"/api-reference/calls/group-statistics"}]},{"group":"Call tags","pages":[{"title":"List call tags","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /call-tags","href":"/api-reference/call-tags/list-call-tags"},{"title":"List a call's tags","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /calls/{callId}/tags","href":"/api-reference/call-tags/list-a-calls-tags"},{"title":"Add tags to a call","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /calls/{callId}/tags","href":"/api-reference/call-tags/add-tags-to-a-call"},{"title":"Remove tags from a call","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json delete /calls/{callId}/tags","href":"/api-reference/call-tags/remove-tags-from-a-call"}]},{"group":"Insight cards","pages":[{"title":"Send an insight card","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /calls/{callUuid}/insight-cards","href":"/api-reference/insight-cards/send-an-insight-card"}]},{"group":"Messaging","pages":[{"group":"Messages","pages":[{"title":"Send a message","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /messages","href":"/api-reference/messages/send-a-message"},{"title":"Bulk send messages","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /messages/bulk","href":"/api-reference/messages/bulk-send-messages"},{"title":"List messages","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /messages","href":"/api-reference/messages/list-messages"},{"title":"Get a message","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /messages/{messageId}","href":"/api-reference/messages/get-a-message"},{"title":"Upload media","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /message-media","href":"/api-reference/messages/upload-media"}]},{"group":"Conversations","pages":[{"title":"List conversations","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /conversations","href":"/api-reference/messages/list-conversations"},{"title":"Look up conversations","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /conversations/lookup","href":"/api-reference/messages/look-up-conversations"},{"title":"Get a conversation","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /conversations/{conversationId}","href":"/api-reference/messages/get-a-conversation"},{"title":"List a conversation's messages","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /conversations/{conversationId}/messages","href":"/api-reference/messages/list-a-conversations-messages"},{"title":"Mark a conversation read","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json patch /conversations/{conversationId}","href":"/api-reference/messages/mark-a-conversation-read"}]},{"group":"WhatsApp templates","pages":[{"title":"List WhatsApp templates","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /whatsapp-templates","href":"/api-reference/messages/list-whatsapp-templates"}]}]},{"group":"Numbers","pages":[{"title":"List and search numbers","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /numbers","href":"/api-reference/numbers/list-and-search-numbers"},{"title":"Get a number","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /numbers/{numberId}","href":"/api-reference/numbers/get-a-number"},{"title":"Update a number","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json patch /numbers/{numberId}","href":"/api-reference/numbers/update-a-number"},{"title":"List the users of a number","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /numbers/{numberId}/users","href":"/api-reference/numbers/list-the-users-of-a-number"}]},{"group":"Call flows","pages":[{"group":"Call flows","pages":[{"title":"Get a number's call flow","description":"Returns the number's whole call flow as one typed document, with an `ETag` header: a hash of the stored steps. Send the document back with your changes to [Replace a number's call flow](/api-reference/call-flows/replace-a-numbers-call-flow), with the `ETag` as `If-Match`. A number with no steps returns `\"steps\": []`.\n\n- **Business hours run first.** When `businessHours.active` is `true`, business hours run before this flow, and when closed they decide what the caller hears.\n- **Display names.** `include=names` adds a read-only name next to each reference (`userName`, `groupName`, `soundName`, `voicemailBoxName`, `voiceAgentName`), so a script or an AI assistant can describe the flow without one lookup per id. A reference that no longer resolves has a `null` name.\n- **Conditional read.** Send the `ETag` you last saw as `If-None-Match` (see `304`). The read sends `Cache-Control: no-cache, no-store, must-revalidate` (with `no-cache, must-revalidate`), so no HTTP cache answers you with a stored body after a `304`.\n- **Hidden values.** HTTP Request header values are never returned.\n- **What the API cannot edit.** A flow with a step type the API does not write, or with stored data it cannot represent, has `editable: false`, and `problems` says why. So does a step the Dashboard saved where a save through the API refuses it (`STEP_NOT_ALLOWED_HERE`): move or remove it. `true` is not a guarantee: a flow saved in the Dashboard over a size limit, or with a ring step that has no ring time, reads `editable: true`, but sending it back unchanged is refused with `422` (see [Replace a number's call flow](/api-reference/call-flows/replace-a-numbers-call-flow)).\n- **Deleted records.** A step that points at a deleted user, group, sound, voicemail box, voice agent or step reads `null` there with the problem `DANGLING_REFERENCE`, and the flow has `editable: false`. A condition on a deleted contact field or contact tag keeps its `field` and `value` and puts `DANGLING_REFERENCE` on the Condition splitter step. Set those fields to existing records, or remove the steps, and send the corrected document.\n- **Voice agents.** When the voice agent service does not answer, a Voice Agent step reads `voiceAgentId: null` with the problem `VOICE_AGENT_LOOKUP_FAILED`, and the flow reads `editable: false` until a later read finds the agent.\n- **Contact fields.** When the contacts service does not answer, a custom field variable in an HTTP Request step may read in its stored id form, `{{contact.custom_fields.\u003cid>}}`, instead of by field name. It is accepted back as it is.\n\nA change to the stored steps changes the `ETag`: a save in the Dashboard designer or through this API, deleting a user or group the flow uses, or a plan downgrade.","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /numbers/{numberId}/call-flow","href":"/api-reference/call-flows/get-a-numbers-call-flow"},{"title":"Replace a number's call flow","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json put /numbers/{numberId}/call-flow","href":"/api-reference/call-flows/replace-a-numbers-call-flow"},{"title":"Validate a call flow","description":"Checks a document as [Replace a number's call flow](/api-reference/call-flows/replace-a-numbers-call-flow) would, without saving. Returns every error and warning with a JSON pointer, and a summary of what a save would change. Use it to preview a change for a person, or to let an agent fix its own mistakes before saving.\n\n- The answer is `200` also when the document has errors: `valid` is `false` and `errors` lists them.\n- `If-Match` is optional. When sent and stale, `errors` has `CALL_FLOWS.ETAG_MISMATCH`; there is no `412`.\n- `changes.otherNumbers` lists the numbers whose Jump to steps a save would delete.\n- When the voice agents cannot be looked up, their ids are not checked and `warnings` has `VOICE_AGENT_CHECK_SKIPPED`: a save may still answer `502 CALL_FLOWS.UPSTREAM_UNAVAILABLE`.","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /numbers/{numberId}/call-flow/validate","href":"/api-reference/call-flows/validate-a-call-flow"},{"title":"Delete a number's call flow","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json delete /numbers/{numberId}/call-flow","href":"/api-reference/call-flows/delete-a-numbers-call-flow"},{"title":"List call flow step types","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /call-flow-step-types","href":"/api-reference/call-flows/list-call-flow-step-types"},{"title":"List voicemail boxes","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /voicemail-boxes","href":"/api-reference/call-flows/list-voicemail-boxes"}]},{"group":"Versions","pages":[{"title":"List call flow versions","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /numbers/{numberId}/call-flow/versions","href":"/api-reference/call-flows/list-call-flow-versions"},{"title":"Get a call flow version","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /numbers/{numberId}/call-flow/versions/{versionId}","href":"/api-reference/call-flows/get-a-call-flow-version"},{"title":"Restore a call flow version","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /numbers/{numberId}/call-flow/versions/{versionId}/restore","href":"/api-reference/call-flows/restore-a-call-flow-version"},{"title":"Publish a call flow draft","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /numbers/{numberId}/call-flow/versions/{versionId}/publish","href":"/api-reference/call-flows/publish-a-call-flow-draft"}]},{"group":"Business hours","pages":[{"title":"Get company business hours","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /business-hours","href":"/api-reference/business-hours/get-company-business-hours"},{"title":"Replace company business hours","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json put /business-hours","href":"/api-reference/business-hours/replace-company-business-hours"},{"title":"Get a number's business hours","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /numbers/{numberId}/business-hours","href":"/api-reference/business-hours/get-a-numbers-business-hours"},{"title":"Replace a number's business hours","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json put /numbers/{numberId}/business-hours","href":"/api-reference/business-hours/replace-a-numbers-business-hours"},{"title":"List public holidays","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /holidays","href":"/api-reference/business-hours/list-public-holidays"}]},{"group":"Sounds","pages":[{"title":"List sounds","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /sounds","href":"/api-reference/sounds/list-sounds"},{"title":"Create a sound","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /sounds","href":"/api-reference/sounds/create-a-sound"},{"title":"Get a sound","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /sounds/{soundId}","href":"/api-reference/sounds/get-a-sound"},{"title":"Rename a sound","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json patch /sounds/{soundId}","href":"/api-reference/sounds/rename-a-sound"},{"title":"Delete a sound","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json delete /sounds/{soundId}","href":"/api-reference/sounds/delete-a-sound"},{"title":"List text-to-speech voices","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /text-to-speech-voices","href":"/api-reference/sounds/list-text-to-speech-voices"}]}]},{"group":"User status","pages":[{"title":"List user statuses","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /user-statuses","href":"/api-reference/user-status/list-user-statuses"},{"title":"Get a user's status","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /user-statuses/{userId}","href":"/api-reference/user-status/get-a-users-status"},{"title":"Set a user's status","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json put /user-statuses/{userId}","href":"/api-reference/user-status/set-a-users-status"},{"title":"List user status types","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /user-status-types","href":"/api-reference/user-status/list-user-status-types"}]},{"group":"Agents","pages":[{"title":"List agents","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /agents/index.json","href":"/api-reference/agents/list-agents"},{"title":"Add an agent","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json put /agents/add.json","href":"/api-reference/agents/add-an-agent"},{"title":"Edit an agent","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /agents/edit/{agentId}.json","href":"/api-reference/agents/edit-an-agent"},{"title":"Delete an agent","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json delete /agents/delete/{agentId}.json","href":"/api-reference/agents/delete-an-agent"}]},{"group":"Groups","pages":[{"title":"List groups","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /groups/index.json","href":"/api-reference/groups/list-groups"},{"title":"Add agent to group","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json put /groups/add.json","href":"/api-reference/groups/add-agent-to-group"},{"title":"Remove agent from group","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json delete /groups/delete/{agent_id}.json","href":"/api-reference/groups/remove-agent-from-group"}]},{"group":"Webhooks","pages":[{"title":"List webhook event types","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /webhooks/event-types","href":"/api-reference/webhooks/list-webhook-event-types"},{"title":"List webhook endpoints","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /webhooks/endpoints","href":"/api-reference/webhooks/list-webhook-endpoints"},{"title":"Create a webhook endpoint","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /webhooks/endpoints","href":"/api-reference/webhooks/create-a-webhook-endpoint"},{"title":"Get a webhook endpoint","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /webhooks/endpoints/{endpointId}","href":"/api-reference/webhooks/get-a-webhook-endpoint"},{"title":"Delete a webhook endpoint","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json delete /webhooks/endpoints/{endpointId}","href":"/api-reference/webhooks/delete-a-webhook-endpoint"},{"title":"Update a webhook endpoint","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json patch /webhooks/endpoints/{endpointId}","href":"/api-reference/webhooks/update-a-webhook-endpoint"},{"title":"Get the signing secret","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /webhooks/endpoints/{endpointId}/secret","href":"/api-reference/webhooks/get-the-signing-secret"},{"title":"Rotate the signing secret","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /webhooks/endpoints/{endpointId}/secret/rotate","href":"/api-reference/webhooks/rotate-the-signing-secret"},{"title":"Send a test event","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /webhooks/endpoints/{endpointId}/test","href":"/api-reference/webhooks/send-a-test-event"},{"title":"List deliveries","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /webhooks/endpoints/{endpointId}/deliveries","href":"/api-reference/webhooks/list-deliveries"},{"title":"Get a delivery","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /webhooks/endpoints/{endpointId}/deliveries/{deliveryId}","href":"/api-reference/webhooks/get-a-delivery"},{"title":"Retry a delivery","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /webhooks/endpoints/{endpointId}/deliveries/{deliveryId}/retry","href":"/api-reference/webhooks/retry-a-delivery"}]},{"group":"Utilities","pages":[{"title":"List countries","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /countries/index.json","href":"/api-reference/utilities/list-countries"},{"title":"List blacklist","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /blacklist/index.json","href":"/api-reference/utilities/list-blacklist"},{"title":"Add number to blacklist","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json put /blacklist/add.json","href":"/api-reference/utilities/add-number-to-blacklist"},{"title":"Edit number on blacklist","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /blacklist/edit/{id}.json","href":"/api-reference/utilities/edit-number-on-blacklist"},{"title":"Delete number from blacklist","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json delete /blacklist/delete/{id}.json","href":"/api-reference/utilities/delete-number-from-blacklist"}]},{"group":"Legacy","expanded":false,"pages":[{"group":"Contacts (LEGACY)","pages":[{"title":"List contacts","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /contacts/index.json","href":"/api-reference/contacts-legacy/list-contacts"},{"title":"Add contact","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json put /contacts/add.json","href":"/api-reference/contacts-legacy/add-contact"},{"title":"Edit contact","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /contacts/edit/{contactId}.json","href":"/api-reference/contacts-legacy/edit-contact"},{"title":"Delete contact","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json delete /contacts/delete/{contactId}.json","href":"/api-reference/contacts-legacy/delete-contact"},{"title":"Inspect a contact","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /contacts/show/{contactId}.json","href":"/api-reference/contacts-legacy/inspect-a-contact"},{"title":"Attributes","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /contacts/attributes.json","href":"/api-reference/contacts-legacy/attributes"},{"title":"Assign contact tags","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json put /contacts/addTags/{contactId}.json","href":"/api-reference/contacts-legacy/assign-contact-tags"},{"title":"Unassign contact tags","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json delete /contacts/removeTags/{contactId}.json","href":"/api-reference/contacts-legacy/unassign-contact-tags"},{"title":"List notes","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /notes/index.json","href":"/api-reference/contacts-legacy/list-notes"},{"title":"Add note","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json put /notes/add/{contactId}.json","href":"/api-reference/contacts-legacy/add-note"},{"title":"Edit note","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /notes/edit/{noteId}.json","href":"/api-reference/contacts-legacy/edit-note"},{"title":"Delete note","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json delete /notes/delete/{noteId}.json","href":"/api-reference/contacts-legacy/delete-note"},{"title":"List activities","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /activity/index.json","href":"/api-reference/contacts-legacy/list-activities"},{"title":"Add activity","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json put /activity/add/{contactId}.json","href":"/api-reference/contacts-legacy/add-activity"},{"title":"Edit activity","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /activity/edit/{activityId}.json","href":"/api-reference/contacts-legacy/edit-activity"},{"title":"Delete activity","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json delete /activity/delete/{activityId}.json","href":"/api-reference/contacts-legacy/delete-activity"}]},{"group":"Contact tags (LEGACY)","pages":[{"title":"List contact tags","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /tags/index.json","href":"/api-reference/contact-tags-legacy/list-contact-tags"},{"title":"Add a contact tag","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json put /tags/add.json","href":"/api-reference/contact-tags-legacy/add-a-contact-tag"},{"title":"Edit a contact tag","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /tags/edit/{id}.json","href":"/api-reference/contact-tags-legacy/edit-a-contact-tag"},{"title":"Delete a contact tag","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json delete /tags/delete/{id}.json","href":"/api-reference/contact-tags-legacy/delete-a-contact-tag"}]},{"group":"Bulks (LEGACY)","pages":[{"title":"Contact actions","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /bulk/contacts.json","href":"/api-reference/bulks-legacy/contact-actions"}]},{"group":"Campaigns (LEGACY)","pages":[{"title":"List campaigns","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /campaigns/index.json","href":"/api-reference/campaigns-legacy/list-campaigns"},{"title":"Add campaign","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json put /campaigns/add.json","href":"/api-reference/campaigns-legacy/add-campaign"},{"title":"Edit campaign","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /campaigns/edit/{id}.json","href":"/api-reference/campaigns-legacy/edit-campaign"},{"title":"Delete campaign","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json delete /campaigns/delete/{id}.json","href":"/api-reference/campaigns-legacy/delete-campaign"}]},{"group":"Numbers (LEGACY)","pages":[{"title":"List numbers","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json get /numbers/index.json","href":"/api-reference/numbers-legacy/list-numbers"},{"title":"Edit a number","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /numbers/edit/{id}.json","href":"/api-reference/numbers-legacy/edit-a-number"},{"title":"Unregister a number","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json delete /numbers/clear/{id}.json","href":"/api-reference/numbers-legacy/unregister-a-number"}]},{"group":"SMS (LEGACY)","pages":[{"title":"Send sms","deprecated":null,"version":null,"openapi":"/api-reference/openapi.json post /sms/send.json","href":"/api-reference/sms/send-sms"}]},{"group":"CueCard (LEGACY)","pages":[{"title":"Create CueCard","deprecated":true,"version":null,"openapi":"/api-reference/openapi.json post /cuecards","href":"/api-reference/cuecard/create-cuecard"}]}]}]}]},{"tab":"Webhooks","pages":[{"title":"Webhooks","href":"/guides/webhooks/overview"}]},{"tab":"MCP","pages":[{"title":"MCP","href":"/guides/mcp/overview"}]},{"tab":"What's new","pages":[{"title":"What's new","href":"/changelog"}]}]},{"language":"de","pages":[{"title":"de","href":"/de"}]},{"language":"es","pages":[{"title":"es","href":"/es"}]},{"language":"fr","pages":[{"title":"fr","href":"/fr"}]},{"language":"nl","pages":[{"title":"nl","href":"/nl"}]},{"language":"pt","pages":[{"title":"pt","href":"/pt"}]}]},"basePath":"","title":"Replace a number's call flow - CloudTalk Help Center","deploymentId":"dpl_QQ3G2kinQNQFFK6Sh8dmX2teK74w","buildId":"dpl_QQ3G2kinQNQFFK6Sh8dmX2teK74w","dynamics":["c2aa737661","2b790eda92","b0f84f53ff","a9bb46feb3"],"chunks":["OpenApiReferenceProvider-CyAr6xD1.js","snippetPresets-BSqedH3o.js","utils-DXfQSZU_.js","style-to-object-BY3JEAdk.js","utils-DiMyLQC-.js","v4-DIgz8zy6.js","addTypeLabelsToSchema-DvPCxzT8.js","conditional-requirements-CFM0id0Q.js","cloneDeep-dx7iM-7h.js","_Uint8Array-DpQIK2Aw.js","isObject-FP1Yky1u.js","ApiExamples-B2sy5qvP.js","usePlaygroundInputsStore-BDc5FJKB.js","shallow-DxZq5uhD.js","isEqual-Bl_IuwU4.js","CodeSnippets-D1UoeS-I.js","CodeSnippet-C87it1Zg.js","use-playground-group-access-DyECiQ2v.js","Page-wigwbDGe.js","api-description-markdown-DHZIfeWZ.js","DynamicMarkdown-D8KwOkxZ.js","SectionHeading-uish4Ed2.js","MethodPill-DR7O5MCP.js","getPastedJson-D2WQib0m.js","Check2Icon-CUuzblYS.js","axios-CsQoIw0U.js","Markdown-K6_WYP3x.js","AssistantPageLink-BrppVW5v.js","dist-OmDnwAnM.js","lib-DMeTj1gb.js","lib-B8HbPgcC.js","katex-Dbtb6Wk7.js","html-void-elements-mCSPHezU.js","marked.esm-CZWythHk.js"]}