curl --request GET \
--url https://api.cloudtalk.io/v1/numbers/{numberId}/call-flow/versions/{versionId} \
--header 'Authorization: Basic <encoded-value>'import requests
url = "https://api.cloudtalk.io/v1/numbers/{numberId}/call-flow/versions/{versionId}"
headers = {"Authorization": "Basic <encoded-value>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Basic <encoded-value>'}};
fetch('https://api.cloudtalk.io/v1/numbers/{numberId}/call-flow/versions/{versionId}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.cloudtalk.io/v1/numbers/{numberId}/call-flow/versions/{versionId}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Basic <encoded-value>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.cloudtalk.io/v1/numbers/{numberId}/call-flow/versions/{versionId}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Basic <encoded-value>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.cloudtalk.io/v1/numbers/{numberId}/call-flow/versions/{versionId}")
.header("Authorization", "Basic <encoded-value>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.cloudtalk.io/v1/numbers/{numberId}/call-flow/versions/{versionId}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Basic <encoded-value>'
response = http.request(request)
puts response.read_body{
"id": "1835",
"numberId": "600",
"createdAt": "2026-11-06T10:02:17Z",
"source": "api",
"actor": {
"type": "apiKey",
"userId": null,
"apiKeyId": "key-example-1"
},
"stepCount": 7,
"changes": {
"added": 7,
"updated": 0,
"removed": 11
},
"note": "Order status line",
"restoredFromVersionId": null,
"live": true,
"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": []
}
]
}
],
"problems": []
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": [
{
"code": "<string>",
"message": "<string>",
"target": "<string>"
}
],
"target": "<string>"
},
"requestId": "<string>"
}{
"code": "UNAUTHORIZED",
"message": "You are not authorized to access this resource."
}{
"error": {
"code": "FORBIDDEN",
"message": "This account is not active."
},
"requestId": "3b0e51c7a9"
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": [
{
"code": "<string>",
"message": "<string>",
"target": "<string>"
}
],
"target": "<string>"
},
"requestId": "<string>"
}<string>{
"error": {
"code": "<string>",
"message": "<string>",
"details": [
{
"code": "<string>",
"message": "<string>",
"target": "<string>"
}
],
"target": "<string>"
},
"requestId": "<string>"
}Get a call flow version
Returns one version: the version object plus its steps, rendered as Get a number’s call flow renders the live flow. References are resolved as they are now, so a group deleted since shows as null with a problem. Header values are hidden.
curl --request GET \
--url https://api.cloudtalk.io/v1/numbers/{numberId}/call-flow/versions/{versionId} \
--header 'Authorization: Basic <encoded-value>'import requests
url = "https://api.cloudtalk.io/v1/numbers/{numberId}/call-flow/versions/{versionId}"
headers = {"Authorization": "Basic <encoded-value>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Basic <encoded-value>'}};
fetch('https://api.cloudtalk.io/v1/numbers/{numberId}/call-flow/versions/{versionId}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.cloudtalk.io/v1/numbers/{numberId}/call-flow/versions/{versionId}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Basic <encoded-value>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.cloudtalk.io/v1/numbers/{numberId}/call-flow/versions/{versionId}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Basic <encoded-value>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.cloudtalk.io/v1/numbers/{numberId}/call-flow/versions/{versionId}")
.header("Authorization", "Basic <encoded-value>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.cloudtalk.io/v1/numbers/{numberId}/call-flow/versions/{versionId}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Basic <encoded-value>'
response = http.request(request)
puts response.read_body{
"id": "1835",
"numberId": "600",
"createdAt": "2026-11-06T10:02:17Z",
"source": "api",
"actor": {
"type": "apiKey",
"userId": null,
"apiKeyId": "key-example-1"
},
"stepCount": 7,
"changes": {
"added": 7,
"updated": 0,
"removed": 11
},
"note": "Order status line",
"restoredFromVersionId": null,
"live": true,
"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": []
}
]
}
],
"problems": []
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": [
{
"code": "<string>",
"message": "<string>",
"target": "<string>"
}
],
"target": "<string>"
},
"requestId": "<string>"
}{
"code": "UNAUTHORIZED",
"message": "You are not authorized to access this resource."
}{
"error": {
"code": "FORBIDDEN",
"message": "This account is not active."
},
"requestId": "3b0e51c7a9"
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": [
{
"code": "<string>",
"message": "<string>",
"target": "<string>"
}
],
"target": "<string>"
},
"requestId": "<string>"
}<string>{
"error": {
"code": "<string>",
"message": "<string>",
"details": [
{
"code": "<string>",
"message": "<string>",
"target": "<string>"
}
],
"target": "<string>"
},
"requestId": "<string>"
}Authorizations
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).
Path Parameters
The number id, as List and search numbers returns it.
"600"
A version id from List call flow versions, or one of three names: live (the version the number runs now), latest (the newest version of any source) and latest-draft (the newest draft).
"1834"
Response
The version.
baseline: the flow as it was before the first save that kept versions. dashboard: a save in the Dashboard designer. api: a save through this API. draft: a draft, not live. publish: a published draft. restore: a restored version. delete: the flow was deleted. cascade: a change to another number deleted a Jump to step of this flow.
baseline, dashboard, api, draft, publish, restore, delete, cascade The version's steps, rendered as a read renders the live flow. References are resolved as they are now, and header values are hidden. A header reads valueSet: true also when the version no longer keeps its value; Restore a call flow version says when that happens. New steps of a draft have a ref and no id.
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
Show child attributes