HTTP
Description
Section titled “Description”The HTTP module makes HTTP requests to any external or internal endpoint. It supports GET, POST, PUT, PATCH and DELETE methods. It is the most versatile module for integrations with third-party REST APIs. It allows sending custom headers, request body and basic authentication via credentials. It is used when you need to consume or send data to external services within a workflow.
Configuration
Section titled “Configuration”| Parameter | Type | Required | Description |
|---|---|---|---|
| url | text | Yes | Endpoint URL to connect to |
| method | select | Yes | HTTP method to use (GET, POST, PUT, PATCH, DELETE) |
| credentials_id | credentials | No | Credentials for authentication (optional) |
| headers | json | No | HTTP headers in JSON format |
| body | textarea | No | Request body (for POST, PUT, PATCH) |
Credentials
Section titled “Credentials”This module supports optional Basic Auth credentials. The credential must contain the fields:
username: Username for basic authenticationpassword: Password for basic authentication
When credentials are provided, the module automatically generates the Authorization: Basic <base64> header and adds it to the request.
Output
Section titled “Output”{ "nextModule": "siguiente_modulo", "data": { "resultado": "datos de la respuesta de la API" }}Usage Example
Section titled “Usage Example”Basic case
Section titled “Basic case”{ "url": "https://api.ejemplo.com/datos", "method": "GET"}With authentication and headers
Section titled “With authentication and headers”{ "url": "https://api.ejemplo.com/enviar", "method": "POST", "credentials_id": "cred_123", "headers": { "Content-Type": "application/json" }, "body": "{\"nombre\": \"valor\"}"}API Used
Section titled “API Used”Any accessible HTTP/HTTPS endpoint. Uses the axios library to make requests.
- The
bodyfield is sent as-is asdatain the axios request - Custom headers are combined with authentication headers if they exist
- In case of error, the module returns
nextModule: nulland the error message in theerrorfield - Supports dynamic variables
{{variable}}in configuration fields - The default timeout is the axios default (no explicit limit configured)
Related Nodes
Section titled “Related Nodes”- webresponse (respond to webhook requests)
- checkSite (check a site’s status)
- webscraper (extract data from HTML)