Skip to content

HTTP

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.

ParameterTypeRequiredDescription
urltextYesEndpoint URL to connect to
methodselectYesHTTP method to use (GET, POST, PUT, PATCH, DELETE)
credentials_idcredentialsNoCredentials for authentication (optional)
headersjsonNoHTTP headers in JSON format
bodytextareaNoRequest body (for POST, PUT, PATCH)

This module supports optional Basic Auth credentials. The credential must contain the fields:

  • username: Username for basic authentication
  • password: Password for basic authentication

When credentials are provided, the module automatically generates the Authorization: Basic <base64> header and adds it to the request.

{
"nextModule": "siguiente_modulo",
"data": {
"resultado": "datos de la respuesta de la API"
}
}
{
"url": "https://api.ejemplo.com/datos",
"method": "GET"
}
{
"url": "https://api.ejemplo.com/enviar",
"method": "POST",
"credentials_id": "cred_123",
"headers": {
"Content-Type": "application/json"
},
"body": "{\"nombre\": \"valor\"}"
}

Any accessible HTTP/HTTPS endpoint. Uses the axios library to make requests.

  • The body field is sent as-is as data in the axios request
  • Custom headers are combined with authentication headers if they exist
  • In case of error, the module returns nextModule: null and the error message in the error field
  • Supports dynamic variables {{variable}} in configuration fields
  • The default timeout is the axios default (no explicit limit configured)
  • webresponse (respond to webhook requests)
  • checkSite (check a site’s status)
  • webscraper (extract data from HTML)