How Do I Create a TwiML App?

You can create TwiML Apps to be used with your custom Twilio applications via Console, or the REST API. TwiML Apps point to a webhook, and can be used just like a normal webhook URL. They are also required for Twilio API Access Tokens used by a number of products. This guide explains how to create a TwiML, and how to use it on a phone number.

Create a TwiML App in Console 

  1. Acces the TwiML Apps page in Console.
  2. Click Create new TwiML App.
  3. Fill out the TwiML App form as desired, and then click Create.
Friendly Name Enter the desired name for your app.
Voice Configuration Enter the URL for your voice app webhook, and then select the desired method - POST or GET. Click Optional Settings to add a Fallback URL, Status Callback URL, or enable Caller Name Lookups.
Messaging Configuration Enter the URL for your messaging app webhook, and then select the desired method - POST or GET. Click Optional Settings to add a Fallback URL, or Status Callback URL

Create a TwiML App via the REST API

TwiML apps can also be created via an HTTP POST request to the Applications resource. For full details, including sample code, please see our API documentation for the Applications Instance resource.

Configure a TwiML App on a Twilio Phone Number

A TwiML app can also be configured on a Twilio phone number for handling incoming calls, faxes, or messages. For complete instructions, please see the appropriate article:
Have more questions? Submit a request
Powered by Zendesk