Skip to content

Automations

Pro feature. Automations requires a Pro or Teams license.

Automations let you chain multiple API requests together into a flow — passing data between steps, making decisions based on responses, and running sequences automatically.

Creating an automation

Open the Automations screen and click +. Give your automation a name.

The canvas editor opens. Automations are built as a graph of connected nodes.

Node types

NodeDescription
RequestSends an HTTP request. Configure it like a normal Restroom request.
ConditionBranches the flow based on a response value or status code
TransformMaps or extracts data from one step to use in another
DelayWaits a specified number of milliseconds before the next step
ScriptRuns a JavaScript snippet for custom logic

Connecting nodes

Drag from an output port on one node to an input port on another. Request nodes have a single output. Condition nodes have two outputs: one for the truthy branch and one for the falsy branch.

Passing data between steps

Use dot-notation to reference a previous step's response:

{{steps.login.response.body.token}}
{{steps.login.response.status}}
{{steps.getUser.response.body.id}}

Reference these in any field of a downstream Request node, including URL, headers, and body.

Running an automation

Click Run to execute the automation from the start node. The canvas shows progress in real time — each node highlights as it executes, and you can click any completed node to inspect its request and response.

Scheduling

Automations can be triggered manually or on a schedule. Click the schedule icon on an automation to configure a cron-style schedule. Scheduled automations run in the background while Restroom is open.

Released under the Restroom License.