transfer
Fetch and execute a new SWML document from a URL. This is a tail call — it replaces the current
document and does not return. Steps after transfer, including steps in calling sections, are
skipped.
In the messaging context, transfer.dest must be a URL — it does not accept a section name or an
inline document.
Properties
transfer
An object that accepts the following properties.
transfer.dest
URL (http or https) to fetch the new SWML document from. Authentication can be set in the URL in
the format username:password@url.
transfer.method
HTTP method for the fetch request. One of GET, POST, PUT, PATCH, or DELETE.
transfer.params
Parameters to include in the request body of the fetch. Available as params.* in the transferred
document.
Webhook payload sent to dest
When transfer fetches an external document, SignalWire POSTs the
inbound message webhook payload
to dest:
message— the original inbound message that triggered this SWML document.params— the values supplied to thistransferstep.vars— runtime variables propagated from the current document (request_result,reply_result,request_response,request_response_code,request_response_body,reply_message_id). Present on transfer-driven fetches; absent on the initial inbound fetch.