Data Processing

API Request

Make HTTP requests to external APIs with specified Header, Body, and Query Parameters

Category: Data Processing · Plans: Trial, Starter, Pro, Premium, Enterprise · Type: APIRequest

Inputs#

FieldTypeRequiredDefaultWhat it does
URLTextNo—The URL to make the request to.
MethodTextNoGETThe HTTP method to use. Options: GET, POST, PATCH, PUT, DELETE
HeadersObjectNo—Request headers as a JSON object.
BodyObjectNo—Request body as a JSON object (for POST, PATCH, PUT).
Query ParametersObjectNo—Query parameters to append to the URL.
Content TypeTextNoapplication/jsonThe content type for the request body. Options: application/json, application/x-www-form-urlencoded, None
TimeoutNumberNo30Request timeout in seconds.
TLS VersionTextNoDefaultTLS version to use for the request. Options: Default, TLS 1.2
Fail on non-2xx status codeYes/NoNoOffWhen enabled, raises an error on non-2xx HTTP responses, triggering automatic retries.

Outputs#

OutputType
SourceAny
Status CodeAny
Response HeadersAny
ResultAny
ErrorAny

Use as an agent tool#

Tool name: api_request

Make HTTP requests to external APIs. Supports GET, POST, PATCH, PUT, DELETE methods. Specify URL, headers, body (for POST/PATCH/PUT), and query parameters.