Contentstack for Developers
Automate- Using an HTTP Connector to Send Data to a 3rd Party System
Sending HTTP Messages with Automate
An HTTP Action allows us to send an HTTP call when a trigger event occurs. This enables us to send JSON from an entry, asset, or release to any service that accepts an HTTP POST, GET, PUT, DELETE, or PATCH.
In this module we will use an HTTP Action connector to send the entry JSON to an external webhook listener. This method can be used to integrate with third-party systems that do not have a pre-built connector but can receive a GET or POST request.
Topics covered:
-
Sending JSON to an external web service
-
Using the website http://webhook.site to receive to our HTTP message
Please watch the following video to see an example of sending an HTTP message with automate:
Exercise: Create a new Automation that sends an HTTP Post request to a 3rd party web service when an entry is published
1. Create a new Automation using a Contentstack Trigger
2. Add a new action and use the HTTP Connector
3. Go to http://webhook.site and create a new webhook listener
4. In the Configure Action step, specify the URL of the webhook from above