For AI agents: a documentation index is available at the root level at /llms.txt and /llms-full.txt. Append /llms.txt to any URL for a page-level index, or .md for the markdown version of any page.
Log inSign up
Support
cXMLREST API
cXMLREST API
  • Core
    • Compatibility API
    • cXML Specification
  • Guides
    • Compatibility API Webhooks
    • Receive SMS
    • Send SMS
    • Inbound Fax Callback
    • Add mustache template parameters to cXML responses
    • Gathering user input
  • Voice
    • Overview
    • Conference
    • Connect
    • Denoise
    • Dial
    • Echo
    • Enqueue
    • Gather
    • Hangup
    • Leave
    • Number
    • Pause
    • Pay
    • Play
    • Queue
    • Record
    • Redirect
    • Refer
    • Reject
    • Room
    • Say
    • Sip
    • Sms
    • Stream
    • Verto
    • VirtualAgent
  • Messaging
    • Overview
    • Message
    • Redirect
  • Fax
    • Overview
    • Receive
    • Reject
LogoLogoSignalWire Docs
Log inSign up
Support
On this page
  • Verb attributes
  • Nouns
  • Nesting
  • Examples
  • Redirect to absolute URL
Messaging

Redirect

|View as Markdown|Open in Claude|
Was this page helpful?
Edit this page
Previous

Fax Overview

Next
Built with

The <Redirect> verb transfers control from the current document to another. It is effectively an exit statement from the current document, as there is no way to return to any instructions listed after the <Redirect> verb.

An example message that redirects next XML instruction to another document:

1<?xml version="1.0" encoding="UTF-8"?>
2<Response>
3 <Redirect>https://your-application.com/next-instructions</Redirect>
4</Response>

Verb attributes

The following attribute is available for the verb <Redirect>:

method
stringDefaults to POST

Specifies whether the redirect is a GET or a POST.

Nouns

The following item is accepted as a noun for the <Redirect> verb:

NounDescription
plain textThe URL, in plain text, of the document to execute.

Nesting

No other verbs can be nested within <Redirect> and you cannot nest <Redirect> within any other verbs.

Examples

Redirect to absolute URL

1<?xml version="1.0" encoding="UTF-8"?>
2<Response>
3 <Redirect>http://www.somesite.com/NextDoc.xml</Redirect>
4</Response>

To continue processing this message using the instructions in another document, specify the absolute URL of that document as the noun to the <Redirect> verb.


*Twilio and TwiML are trademarks of Twilio, Inc. SignalWire, Inc. and its products are not affiliated with or endorsed by Twilio, Inc.