Skip to main content
POST
Validate a 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-Match
string

Optional. The ETag of your last read; when stale, errors has CALL_FLOWS.ETAG_MISMATCH.

Example:

"\"cf1-9fJ2kQx7Lr0aT3\""

Path Parameters

numberId
string
required

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

Example:

"600"

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.

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 result of the check.

valid
boolean
required

true when every check that ran passed. With VOICE_AGENT_CHECK_SKIPPED in warnings, the voice agent ids were not checked, and a save may still answer 502 CALL_FLOWS.UPSTREAM_UNAVAILABLE.

errors
object[]
required

Every error a save would answer, each with its code, message and a JSON pointer in target. A stale If-Match adds CALL_FLOWS.ETAG_MISMATCH.

warnings
object[]
required
changes
object
required

What a save would change.