Skip to content

Web Request ​

Sends an HTTP request to an external URL and returns the response status, headers, and body.

Purpose ​

Use the Web Request task to integrate a workflow with any external API or web service. It supports all common HTTP methods, configurable authentication, custom headers, and a request body, making it suitable for fetching data from REST APIs, posting records to third-party systems, triggering webhooks, or calling internal services. The full response — including status code and parsed body — is available to downstream tasks.

Inputs ​

FieldTypeRequiredDescription
MethodDropdownYesThe HTTP method to use: GET, POST, PUT, PATCH, or DELETE.
Request URLTextYesThe full URL of the endpoint to call.
Authentication TypeDropdownYesThe authentication scheme to apply: None, Basic, Bearer Token, or API Key.
UsernameTextNoUsername for Basic authentication. Visible when Authentication Type is Basic.
PasswordTextNoPassword for Basic authentication. Visible when Authentication Type is Basic.
Bearer TokenTextNoToken value for Bearer authentication. Visible when Authentication Type is Bearer Token.
API Key Header NameTextNoThe header name to send the API key in (e.g. X-API-KEY). Visible when Authentication Type is API Key.
API Key ValueTextNoThe API key value. Visible when Authentication Type is API Key.
Headers (JSON)Multi-line TextNoAdditional request headers as a JSON object. Authentication headers are added automatically and do not need to be repeated here.
Request BodyMulti-line TextNoThe payload to send with POST, PUT, or PATCH requests.
Timeout (ms)TextNoMaximum time in milliseconds to wait for a response. Defaults to 30000.
Allow RedirectsDropdownNoWhether to follow HTTP redirect responses automatically. Defaults to true.
Throw on HTTP ErrorDropdownNoWhether to fail the task when the server returns a 4xx or 5xx status code. Defaults to false.

Visibility Rules ​

Username and Password are visible when Authentication Type is Basic. Bearer Token is visible when Authentication Type is Bearer Token. API Key Header Name and API Key Value are visible when Authentication Type is API Key.

Outputs ​

NameDescription
StatusCodeThe HTTP status code returned by the server (e.g. 200, 404).
HeadersA dictionary of response headers returned by the server.
BodyThe response body, parsed as an object where possible.
IsSuccessBoolean indicating whether the response indicates success (2xx status).
ErrorMessageAny error message associated with the response. Empty on success.

Examples ​

GET – Retrieve data from a public API
FieldValue
MethodGET
Request URLhttps://api.spacexdata.com/v5/launches/latest
Authentication TypeNone
Headers (JSON){"Accept": "application/json"}
POST – Create a resource with Bearer authentication
FieldValue
MethodPOST
Request URLhttps://api.example.com/users
Authentication TypeBearer Token
Bearer TokenAuth.Token
Headers (JSON){"Content-Type": "application/json"}
Request Body{"name": "Alice", "role": "admin"}
PATCH – Partially update a resource with an API key
FieldValue
MethodPATCH
Request URLhttps://api.example.com/users/101
Authentication TypeAPI Key
API Key Header Namex-api-key
API Key Value123456abcdef
Request Body{"role": "editor"}

Tentech