0

I have some issues trying to pass a custom parameter to TwiML Bin. See attached pictures. Everything works except the paramter.

Any ideas of what I am doing wrong?

Setup:

Pic1

Pic2

Raduan Santos
  • 1,023
  • 1
  • 21
  • 45

1 Answers1

1

Twilio developer evangelist here.

ApplicationSID is from TwiML applications which are containers for a set of URLs and configurations that tell Twilio what to do when one of your Twilio numbers receives a call or SMS message.

If you're using dynamic content from custom HTTP request parameters (ie. name in this case), you should take your TwiML bin's URL and pass it the Name parameter like this in, for example, Python, to generate a call with the custom parameters:

client.calls.create(
    url="your-twiml-bin-url?Name=Jeremy",
    to="your-phone-number",
    from_="your-twilio-phone-number")
lizziepika
  • 3,231
  • 1
  • 14
  • 23