DocsAPI referenceAll pages

GET /channels

Request examples and the documented response.

Back to this endpoint in the API reference

curl

Request

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

JavaScript

Request

const response = await fetch("https://api.pagehum.com/v1/channels", {
  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": {
    "items": [
      {
        "id": "5a2c9e14-7f3b-4d86-a1e5-3b8d6c0f2a79",
        "kind": "webhook",
        "name": "Ops dashboard",
        "urlHint": "https://ops.harbor.example/…/pagehum",
        "events": [
          "down",
          "recovered",
          "problem",
          "state"
        ],
        "siteIds": null,
        "enabled": true,
        "createdAt": 1790000000000,
        "lastSentAt": null,
        "lastError": null,
        "grantId": null,
        "recent": []
      }
    ]
  }
}