Understand HTTP Post
Easily send data from Drip to any URL endpoint with Drip’s Send an HTTP Post action.
HTTP (Hypertext Transfer Protocol) is a common request-response protocol between a client and a server. The POST method is used to send data to a server to create or update a resource. In Drip, the HTTP POST method is useful to send data to your server at any point in an Automation.
Send an HTTP POST in Automation
The HTTP POST Action allows you to send JSON or form-encoded requests to a URL endpoint set up to receive the request.
Send a POST request to a custom script located on one of your servers anytime a person reaches a certain point in one of your Workflows. Or, you might be using another software that provides you with a URL endpoint to receive requests from outside sources.
Here is an example of the payload that gets sent automatically with the HTTP POST request:
“name”: “John Doe”
“tags”: [“Customer”, “SEO”],
“custom_field _1”: “foo,
HTTP Post vs. Webhooks
There are a couple of things that make the HTTP POST method preferable to webhooks for certain use cases:
- Add custom data to an HTTP post. Webhooks all use standard payloads.
- With an HTTP post, you are choosing to be notified at a specific point in your workflow/funnel. Webhooks are always based on a particular Drip event.
With webhooks, you pick an event (e.g., “Updated a custom field”) and get notifications about all of them. That can make webhooks noisy if you want notifications at a few key places.
Configure an HTTP POST
You can use the HTTP POST automation action in Workflows, Rules, and Bulk Operations.
In Workflows, you can send the request anywhere you can add an action step. In Rules, you can add the request to the action step (step 2) of the rule. In Bulk Operations, you can use the action in the action step (step 2) of the operation.
To configure an HTTP POST in a Workflow:
- To go Automations > Workflows
- Select the Workflow you'd like to add an HTTP Post Action to
- Click + on the onde where you'd like to add an HTTP POST Action
- Select Action > Drip > Send an HTTP Post
- Enter the End Point URL
- Select JSON or Form encode
- Enter Custom Data
- Click Update Action
Example Action Set Up
What action should we perform?
Send an HTTP post.
Enter your endpoint URL.
Select either JSON or Form encode (it will default to JSON if unchanged).
Custom Data (optional)
Hard code additional data to be sent along with the request, like an access token, for example. When the HTTP POST action is set to send JSON as its content type, your custom data is sent in the JSON payload and stored in the “custom” object, not as URL parameters.