Multi-step API
Copies this page as Markdown with context, so an AI can walk you through your case step by step.
To check a whole flow of your API, for example logging in, reading the token and using it on a protected request.
Where it is
In Monitors → New monitor, choose the Multi-step API protocol. The API steps editor appears. It’s included in the Agency plan.
What each step has
| Field | What it’s for |
|---|---|
| Name | A short name, for example “Login”. It shows up in alerts. |
| Method | GET, POST, PUT, PATCH or DELETE. |
| URL | The full address of the request. |
| Headers | One per line, like Authorization: Bearer {{token}}. |
| Body | What gets sent, for example JSON. |
| Expected status | If the response has a different code, the step fails. |
| Must contain | Optional. Text that has to be in the response. |
| Save from JSON | Optional. Values to keep for the following steps. |
Steps run in order. You can add up to 6, reorder them and remove them.
Passing values between steps
In Save from JSON write name=path, one per line. The path uses dots to go into the JSON and numbers for lists:
token=data.access_token
order=items.0.id
Then use it as {{token}} or {{order}} in the URL, headers or body of any later step.
Example: login and protected request
- Login:
POST https://api.shop.com/authwith body{"user":"monitor","pass":"…"}, expected status200and in Save from JSONtoken=access_token. - Orders:
GET https://api.shop.com/orders?limit=1with the headerAuthorization: Bearer {{token}}, expected status200and must contain"orders".
We recommend a read-only user for the monitor, never one with admin permissions.
What happens when it fails
The monitor stops at the first step that fails and goes down. The alert says which one and why, for example “Paso 2 (Orders): HTTP 401” or “Paso 1 (Login): no está «access_token» en el JSON” (the value isn’t in the JSON). The time you see on the monitor’s page is the total for all steps.