Call Flows
Create call flow
Creates a Call Flow
Permissions
The API token used to authenticate must have the following scope(s) enabled to make a successful request: Voice, Messaging, Fax, or Video.
Learn more about API scopes.
post/api/fabric/resources/call_flows
Request body
Example request
{
"title": "Booking Assistant",
"flow_data": {},
"relayml": {
"sections": {
"main": [
{
"answer": {
"max_duration": 3600,
"codecs": "PCMU,PCMA,OPUS",
"username": "user123",
"password": "securepassword"
}
}
]
}
}
}Response
The request has succeeded and a new resource has been created as a result.
Example response
{
"display_name": "Booking Assistant",
"type": "call_flow",
"created_at": "2024-05-06T12:20:00Z",
"updated_at": "2024-05-06T12:20:00Z",
"call_flow": {
"title": "Booking Assistant",
"flow_data": {},
"relayml": {
"sections": {
"main": [
{
"answer": {
"max_duration": 3600,
"codecs": "PCMU,PCMA,OPUS",
"username": "user123",
"password": "securepassword"
}
}
]
}
},
"document_version": 1
}
}