HTTP Request
Type:
http_request• Category:flow
Description
Perform HTTP call
Parameters
| Name | Type | Description | Required | Default |
|---|---|---|---|---|
url | string | no | ||
method | string | no | "GET" | |
body | object | no |
Help
HTTP Request Worker
Makes HTTP requests to external APIs and web services.
How it works:
- Request Construction: Builds HTTP request with specified method, URL, and body
- Execution: Sends request with 60-second timeout
- Response Processing: Returns status code, headers, and parsed JSON/text response
Parameters:
- url: Target URL for the HTTP request
- method: HTTP method (GET, POST, PUT, DELETE, etc.)
- body: Request body as JSON object (automatically serialized)
Supported Methods:
- GET, POST, PUT, DELETE, PATCH, HEAD, OPTIONS
Response Format:
- status: HTTP status code (200, 404, 500, etc.)
- data: Parsed JSON response or raw text
- headers: Response headers (if available)
Examples:
- GET request: method="GET", url="https://api.example.com/data"
- POST with data: method="POST", url="https://api.example.com/users", body={"name": "John", "email": "[email protected]"}
Content-Type Handling:
- JSON bodies are automatically serialized
- JSON responses are automatically parsed
- Non-JSON responses return as text
Error Handling:
- Network errors return error information
- Timeout after 60 seconds
- Invalid URLs or methods return validation errors
Common Use Cases:
- Call REST APIs
- Fetch data from web services
- Submit forms and data
- Integrate with third-party services
- Webhook notifications