HTTP Request

Make HTTP requests to your servers. Know how to configure the HTTP action in your workflows and what each action field denotes with the help of an example. You can use one of the supported HTTP methods to make requests to the relevant server.

How it works

To make an HTTP request, add the HTTP Request action to your canvas and configure it as follows:

The next block lets you add Headers, Parameters, and Basic Auth. To do this, click on the + icon given beside the respective field names.

You can send values for multiple URL parameters by clicking on the + link.

You can send values for multiple headers by clicking on the + link.

Once you have entered the details, click Next, test the action, and click Done. Then, run the workflow. This will make the HTTP request to the specified URL.

Example

Let’s understand it with the help of an example. Let’s say you want to create a new employee record in your CRM application. To achieve this, follow the steps given below:

  1. Add HTTP Request action to canvas.

    Locate the HTTP Request action in the Connectors panel, and drag-and-drop it on the canvas. It will automatically get connected to the Start icon. To configure the HTTP Request action, double-click the action icon. You will see the following screen.

    Click Next to continue.

  2. Set up HTTP Post request

    You will be redirected to the HTTP Request action configuration window. Configure it as given below:

    • Select HTTP Post Method: As we want to create a new record, select the POST method from the drop-down list. Similarly, you can select GET to retrieve a specific record, PUT to update a record, DELETE to delete a record, PATCH to modify an existing resource of the record, OPTIONS to request information about the communication options available for the record, and HEAD to get the metadata of a specific record.

    • URL: Enter the complete URL of the CRM application domain along with protocol where you want to post the data. For example, https://myemployeerecords.com.

    • URL Params: If you want to pass any additional information as parameters, click on the + button given below the URL Params label.

    • Basic Auth: If the URL you are performing operation on is secured using an authentication method, you will need to send the basic authentication details along with the request. To send the basic authentication details, click on the + button given below the Basic Auth label.

    • Headers: Send any additional headers required to execute your request in the headers. To add headers, click on the + button given below the Headers label.

    • Set Body Type: Set the body type as x-www-form-urlencoded.

    • Body: Enter the details you want to send in the form of key-value pairs for the POST request. To do so, click on the + button given below the Body label and add relevant key-value pairs in the input fields that appear. For the purpose of this example, we will add Employee ID and Employee Name.

    • Timeout: Enter the time in seconds after which the request should time out.

  3. Once you have entered the details, click Next, optionally test the action, and save the workflow.

    Now, when you execute this workflow, a new record will be created on the specified URL.