HTTP Node
Makes HTTP requests to external APIs or services.
Input Fields
Task Name: Descriptive name for this HTTP request.
Method: HTTP method - GET (retrieve data), POST (create), PUT (replace), PATCH (update), DELETE (remove).
URL: Full URL of the API endpoint. Supports workflow variables: https://api.example.com/users/${workflow.variables.userId}.
Headers: HTTP headers as JSON object. Example: {"Authorization": "Bearer ${workflow.variables.apiToken}", "Content-Type": "application/json"}.
Query Parameters: URL query parameters as JSON object. Example: {"page": "1", "limit": "10"}.
Body: Request payload for POST/PUT/PATCH requests. Can be JSON object or string. Supports workflow variables.
Timeout: Maximum time to wait for response (in seconds). Default is 30 seconds.
Retry: Number of retry attempts if request fails. Default is 0.
Tips:
- Store sensitive data like API keys in environment variables or secrets
- Handle errors and timeouts appropriately in your workflow
- Use the Test tab to verify API responses
- Check API documentation for required headers and body format