0

When there is an incoming message to a twilio number, twilio will try to post the message to an endpoint provided in the webhook. But what's the expected behavior if the endpoint is not accessible or server is down? Can the message be retrieved later or is the message shown as undelivered to the person sending the text.

SHB
  • 589
  • 1
  • 6
  • 18

1 Answers1

3

Twilio developer evangelist here.

Firstly, I recommend you set up a fallback URL, so that if Twilio can't reach your primary server then it can try again to a secondary one. That fallback URL should be served by a different application than your primary URL so that if the primary is down, it doesn't affect the fallback.

If your fallback also fails, the message is not lost. You can still retrieve the contents of the messages from the API using the Message resource. It is also visible in the SMS logs in your Twilio console.

philnash
  • 70,667
  • 10
  • 60
  • 88