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#
| Field | Type | Required | Default | What it does |
|---|---|---|---|---|
| URL | Text | No | — | The URL to make the request to. |
| Method | Text | No | GET | The HTTP method to use. Options: GET, POST, PATCH, PUT, DELETE |
| Headers | Object | No | — | Request headers as a JSON object. |
| Body | Object | No | — | Request body as a JSON object (for POST, PATCH, PUT). |
| Query Parameters | Object | No | — | Query parameters to append to the URL. |
| Content Type | Text | No | application/json | The content type for the request body. Options: application/json, application/x-www-form-urlencoded, None |
| Timeout | Number | No | 30 | Request timeout in seconds. |
| TLS Version | Text | No | Default | TLS version to use for the request. Options: Default, TLS 1.2 |
| Fail on non-2xx status code | Yes/No | No | Off | When enabled, raises an error on non-2xx HTTP responses, triggering automatic retries. |
Outputs#
| Output | Type |
|---|---|
| Source | Any |
| Status Code | Any |
| Response Headers | Any |
| Result | Any |
| Error | Any |
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.