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, with the ETag as If-Match. A number with no steps returns "steps": [].
Business hours run first. When businessHours.active is true, business hours run before this flow, and when closed they decide what the caller hears.
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.
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.
Hidden values. HTTP Request header values are never returned.
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).
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.
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.
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.<id>}}, instead of by field name. It is accepted back as it is.
A 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.
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-None-Match
string
The ETag you last saw. When the flow still has it, the answer is 304 with no body. The ETag covers the steps only, not businessHours, versionId, updatedAt, editable, problems or the names of include=names.
names adds a read-only display name next to each reference.
Available options:
names
Response
The call flow.
A number's whole call flow as one typed document. A document a read returns is accepted by a save unchanged, except when it is editable: false, has no steps (a save needs at least one), or was saved in the Dashboard over a limit the Dashboard does not enforce. A read may exceed the maxLength and maxItems of the step schemas, which apply to saves: sending such a flow back unchanged is 422 VALIDATION.INVALID_FIELD at that field, and a ring step with steps under "no answer" but no ring time is 422 CALL_FLOWS.RING_SECONDS_REQUIRED.
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> | null
required
read-only
Time of the latest saved version, or of the latest step change when no version exists. Read-only. null when the flow has no steps and no version yet.
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.