Objective
This article shows you how to add and configure the Make HTTP Request widget so your Studio flow calls your own API or a third-party service mid-execution and uses the response in later widgets.
Product
Studio
Environment
Twilio Console
User Account Permission/Role(s) Required
Editing a flow requires the Studio flows create and update permissions on the account.
Procedure
- In the Twilio Console, select Orchestration in the left sidebar.
- Select Studio, then Flows.
- Select the flow you want to edit to open the Editor tab.
- Open the widget library and drag Make HTTP Request onto the canvas.
- Select the new widget to open its configuration panel.
- Enter the endpoint in Request URL.
- Choose GET or POST in Request method.
- For a POST request, choose the Content type, such as Application/JSON, and enter the payload in Request body.
- To send parameters, select Add HTTP parameter, enter the parameter's name as the key and its content as the value, then select Save. Repeat for each parameter.
- Select Authenticate with Twilio if the endpoint should receive Twilio's request signature.
- Select Save.
- Open the Transitions tab and choose where the flow goes next for If success and If fail.
- Select Publish to make the change live.
Additional Information
- For GET requests the parameters are appended to the URL as a query string; for POST requests they are sent in the request body alongside or instead of Request body, depending on the content type you choose.
- The response is available to later widgets in the flow, so pair this widget with Split Based On... to branch on what your service returned.
- Always wire up If fail, a slow or unavailable endpoint otherwise leaves the flow with no path forward.
This content was generated by AI and reviewed, edited, and verified by a human.