Call Flows
Returns a shallow list of call flows without the full node tree. Use the single resource endpoint to retrieve the complete call flow including all nodes and branches.
The Bearer API key of your user more info.
an integer specifying the starting point (beginning with 0) when paging through a list of entities
0the maximum number of results when paging through a list of entities.
50The call flows
GET /api/call-flows HTTP/1.1
Authorization: YOUR_API_KEY
Accept: */*
The call flows
[
{
"id": 1,
"name": "text",
"assignedNumber": {
"id": 1,
"name": "text",
"phoneNumber": {
"regionCode": "text",
"number": "text"
}
},
"teams": [
{
"id": 1,
"name": "text"
}
],
"managedBy": {
"type": "API",
"source": "text"
}
}
]The Bearer API key of your user more info.
The newly created call flow
POST /api/call-flows HTTP/1.1
Authorization: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 552
{
"id": 1,
"name": "text",
"language": "de",
"assignedNumber": {
"id": 1,
"name": "text",
"phoneNumber": {
"regionCode": "text",
"number": "text"
}
},
"teams": [
{
"id": 1,
"name": "text"
}
],
"root": {
"id": 1,
"name": "text",
"nodeType": "ROOT",
"metadata": {
"textMessage": "text",
"customAudioUrl": "text",
"language": "en",
"aiVoiceModel": "emma"
},
"branches": [
{
"id": 1,
"branchType": "BRANCH",
"condition": "text",
"target": {
"id": 1,
"name": "text",
"nodeType": "ROOT",
"metadata": {
"textMessage": "text",
"customAudioUrl": "text",
"language": "en",
"aiVoiceModel": "emma"
},
"branches": [
"[Circular Reference]"
]
}
}
]
}
}The newly created call flow
{
"id": 1,
"name": "text",
"language": "de",
"assignedNumber": {
"id": 1,
"name": "text",
"phoneNumber": {
"regionCode": "text",
"number": "text"
}
},
"teams": [
{
"id": 1,
"name": "text"
}
],
"root": {
"id": 1,
"name": "text",
"nodeType": "ROOT",
"metadata": {
"textMessage": "text",
"customAudioUrl": "text",
"language": "en",
"aiVoiceModel": "emma"
},
"branches": [
{
"id": 1,
"branchType": "BRANCH",
"condition": "text",
"target": {
"id": 1,
"name": "text",
"nodeType": "ROOT",
"metadata": {
"textMessage": "text",
"customAudioUrl": "text",
"language": "en",
"aiVoiceModel": "emma"
},
"branches": [
"[Circular Reference]"
]
}
}
]
},
"managedBy": {
"type": "API",
"source": "text"
}
}The Bearer API key of your user more info.
entity ID
The requested call flow
GET /api/call-flows/{id} HTTP/1.1
Authorization: YOUR_API_KEY
Accept: */*
The requested call flow
{
"id": 1,
"name": "text",
"language": "de",
"assignedNumber": {
"id": 1,
"name": "text",
"phoneNumber": {
"regionCode": "text",
"number": "text"
}
},
"teams": [
{
"id": 1,
"name": "text"
}
],
"root": {
"id": 1,
"name": "text",
"nodeType": "ROOT",
"metadata": {
"textMessage": "text",
"customAudioUrl": "text",
"language": "en",
"aiVoiceModel": "emma"
},
"branches": [
{
"id": 1,
"branchType": "BRANCH",
"condition": "text",
"target": {
"id": 1,
"name": "text",
"nodeType": "ROOT",
"metadata": {
"textMessage": "text",
"customAudioUrl": "text",
"language": "en",
"aiVoiceModel": "emma"
},
"branches": [
"[Circular Reference]"
]
}
}
]
},
"managedBy": {
"type": "API",
"source": "text"
}
}The Bearer API key of your user more info.
entity ID
The updated call flow
PUT /api/call-flows/{id} HTTP/1.1
Authorization: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 552
{
"id": 1,
"name": "text",
"language": "de",
"assignedNumber": {
"id": 1,
"name": "text",
"phoneNumber": {
"regionCode": "text",
"number": "text"
}
},
"teams": [
{
"id": 1,
"name": "text"
}
],
"root": {
"id": 1,
"name": "text",
"nodeType": "ROOT",
"metadata": {
"textMessage": "text",
"customAudioUrl": "text",
"language": "en",
"aiVoiceModel": "emma"
},
"branches": [
{
"id": 1,
"branchType": "BRANCH",
"condition": "text",
"target": {
"id": 1,
"name": "text",
"nodeType": "ROOT",
"metadata": {
"textMessage": "text",
"customAudioUrl": "text",
"language": "en",
"aiVoiceModel": "emma"
},
"branches": [
"[Circular Reference]"
]
}
}
]
}
}The updated call flow
{
"id": 1,
"name": "text",
"language": "de",
"assignedNumber": {
"id": 1,
"name": "text",
"phoneNumber": {
"regionCode": "text",
"number": "text"
}
},
"teams": [
{
"id": 1,
"name": "text"
}
],
"root": {
"id": 1,
"name": "text",
"nodeType": "ROOT",
"metadata": {
"textMessage": "text",
"customAudioUrl": "text",
"language": "en",
"aiVoiceModel": "emma"
},
"branches": [
{
"id": 1,
"branchType": "BRANCH",
"condition": "text",
"target": {
"id": 1,
"name": "text",
"nodeType": "ROOT",
"metadata": {
"textMessage": "text",
"customAudioUrl": "text",
"language": "en",
"aiVoiceModel": "emma"
},
"branches": [
"[Circular Reference]"
]
}
}
]
},
"managedBy": {
"type": "API",
"source": "text"
}
}The Bearer API key of your user more info.
entity ID
Empty body delete response
DELETE /api/call-flows/{id} HTTP/1.1
Authorization: YOUR_API_KEY
Accept: */*
Empty body delete response
No content
The Bearer API key of your user more info.
unique name of the call flow
The requested call flow
GET /api/call-flows/name/{name} HTTP/1.1
Authorization: YOUR_API_KEY
Accept: */*
The requested call flow
{
"id": 1,
"name": "text",
"language": "de",
"assignedNumber": {
"id": 1,
"name": "text",
"phoneNumber": {
"regionCode": "text",
"number": "text"
}
},
"teams": [
{
"id": 1,
"name": "text"
}
],
"root": {
"id": 1,
"name": "text",
"nodeType": "ROOT",
"metadata": {
"textMessage": "text",
"customAudioUrl": "text",
"language": "en",
"aiVoiceModel": "emma"
},
"branches": [
{
"id": 1,
"branchType": "BRANCH",
"condition": "text",
"target": {
"id": 1,
"name": "text",
"nodeType": "ROOT",
"metadata": {
"textMessage": "text",
"customAudioUrl": "text",
"language": "en",
"aiVoiceModel": "emma"
},
"branches": [
"[Circular Reference]"
]
}
}
]
},
"managedBy": {
"type": "API",
"source": "text"
}
}Last updated
Was this helpful?