Skip to content

Web Request

The Web Request node sends a request to a specified web API or service and returns the response. It lets workflows interact with external systems by calling endpoints, passing parameters or headers, and using the returned data in later steps.


Dependencies

  • Requires network access to target API/Service.
  • Requires a valid endpoint URL.
  • May require authentication to be configured prior to use.

Method

MethodDescription
GetRetrieves data from the specified resource.
POSTCreates a new resource with the provided data.
PUTReplaces an existing resource with the provided data.
PATCHUpdates part of an existing resource.
DELETERemoves the specified resource.

Input Fields

LabelInput TypeDescriptionRequiredVisible WhenDefaultExample
MethodPicklistThe HTTP method to use for the request (e.g., GET, POST, PUT, PATCH, DELETE).✅ YesAlwaysNullGET
Request URLTextThe target endpoint URL for the HTTP request.✅ YesAlwaysNullhttps://api.spacexdata.com/v5/launches/latest
Authentication TypePicklistThe authentication method used for the request (e.g., None, Basic, Bearer Token, API Key).✅ YesAlwaysNullNone
UsernameTextThe username used for API authentication.⚠️ When VisibleWhen Auth Type is BasicNullmv_user
PasswordTextThe password used for API authentication.⚠️ When VisibleWhen Auth Type is BasicNullPassword123!
Bearer TokenTextThe bearer token used for API authentication.⚠️ When VisibleWhen Auth Type is Bearer TokenNullBearer {Token}
API Key Header NameTextThe header field name used for API authentication.⚠️ When VisibleWhen Auth Type is API KeyNullx-api-key
API Key ValueTextThe API key used for API authentication⚠️ When VisibleWhen Auth Type is API KeyNull123456abcdef
Headers (JSON)TextRequest headers in JSON format. Allows adding values such as Content-Type or authorization tokens.❌ NoAlwaysNull{"Content-Type": "application/json", "Accept": "application/json"}
Request BodyTextThe request payload, usually required for POST, PUT, or PATCH requests. Should be JSON, XML, or form-encoded data.❌ NoAlwaysNull{"name": "John Doe", "role": "admin"}
Timeout (ms)TextMaximum time (in milliseconds) to wait for a response before failing.❌ NoAlways3000015000
Allow RedirectsPicklistWhether the request should automatically follow HTTP redirects (3xx).❌ NoAlways`falsefalse
Throw on HTTP ErrorPicklistWhether non-2xx HTTP responses (e.g., 400, 401, 500) should throw an error.❌ NoAlwaysNullfalse

Output

The result of the web request can be referenced downstream using {{WebRequest-#.Result}}.

The output includes the HTTP status, headers, response body, and metadata fields.

Structure:

json
{
  "StatusCode": 200,
  "Headers": {
    "Content-Type": "application/json",
    "Server": "cloudflare"
  },
  "Body": {
    "name": "Crew-5",
    "success": true
  },
  "IsSuccess": true,
  "ErrorMessage": ""
}

Examples

GET – Retrieve data from an API.

Request the latest SpaceX launch data.

FieldValue
MethodGET
Request URLhttps://api.spacexdata.com/v5/launches/latest
Authentication TypeNone
Headers (JSON){"Accept": "application/json"}
OutputJSON containing launch details (name, date, rocket, etc.)
json
{
  "name": "Crew-5",
  "date_utc": "2022-10-05T16:00:00.000Z",
  "success": true,
  "rocket": "5e9d0d95eda69973a809d1ec"
}
POST – Create a new resource.

Request the latest SpaceX launch data.

FieldValue
MethodPOST
Request URLhttps://api.example.com/users
Authentication TypeBearer Token
Bearer TokeneyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.DUMMY_SIGNATURE
Headers (JSON){"Content-Type": "application/json"}
Authentication Type{"name": "Alice", "role": "admin"}
OutputJSON confirming the new user was created.
json
{
  "id": 101,
  "name": "Alice",
  "role": "admin",
  "createdAt": "2025-09-01T10:15:30Z"
}
PUT – Replace an existing resource.

Update a user’s details (full replacement).

FieldValue
MethodPUT
Request URLhttps://api.example.com/users/101
Authentication TypeBearer Token
Bearer TokeneyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.DUMMY_SIGNATURE
Headers (JSON){"Content-Type": "application/json"}
Authentication Type{"name": "Alice", "role": "superadmin"}
OutputJSON with the updated record.
json
{
  "id": 101,
  "name": "Alice",
  "role": "superadmin"
}
PATCH – Partially update an existing resource.

Update a user’s details (full replacement).

FieldValue
MethodPatch
Request URLhttps://api.example.com/users/101
Authentication TypeAPI Key
API Key Header Namex-api-key
API Key Value123456abcdef
Headers (JSON){"Content-Type": "application/json"}
Request Body{"role": "editor"}
OutputJSON with the updated field.
json
{
  "id": 101,
  "name": "Alice",
  "role": "editor"
}
DELETE – Remove a resource.

Update a user’s details (full replacement).

FieldValue
MethodDELETE
Request URLhttps://api.example.com/users/101
Authentication TypeBasic
Usernamemv_user
PasswordPassword123!
Headers (JSON){"Accept": "application/json"}
OutputConfirmation message or empty response.
json
{
  "message": "User 101 deleted successfully."
}

Potential Errors

Error ConditionDescription
WIPWIP

Developer Notes

  • WIP

Tentech 2024