List call flow step types
curl --request GET \
--url https://api.cloudtalk.io/v1/call-flow-step-types \
--header 'Authorization: Basic <encoded-value>'import requests
url = "https://api.cloudtalk.io/v1/call-flow-step-types"
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/call-flow-step-types', 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/call-flow-step-types",
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/call-flow-step-types"
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/call-flow-step-types")
.header("Authorization", "Basic <encoded-value>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.cloudtalk.io/v1/call-flow-step-types")
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": [
{
"type": "ringGroup",
"label": "Ring to: Group",
"description": "Ring a group of users.",
"available": true,
"unavailableReason": null,
"branches": [
"onAnswered",
"onNoAnswer"
],
"endsArray": true,
"onlyStep": false,
"schema": {
"type": "object",
"required": [
"type"
],
"additionalProperties": false,
"properties": {
"type": {
"const": "ringGroup"
},
"groupId": {
"type": "string",
"pattern": "^[1-9][0-9]*$"
},
"groupVariable": {
"type": "string",
"maxLength": 255
},
"ringSeconds": {
"type": [
"integer",
"null"
],
"minimum": 1
},
"onAnswered": {
"type": "array"
},
"onNoAnswer": {
"type": "array"
}
},
"oneOf": [
{
"required": [
"groupId"
]
},
{
"required": [
"groupVariable"
]
}
]
}
},
{
"type": "jumpTo",
"label": "Jump to",
"description": "Jump to a specific step in any number's flow.",
"available": false,
"unavailableReason": "plan",
"branches": [],
"endsArray": true,
"onlyStep": false,
"schema": {
"type": "object"
}
}
],
"pagination": {
"limit": 100,
"next": null
},
"requestId": "c41f0a7e22"
}{
"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"
}<string>{
"error": {
"code": "<string>",
"message": "<string>",
"details": [
{
"code": "<string>",
"message": "<string>",
"target": "<string>"
}
],
"target": "<string>"
},
"requestId": "<string>"
}Call flows
List call flow step types
Lists the 18 step types with their fields as JSON Schema, and tells you which your account may use. Use it to build or check a document before you send it. A type outside your plan is refused on save with 403 CALL_FLOWS.STEP_TYPE_NOT_IN_PLAN, the same answer this list gives in available. All types come in one page: pagination.next is always null. It takes no query parameters.
GET
/
call-flow-step-types
List call flow step types
curl --request GET \
--url https://api.cloudtalk.io/v1/call-flow-step-types \
--header 'Authorization: Basic <encoded-value>'import requests
url = "https://api.cloudtalk.io/v1/call-flow-step-types"
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/call-flow-step-types', 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/call-flow-step-types",
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/call-flow-step-types"
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/call-flow-step-types")
.header("Authorization", "Basic <encoded-value>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.cloudtalk.io/v1/call-flow-step-types")
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": [
{
"type": "ringGroup",
"label": "Ring to: Group",
"description": "Ring a group of users.",
"available": true,
"unavailableReason": null,
"branches": [
"onAnswered",
"onNoAnswer"
],
"endsArray": true,
"onlyStep": false,
"schema": {
"type": "object",
"required": [
"type"
],
"additionalProperties": false,
"properties": {
"type": {
"const": "ringGroup"
},
"groupId": {
"type": "string",
"pattern": "^[1-9][0-9]*$"
},
"groupVariable": {
"type": "string",
"maxLength": 255
},
"ringSeconds": {
"type": [
"integer",
"null"
],
"minimum": 1
},
"onAnswered": {
"type": "array"
},
"onNoAnswer": {
"type": "array"
}
},
"oneOf": [
{
"required": [
"groupId"
]
},
{
"required": [
"groupVariable"
]
}
]
}
},
{
"type": "jumpTo",
"label": "Jump to",
"description": "Jump to a specific step in any number's flow.",
"available": false,
"unavailableReason": "plan",
"branches": [],
"endsArray": true,
"onlyStep": false,
"schema": {
"type": "object"
}
}
],
"pagination": {
"limit": 100,
"next": null
},
"requestId": "c41f0a7e22"
}{
"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"
}<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).