Skip to main content
GET
Get a number's call flow

Authorizations

Authorization
string
header
required

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.

Example:

"\"cf1-9fJ2kQx7Lr0aT3\""

Path Parameters

numberId
string
required

The number id, as List and search numbers returns it.

Example:

"600"

Query Parameters

include
enum<string>

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.

businessHours
object
required

Whether business hours run before this flow. When closed, they decide what the caller hears, instead of the flow. Read-only.

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.

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.