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.
An object that accepts the following properties.
URL (http or https) to fetch the new SWML document from. Authentication can be set in the URL in
the format username:password@url.
HTTP method for the fetch request. One of GET, POST, PUT, PATCH, or DELETE.
Parameters to include in the request body of the fetch. Available as params.* in the transferred
document.
destWhen 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 this transfer step.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.