SUPPORT.TWILIO.COM END OF LIFE NOTICE: This site, support.twilio.com, is scheduled to go End of Life on February 27, 2024. All Twilio Support content has been migrated to help.twilio.com, where you can continue to find helpful Support articles, API docs, and Twilio blog content, and escalate your issues to our Support team. We encourage you to update your bookmarks and begin using the new site today for all your Twilio Support needs.

How do I configure the messaging settings for a TwiML App?

Objective

This article helps you set the message handling for a TwiML App, so incoming messages on any phone number assigned to the app are sent to your web application, with a fallback if that handler fails.

 

Product

Programmable Messaging

 

Environment

Twilio Console

 

User Account Permission/Role(s) Required

Your user needs permission to read TwiML Apps on the account. Without it, the console shows an access-required message instead of the settings form.

 

Procedure

  1. In the Twilio Console, select Builder tools in the left sidebar.
  2. Select TwiML host & config, then TwiML apps.
  3. Select the app you want to configure, then select the Messaging tab.
  4. Under Primary message control configuration, enter the Request URL that handles incoming messages, and choose its HTTP method, HTTP GET or HTTP POST. The URL can be a webhook, a Function, or a TwiML bin URL.
  5. Under Fallback message control configuration, enter a Fallback URL and its HTTP method. This configuration is used if your primary handler fails.
  6. Under Status callback, enter a Status callback URL. This URL receives an HTTP request with the status of a message sent in response to an inbound message.
  7. Select Save. A confirmation appears reading Messaging settings updated successfully, and the fields keep the values you entered.

 

Additional Information

  • Each URL field must be a valid URL. A Fallback URL cannot be saved on its own: if you enter one without a Request URL, the form reports Fallback URL cannot be set without a Request URL. Please provide a Request URL first.
  • Both editable HTTP method fields default to HTTP POST.
  • A reserved application cannot be modified. On one of those, the fields are unavailable.

 

This content was generated by AI and reviewed, edited, and verified by a human.

Have more questions? Submit a request
Powered by Zendesk