Create call flow
Creates a visual Call Flow in your SignalWire project. The new flow becomes a reusable call handler that can be edited in Call Flow Builder and assigned to phone numbers or other routing resources. Use Create SWML Script for directly authored SWML, or Create Relay application for a Server SDK handler.
Permissions
The API token used to authenticate must have the following scope(s) enabled to make a successful request: Voice, Messaging, Fax, or Video.
Authentication
SignalWire Basic Authentication using Project ID and API Token.
The client sends HTTP requests with the Authorization header containing the word Basic followed by a space and a base64-encoded string of project_id:token. The project ID will be used as the username and the API token as the password.
Example:
Authorization: Basic base64(project_id:token)
Request
Call Flow Builder state, stored as an opaque JSON object. Optional but must be paired with relayml — provide both fields together or omit both. When both are omitted, SignalWire creates a starter Call Flow.
The calling SWML document this Call Flow should execute. Uses calling SWML methods. Optional but must be paired with flow_data — provide both fields together or omit both. When both are omitted, SignalWire creates a starter SWML document.