The root element of Twilio's XML Markup is the <Response> element.
All of Twilio's verb elements must be nested within this element, any other structure is
considered invalid.
| Attribute Name | Allowed Values | Default Value |
|---|---|---|
| version | Twilio version identifier | your accounts default version |
The version attribute tells the Twilio engine which version of the software to use to process this TwiML document. This is useful to developers who would like their application to run under a legacy version of Twilio, rather than the latest release. The current Twilio releases are:
The <Response> element is the top level element and may not be nested in any other verb element.
The following verbs can be nested within <Response>
<?xml version="1.0" encoding="UTF-8"?>
<Response>
<Say>Hello</Say>
</Response>
An simple response example with a nested <Say> verb.
<?xml version="1.0" encoding="UTF-8"?>
<Response version="2008-08-01">
<Say>Hello</Say>
</Response>
A response element specifying its preferred version.