Configure HTTP Operation
Overview
HTTP operations are used to integrate with WorkHub24 or other external systems using REST APIs.
With HTTP Operations you can:
- Pull Information (GET Requests): You can retrieve data from WorkHub24 workflows, data stores or external systems. This involves configuring HTTP GET requests to access specific resources or information stored in a system.
- Push Information (POST/PUT/Patch Requests):
- Create Data (POST Request): You can send new data to WorkHub24 workflows, data stores or external systems.
- Update Data (PUT Requests): You can update existing data by making HTTP PUT requests on WorkHub24 workflows, data stores or external systems.
- Partial Update (PATCH Requests): You can partially update existing data using HTTP PATCH requests on WorkHub24 workflows, data stores or external systems .
There are 2 types of HTTP Operations,
Form Based HTTP Operations
Section titled “Form Based HTTP Operations”HTTP operations created in the
(form editor) by clicking
(Properties button) can only be used for form field related actions.
Flow Based HTTP Operations
Section titled “Flow Based HTTP Operations”HTTP operations created in the
(Flow Designer) by clicking
(Properties button) can only be used in
(HTTP Component) when designing the flow.

- Dynamic URLs are used to directly access specific resources or entities.
Dynamic URLs often include identifiers (like IDs or slugs) that point directly to specific resources. For example:
-
https://www.university.com/students/12345 -
Here,
/students/12345specifies the path to the student with ID12345. See the example below where we configure a dynamic URL where the ID is taken from the form field.
2. Configuring Headers : Header values can be a custom value, can derived from a variable, or from a form field. If configuring a token, you can use a secret and select the token’s name from the dropdown menu. Take a look at the below curl request as an Example:
curl -X GET \ -H "Authorization: Bearer <access_token>" \ -H "Accept: application/json" \ -H "Content-Type: application/json" \The below example shows how the headers are configured on the HTTP operation :

Check this article on how to create an authorization token
- Request Body Content Type : Different content types are used to specify the format of data being sent in HTTP requests. Here’s an explanation of the three content types supported:
-
application/json - This content type indicates that the data being sent is in JSON (JavaScript Object Notation) format. Data is included in the request body, the URL remains clean.
-
An example URL would look like: https://university-api.example.com/students
-
Request Body:
{"firstName": "John","lastName": "Doe",}
-
-
application/x-www-form-urlencoded - This content type is used to submit form data encoded as key-value pairs. Data is included in the URL query string and special characters are URL-encoded.
-
An example URL would look like : https://university-api.example.com/students?firstName=John&lastName=Doe
-
Anatomy of an encoded URL :

-
-
multipart/form-data It allows for the transmission of binary data and mixed data types.
- Query Parameters (Request Body) : : In this section, you define the key-value pairs that make up the body of your request. These can be set using form fields, variables, or custom values.
-
An example of the query parameters configured with values captured from form fields:

-
When handling HTTP operations on a form, you can:
- Map the responses returned from the API call to form fields, JavaScript variables, or form variables.
- Extract error codes included in the HTTP response, when the call is successful assigning it to an object variable and extracting the code through a JavaScript.
When handling HTTP operations on a form, you can:
- Map the responses returned from the API call to flow variables.
- Customize the response format using a Javascript.
Steps to Configure HTTP Operation
Section titled “Steps to Configure HTTP Operation”Let’s learn this through an example.
Suppose, you need to fetch a list of users from an HTTP source and populate them in a form table. List of users will be of the form of JSON format as below.

Above JSON response will be generated when the following request is made
https://reqres.in/api/users?page=2“Page” is a parameter that is sent.
Our requirement is, when a user type the page number, system to send a request to the server, fetch the above JSON and populate firstname, lastname and email values to a table like below,

Follow these steps as shown in the video,