0

Good day. I am using an HTTP Request in Twilio to trigger a second Twilio Studio flow. I am getting an authentication error but I don't know how to structural place my info in the Request Body. Any help would be appreciated!

1 Answers1

0

You'll need to add your Twilio client SID and key to the headers of the HTTP widget, otherwise the call to the REST API of your flow will fail as you're seeing now.

Rodzilla
  • 215
  • 1
  • 9
  • Do you know how to do this, there does not seem to be that option. – Joe C Jul 19 '19 at 14:42
  • Since you're triggering the flow from another flow using the HTTP widget, the safest (and easiest) route would be to create a simple Twilio function calling the other Flow API. In that case you can use the HTTP widget in Studio Flow A to call the Twilio function which in turn will trigger Studio Flow B. If you enable the function to include credentials you don't have to pass them along. In addition, you should secure the function so that it can only be called internally and isn't exposed publicly. See https://www.twilio.com/docs/runtime/functions/invocation#context-object – Rodzilla Jul 20 '19 at 22:37
  • Thank you for answering. I was able to accomplish this using a function with got. – Joe C Jul 23 '19 at 16:36