Node http in
The http in node is used to create HTTP endpoints that can handle incoming HTTP requests (GET, POST, PUT, and others). This node serves as the entry point for interacting with external systems via the HTTP protocol.
Important: All specified paths automatically receive the prefix: /api/admin/workflows/endpoints/.
Settings for the http in Node

1. Name
A field for specifying the name of the node.
The name is displayed in the workspace and helps easily identify the node.
If left empty, the node will be called http in.
Example:
- Node name:
get payment link
2. Method
The HTTP method that the node will handle. The following options are available:
- GET: Used for retrieving data.
- POST: Used for sending data.
- PUT: Used for updating data.
- DELETE: Used for deleting data.
- PATCH: Used for partially updating data.
- OPTIONS: Used for requests to obtain metadata about the API.
3. Link
Specifies the path (endpoint) for handling requests.
- The path starts with
/. - It can include route parameters, for example:
/data/:id.
Example:
- Link:
/get-payment-link - Link with parameter:
/get-payment-link/:orderId
4. Protected
A checkbox to protect the endpoint. Enabled by default.
5. Output Example (JSON)
An example of the data that the node passes along the flow, in JSON format.
This example is used to build the data schema for the next node — its fields appear in the Input Schema block of the next node. If the field is empty or the JSON is invalid, the schema is not passed further.
Format of Incoming Message
When a request arrives at the specified path with the selected method, the http in node creates a message msg with the following properties:
-
msg.req: Contains the HTTP request object, including headers, parameters, body, and other data.msg.req.params: Route parameters (for example,:idin/api/data/:id).msg.req.query: GET request parameters.msg.req.body: The body of the request (for POST, PUT, and PATCH methods).
-
msg.res: An object for managing the HTTP response. Typically passed to thehttp responsenode to send a response back to the client.
Usage Example
Example 1: Handling a GET Request
Scenario: Returning temperature data.
Node Settings:
- Method:
GET - Link:
/temperature
Flow:
[http in] ---> [function] ---> [http response]
Function Node Code:
msg.payload = { temperature: 22.5, unit: "Celsius" };
return msg;
Result: The client that sends a GET request to /api/admin/workflows/endpoints/temperature will receive a JSON response:
{
"temperature": 22.5,
"unit": "Celsius"
}
Example 2: Handling a POST Request
Scenario: Receiving and saving data from a device.
Node Settings:
- Method:
POST - Link:
/data
Flow:
[http in] ---> [function] ---> [http response]
Function Node Code:
// Reading data from the request body
const data = msg.req.body;
msg.payload = { status: "success", receivedData: data };
return msg;
Result: The node will accept data from the body of the POST request and return a confirmation response.
Example 3: Using Route Parameters
Scenario: Retrieving data by device ID.
Node Settings:
- Method:
GET - Link:
/device/:id
Flow:
[http in] ---> [function] ---> [http response]
Function Node Code:
const deviceId = msg.req.params.id;
msg.payload = { deviceId: deviceId, status: "active" };
return msg;
Result:
{
"deviceId": "123",
"status": "active"
}