Call an API action
Automation · 2 min read ·
Calls a web address and hands its answer to later steps.
Call an API is the web.api_call Automation action. Calls a web address and hands its answer to later steps.
Availability: Choose this action in a flow when its feature and required connections are available to your channel. Before you start: HTTPS public endpoint.
Options and starting values
The values below are what the editor starts with for a channel with no matching resources selected. They are starting values, not a guarantee that the step can run as shown. Required resource choices and trigger fields may change the starting values.
method— choice; required; choices:GET,POST,PUT,PATCH,DELETE; editor starts withGET.url— text; minimum 1 characters; maximum 2000 characters; required; validation:trim; editor starts withhttps://; accepts fill-ins.headers— list of object; at most 20 items; required; editor starts with[]; accepts fill-ins.- Each item's
name: text; minimum 1 characters; maximum 100 characters; required; validation:trim, `matches ^[A-Za-z0-9!#$%&'*+.^_|~-]+$``. - Each item's
value: text; maximum 2000 characters; required.
- Each item's
bodyType— choice; required; choices:json,form,text; editor starts withjson.body— text; maximum 10000 characters; required; editor starts with ``; accepts fill-ins.
In a flow
Add Call an API after the event, command or timer that should cause it. Calls a web address and hands its answer to later steps.
For orientation, the editor starts with {"method":"GET","url":"https://","headers":[],"bodyType":"json","body":""} in a blank channel. Complete any placeholder destination, resource or text before enabling the flow; passing the field schema alone does not prove this will run.
In tests default: New Call an API steps start at Skip. The trigger editor’s Run test currently applies every action regardless of this per-step default. Use a harmless flow when learning the Test panel; a test can make real changes.
Values for later steps
This action exposes {step.<name>.status} (number), {step.<name>.ok} (flag), {step.<name>.text} (text), {step.<name>.json} (text) to later steps. Replace <name> with the step name shown in your flow.
If the step fails
The run log records the failed step and its reason. The step’s Stop the run if it fails setting decides whether later steps run. Missing connections, permissions, or required choices can prevent this step from completing.