Skip to content

HTTP Steps

FieldDescription
methodGET, POST, PUT, PATCH, DELETE
urlTarget URL (supports variable interpolation)
headersRequest headers
bodyRequest body (JSON)
timeoutTimeout in ms (default: 30000)
{
"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}}"
}
}
}

If an HTTP step returns a non-2xx status, the function:

  1. Marks the step as failed
  2. Records the error in execution logs
  3. Stops execution (or continues if continueOnError: true)