Send HTTP request on function call
Recipe ToolsDeveloper ToolAPI Integration
What it does
When a function call occurs, this automation sends an HTTP request via Rest and returns the response. The result flows back to the caller in real time.
Who it's for
Engineering teams who need to invoke HTTP requests from within their workflows without manual API calls.
Apps used
How teams use this
Call an external API from a workflow
Invoke the function to send an HTTP request to a third-party API when someone needs data, and pass the response back into the next step without manual calls.
Fetch data from a REST endpoint
Use the function to retrieve data from a Rest endpoint and return it to another workflow or application. The caller receives the result immediately.
Add error handling to the request
Extend this automation to check the HTTP response status and filter results based on success or failure. Only successful responses proceed to the next step.
How it works
- Receive the function call. A function call starts this automation in real time, passing any parameters needed for the Rest request to the target endpoint.
- Send request via Rest. Rest sends the HTTP request to the target endpoint with the data from the function call, then waits for the response to return.
- Return the result. Send the Rest response back to the caller so the function completes with the data it needs for the next step.