Phone Numbers
Save call flow draft
Changed onCreates or updates the working draft of a phone number's call flow. The draft is validated leniently and is not live until published. Optimistic concurrency: pass the lock_version returned by a previous read to detect a concurrent edit, and base_published_version to detect a publish that happened mid-edit.
put/v2/api/numbers/{number}/call_flow/draft
Request
- Base URLhttps://api.withallo.com
- URLhttps://api.withallo.com/v2/api/numbers/{number}/call_flow/draft
- AuthAPI key in header Authorization
Path parameters
numberstring required
Example:+14155551234
Allo phone number in E.164 format
Request body
Example request
{
"schema_version": 1
}Response
The saved draft
Example response
{
"data": {
"id": "cflv-abc123",
"flow_id": "cflw-abc123",
"version": 3,
"status": "PUBLISHED",
"schema_version": 1,
"engine_subset": "FULL_FLOW",
"number": "+14155551234",
"confirmation_url": "https://app.withallo.com/call-flow-draft/cflv-abc123",
"entry_node_id": "node-22"
}
}Changes
- info
endpoint added
- info