6seven8
6seven8

Reputation: 97

How to generate fixed webhook url?

I am using Twilio to send and receive SMS messages from a Python application. The issue is that their tutorials use ngrok as a way to get through the firewall but I don't want to have to run ngrok every time I run my app and the URL changes every time ngrok runs so I have to change the webhook url on Twilio every time. Is there a better way around this? Is this something that requires a server?

Upvotes: 0

Views: 2095

Answers (2)

Alan
Alan

Reputation: 10771

You can look at going Serverless with Twilio Functions (Node.js/JavaScript).

Building Apps with Twilio Functions https://support.twilio.com/hc/en-us/articles/115007737928-Building-apps-with-Twilio-Functions

Upvotes: 1

zen_of_python
zen_of_python

Reputation: 167

There are two options that you have.

  1. The paid option of ngrok allows you to set a persistent url so that you don't have to chance the webhook url on Twilio each time.

  2. If you have a server, then you would also be able to set a persistent url to your server.

Unfortunately, the free version of ngrok does not allow you to set a persistent url.

Upvotes: 2

Related Questions