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 a requirement for Twilio Client capability tokens

Create a TwiML App in Console 

  1. Login to your project at www.twilio.com/console.
  2. Click either Programmable Voice Icon-ProgVoice.png >TwiML > TwiML Apps or Programmable Messaging Icon-ProgSMS.png > Tools > TwiML Apps.
  3. Click the red + sign icon Icon_New.png, or Create new TwiML App.
  4. Fill out the TwiML App form as desired, and then click Save.
    Pic01.png
    • Properties - Friendly name: Enter the desired name for your app
    • Voice - Request URL: Enter the URL for your voice app webhook, and then select HTTP POST or GET. Click Show optional settings to add a fallback url, callback url, or enable caller name lookups.
    • Messaging - Request URL: Enter the URL for your sms app webhook, and then select HTTP POST or GET. Click Show optional settings to add a fallback url or 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