SWML inbound call webhook
Payload sent by SignalWire to a SWML calling webhook URL when SWML is fetched for a call. This includes inbound calls arriving on a phone number configured with a SWML calling handler, and outbound REST-initiated calls that point at a SWML URL. The same payload shape is also used when the SWML calling `transfer` or `execute` method targets an external URL — in those cases, the `params` object carries the values supplied to that step.
The webhook URL is expected to respond with the SWML document to execute for the call.
Payload
The payload of this webhook request is an object.
call
The call that triggered this fetch.
vars
Script-scope variables for this call session. Empty on the initial document fetch.
envs
Environment variables configured at the account or project level.
params
Parameters passed via a SWML calling execute or transfer step. An empty object on the initial document fetch.
Response
200
Webhook received