HTTP Steps
Configuration
Section titled “Configuration”| Field | Description |
|---|---|
method | GET, POST, PUT, PATCH, DELETE |
url | Target URL (supports variable interpolation) |
headers | Request headers |
body | Request body (JSON) |
timeout | Timeout in ms (default: 30000) |
Example
Section titled “Example”{ "type": "http", "name": "create_invoice", "config": { "method": "POST", "url": "https://api.stripe.com/v1/invoices", "headers": { "Authorization": "Bearer {{env.STRIPE_KEY}}" }, "body": { "customer": "{{steps.fetch_user.body.stripe_id}}", "amount": "{{steps.calculate.body.total}}" } }}Error Handling
Section titled “Error Handling”If an HTTP step returns a non-2xx status, the function:
- Marks the step as failed
- Records the error in execution logs
- Stops execution (or continues if
continueOnError: true)