curl --request GET \
--url https://api.cloudtalk.io/v1/numbers/{numberId}/call-flow/versions \
--header 'Authorization: Basic <encoded-value>'import requests
url = "https://api.cloudtalk.io/v1/numbers/{numberId}/call-flow/versions"
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', 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",
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"
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")
.header("Authorization", "Basic <encoded-value>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.cloudtalk.io/v1/numbers/{numberId}/call-flow/versions")
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{
"data": [
{
"id": "1836",
"numberId": "600",
"createdAt": "2026-11-06T10:05:41Z",
"source": "draft",
"actor": {
"type": "apiKey",
"userId": null,
"apiKeyId": "key-example-1"
},
"stepCount": 2,
"changes": {
"added": 0,
"updated": 0,
"removed": 5
},
"note": "Shorter menu for the holidays",
"restoredFromVersionId": null,
"live": false
},
{
"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
},
{
"id": "1834",
"numberId": "600",
"createdAt": "2026-11-05T16:40:03Z",
"source": "dashboard",
"actor": {
"type": "user",
"userId": "7",
"apiKeyId": null
},
"stepCount": 11,
"changes": {
"added": 1,
"updated": 2,
"removed": 0
},
"note": null,
"restoredFromVersionId": null,
"live": false
}
],
"pagination": {
"limit": 20,
"next": null
},
"requestId": "e2b7d10a93"
}{
"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": "CALL_FLOWS.NUMBER_NOT_FOUND",
"message": "No number with this id in your account."
},
"requestId": "c41f0a9e2b"
}<string>{
"error": {
"code": "<string>",
"message": "<string>",
"details": [
{
"code": "<string>",
"message": "<string>",
"target": "<string>"
}
],
"target": "<string>"
},
"requestId": "<string>"
}List call flow versions
Returns the number’s versions, newest first. Every save of the flow writes one: saves in the Dashboard designer as well as through this API, drafts, publishes, restores, deletions, and cascades from another number. The first save after versions were introduced also stores the flow as it was, as a baseline version. The latest 50 versions per number are kept, and up to 10 drafts, which do not count towards the 50. The baseline is always kept, and does not count either, so you can always return to the flow as it was before versions were introduced. When a number is released, its versions are deleted with it. A number whose flow you delete stays yours and keeps its versions.
Some changes write no version: deleting a user or group in the Dashboard, a plan downgrade, the legacy Edit a number, and a new number’s default step. The ETag still changes, and the next save records the result.
curl --request GET \
--url https://api.cloudtalk.io/v1/numbers/{numberId}/call-flow/versions \
--header 'Authorization: Basic <encoded-value>'import requests
url = "https://api.cloudtalk.io/v1/numbers/{numberId}/call-flow/versions"
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', 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",
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"
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")
.header("Authorization", "Basic <encoded-value>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.cloudtalk.io/v1/numbers/{numberId}/call-flow/versions")
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{
"data": [
{
"id": "1836",
"numberId": "600",
"createdAt": "2026-11-06T10:05:41Z",
"source": "draft",
"actor": {
"type": "apiKey",
"userId": null,
"apiKeyId": "key-example-1"
},
"stepCount": 2,
"changes": {
"added": 0,
"updated": 0,
"removed": 5
},
"note": "Shorter menu for the holidays",
"restoredFromVersionId": null,
"live": false
},
{
"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
},
{
"id": "1834",
"numberId": "600",
"createdAt": "2026-11-05T16:40:03Z",
"source": "dashboard",
"actor": {
"type": "user",
"userId": "7",
"apiKeyId": null
},
"stepCount": 11,
"changes": {
"added": 1,
"updated": 2,
"removed": 0
},
"note": null,
"restoredFromVersionId": null,
"live": false
}
],
"pagination": {
"limit": 20,
"next": null
},
"requestId": "e2b7d10a93"
}{
"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": "CALL_FLOWS.NUMBER_NOT_FOUND",
"message": "No number with this id in your account."
},
"requestId": "c41f0a9e2b"
}<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"
Query Parameters
Response
One page of versions.