Winter sales in January: will your shops’ checkout hold?Get ready →

October 2026

HTTP API chain monitoring: why a 200 on /health does not prove your API works

Journeys

By The Pathly teamWeb journey monitoring · 3 min read ·

HTTP API chain monitoring checks what a client really does: sign in, get a token, call a protected route. A 200 on /health proves none of that. Here is how to watch the whole sequence.

The 200 that lies

A /health route returns 200 as soon as the process is running. It does not go through authentication, the database or the routes your clients call. The check stays green while the API turns everyone away.

  • Login returns a token that is already expired, or signed with a key that changed.
  • The protected route answers 401 to every call after a release.
  • The response is a 200 with an empty JSON, and the client app shows a blank page.

What a chain is

A chain replays the sequence of calls a real client makes. The first call signs in and receives a token. The next one uses that token on a protected route. Each response is checked before moving on. If a link breaks, the chain stops and you know which one.

How Chain does it in Pathly

A Chain links 1 to 10 HTTP calls. Each call has its own method (GET, POST, PUT, PATCH, HEAD or DELETE), headers and body. You can add a pause between two calls.

  • Extract a value from the JSON response, or a cookie, and give it a name.
  • Reuse that value with {{name}} in the URL, headers or body of the next calls.
  • Check the expected HTTP status code and that a text appears in the response.

When a call fails, the alert tells you which one. You get it by email, Slack, Teams, Discord or webhook. Pathly is hosted in the European Union (europe-west1).

A concrete example: login, then orders

The first call sends a POST to /auth/login and expects a 200. It reads the token field from the response and stores it as token. The second calls /v1/orders with the header Authorization: Bearer {{token}}, expects a 200 and checks that the response contains “orders”.

{
  "httpChain": [
    {
      "name": "login",
      "method": "POST",
      "url": "https://api.example.com/auth/login",
      "headers": { "Content-Type": "application/json" },
      "body": "{\"email\":\"[email protected]\",\"password\":\"<test-account-password>\"}",
      "extractJson": { "path": "token", "as": "token" },
      "assertStatus": 200
    },
    {
      "name": "orders",
      "method": "GET",
      "url": "https://api.example.com/v1/orders",
      "headers": { "Authorization": "Bearer {{token}}" },
      "assertStatus": 200,
      "expectText": "orders"
    }
  ]
}

The login password is part of the Chain. So use a dedicated test account, with the minimum rights needed to read the monitored route, no customer data and a password used nowhere else. Never a real account, let alone an admin one.

A CI gate after every deployment

The same Chain can block a pipeline. The run-scenario operation starts it and fails the job if the result is not ok. It is available in the GitHub Action pathlyhq/pathly-action@v1, listed on the GitHub Marketplace as “Setup Pathly”, and in the GitLab CI component in the CI/CD Catalog. A Terraform provider also lets you declare the Chain in code.

Place the gate right after the deployment, before switching traffic or closing the ticket. A broken token is then caught by the pipeline, not by a customer. The Solo plan, free and with no card, includes one Chain. Paid plans start at €29 per month.