How to add an HTTP request step
An HTTP request step sends a request to another system, such as your online store, when a contact reaches it. It only calls addresses that start with https://.
Before you start
Any role can do this: Owner, Admin or Agent.
Steps
- Go to Journeys.
- Click the journey to open it, or create a journey.
- Click Add step at the end of a path, or the + between two steps.
- Choose HTTP request.
- In Method, choose GET, POST, PUT, PATCH or DELETE.
- In URL, enter the address to send the request to. It must start with
https://. - Optionally, open Headers, click Add header, and enter each header's name and value.
- In Body, choose JSON to send data, or None.
- If you chose JSON, enter the data in JSON body. Inside a value in quotes, type {{ to insert a contact detail or a detail of the action that started the journey.
- In Timeout (seconds), enter how long to wait for a response, from 1 to 60 seconds.
What happens next
The step shows the method and the server it calls, for example "POST example.com". It has two paths, Success and Failure. Click Add step on each path to decide what happens next.
Troubleshooting
URL must use HTTPS
Change the URL so it starts with https://.
JSON must be valid
Check JSON body for a missing quote, comma or bracket.
Timeout must be between 1 and 60 seconds
Enter a whole number from 1 to 60 in Timeout (seconds).