Black Friday in 1 day: will your customers be able to pay? 25% off the first year and free setup, until 30 NovemberSee the offer →

Chain

Chain. Do the services behind it hold?

Pathly watches the path. Ping if it’s up. Flow if a user can walk it. Chain if the services behind it hold.

Log in, then the protected API. A 200 on /health does not prove /me still answers.

Create a Chain, no card

Chain
POST /loginTokenGET /orders

The token is rejected: 401 on the second step.

Chain: chained API calls, the way your app makes them
Chain run timeline
Chain run timeline

What Chain sees

Several HTTP calls in sequence: status, text, JSON, cookies. One hop can extract a token for the next. One execution = 1 run, like a Flow — Pings stay separate.

As-code

POST /v1/scenarios with httpChain, or pathly_scenario { http_chain { ... } }. The same object as in the console.

In detail

The APIs behind client sites: four real-world cases

Many sites an agency ships depend on an API: a headless CMS, a customer area, a stock service. Chain checks those calls hold, in the order the application makes them.

  1. The front end is green, the CMS API is down

    The static site is served by a CDN and returns 200. But the headless CMS API that feeds the articles returns an error. A Chain requests a token, calls the articles route, then checks that an expected title is in the reply.

  2. /health returns 200, /me returns 401

    The health route says nothing about authentication. A Chain signs in with a test account, reads the token from the JSON reply, then calls the protected route with that token. If sign-in breaks after a release, step 2 turns red and the alert names it.

  3. The delivery service changes its reply

    A shop shows delivery times from a shipping API. The day the expected field disappears from the reply, the page stays up but shows nonsense. The Chain reads that field on every run and fails if it is missing.

  4. Ping green, Flow red: the cause is behind

    The checkout journey breaks, but the page answers. The Ping is green, the Flow is red. A Chain on the cart API tells you whether the failure comes from the service behind or from the page itself. You know who to call.

How Chain works

HTTP calls, in order

A Chain runs HTTP requests one after another. For each, you set the method, URL, headers and body. Each step checks the expected status, 200 by default, and a text in the reply if you need one. A pause of up to 30 seconds can sit between two steps.

A token passes from step to step

A step can read a value from the JSON reply, for example $.token, or a cookie. The value is then reused as {{token}} in the URL, headers or body of the following steps. Cookies received are kept for what comes next.

Steps and Chains by plan

Solo includes 1 Chain of up to 3 steps. Freelance includes 3, of 5 steps. Pro and Business go up to 10 steps, with 20 and 50 Chains.

Schedule and runs

A Chain is scheduled like a Ping, with the same shortest interval. Each run counts as one run of your plan, however many steps it has. Before alerting, a doubtful failure is checked again at once.

A timeline for every run

Each run keeps the status, duration and URL of every step. The failing step is marked, with a clear message: step 2 of 4, status 401, 200 expected. The alert goes out by email, or to Slack, Teams and the other channels on a paid plan.

As code too

The same Chain can be created in the console, through the /v1 API (POST /v1/scenarios with httpChain) or with the Terraform provider (the http_chain block of pathly_scenario). Requests leave from Google Cloud in Belgium (europe-west1) and only target public addresses.

FAQ

Why is a 200 on /health not enough?
The health route often answers without touching authentication or the database. A Chain walks the real path: sign-in, token, then the protected route. If any of those calls breaks, it sees it.
How many steps can a Chain have?
3 on Solo, 5 on Freelance and 10 on Pro and Business.
How do I pass a token from one step to the next?
Give the path of the value in the JSON reply, for example $.access_token, and a variable name. The following steps use it as {{access_token}}. A cookie is picked up the same way.
Does a Chain use up runs?
Yes, one per run, like a Flow, however many steps it has. Pings are not counted.
Can I create a Chain through the API or with Terraform?
Yes. POST /v1/scenarios with httpChain, or the http_chain block of the pathly_scenario resource. It is the same object as in the console.
What is the difference between Chain and Flow?
Chain calls APIs without a browser, step by step. Flow opens a browser and clicks like a visitor. For a checkout, Flow checks the page and Chain the service behind it.

Create a Chain

No card. Login → protected route editor, or /v1.

Create a Chain, no card

/v1 docs