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
- Acces the TwiML Apps page in Console.
- Click Create new TwiML App.
- 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.