See also:
Sending data to Zapier
Sending data to IFTTT
The HTTP request action allows you to connect your email workflows to any external service that exposes a REST API. You can use it to send parsed data to a remote server, query an API and retrieve information for use in subsequent actions, or integrate with third-party platforms that accept HTTP calls.
One of the most important things to know about the HTTP request action is that, once it runs, it automatically generates four fields that become available for any subsequent action in the workflow:
200 OK for a successful request or 404 Not Found if the endpoint does not exist). This field is especially useful when combined with a bifurcation action to check whether the request was successful before continuing with other actions.The following screenshot shows these generated fields in the Activity panel after running an HTTP request action. Notice how both the first HTTP request (“check if API is responding”) and the second one (“Send transaction to API”) produce their own set of fields:

To set up an HTTP request action, you first need to choose the HTTP method (such as POST, GET, PUT, or DELETE) and enter the destination URL. The URL can include field placeholders if you need to build it dynamically from parsed email data. Below the URL, there are four tabs that let you configure different aspects of the request:
?key=value&another=value2).Content-Type header to application/json when working with REST APIs, but you can add any header that the server expects.The following screenshot shows an example of an HTTP request action configured to send a POST request to an API endpoint. The Body tab is selected with the raw format, containing a JSON payload that uses field placeholders like <%time%>, <%amount%>, and <%description%> to include data parsed from the email:

A common pattern when working with the HTTP request action is to check the response status and then use the response data in subsequent actions. For example, you can place a bifurcation action right after the HTTP request to verify that the server returned a successful status code (such as 200 OK). If the request was successful, the workflow continues with the normal processing. If it failed, you can route the workflow to an alternative path, such as sending an error notification email.
The screenshot below shows a workflow that demonstrates this pattern. The first HTTP request action (“check if API is responding”) sends a request and its response is evaluated by the bifurcation action (“if API is working”). If the API is responding correctly, the workflow proceeds to loop through each transaction and send the data to the API. If the API is not responding, an error notification email is sent instead:
