0
votes

We have a requirement to configure callback URL with a custom parameter. It's possible to configure the callback http url in Twilio console. But we have to configure the callback url when we send sms so that when the user replies, twilio will make a call to the specified url mentioned. Is there any way to configure the callback url programmatically?

Your timely help is much appreciated.

1
@philnash: Could you please helppmurugan
@NickNguyen Can you please helppmurugan
Is this what you're looking for? stackoverflow.com/questions/46348307/…Alex Baban
Thank you @MeganSpeir. i am looking for something like this.stackoverflow.com/questions/29467402/… I need to configure smsurl while sending sms instead of configuring while creating sender number.pmurugan

1 Answers

1
votes

Twilio developer evangelist here.

You can't configure the SMS URL to be different based on different users responding to a Twilio number.

You can, however, direct this within your own system. When Twilio makes the webhook to your application it sends through a bunch of parameters including From, the number that sent you the message.

These parameters are sent as URL encoded parameters in the body of the POST request.

In your application you should be able to use that From parameter to look up your user and then deal with the incoming message for that user.

Let me know if that helps at all.