Use the REST API to direct the data that you have collected and get responses accordingly.
You can make API requests to get data from your CRM, or update the contact card of your leads etc.
Drag & drop the step to the panel and start filling your request details: URL of the endpoint, headers, body if necessary. You can also save the response to an attribute.
You need to select the HTTP request method that indicates the action you want the API to perform. There are 5 methods that you can use:
- GET retrieves data from an API.
- POST sends new data to an API.
- PATCH and PUT update existing data.
- DELETE removes existing data.
Each method has different areas to fill. For example, there is no Body area if you choose the GET method.
Different from other steps, the REST API step has two target points: Success and Fail.