DocsAPI referenceAll pages

GET /sites/s_ab12cd34ef56/checks

Request examples and the documented response.

Back to this endpoint in the API reference

curl

Request

curl "https://api.pagehum.com/v1/sites/s_ab12cd34ef56/checks" \
  -H "Authorization: Bearer $PAGEHUM_API_KEY"

JavaScript

Request

const response = await fetch("https://api.pagehum.com/v1/sites/s_ab12cd34ef56/checks", {
  headers: { Authorization: `Bearer ${process.env.PAGEHUM_API_KEY}` },
});
const { ok, data, error } = await response.json();
if (!ok) throw new Error(error);

Response

Response

{
  "ok": true,
  "data": {
    "limit": 25,
    "everyMin": 5,
    "items": [
      {
        "id": "6f1c…",
        "path": "/login",
        "method": "GET",
        "failing": false,
        "paused": false,
        "uptime24h": 1,
        "uptime7d": 0.998,
        "last": {
          "at": 1790000000000,
          "ok": true,
          "status": 200,
          "ms": 312,
          "reason": null
        }
      }
    ]
  }
}