DocsAPI referenceAll pages

API reference

Read your sites' boards, uptime, client errors, and broken links from scripts, CI, or an AI assistant, and create or delete sites. JSON over HTTPS, one key per use.

Keys and authentication

The API lives at https://api.pagehum.com/v1, its own deployment, so heavy use never slows the site. Older scripts can keep https://pagehum.com/api/v1: it answers the same.

Create a key on your account page. It looks like phk_ followed by 32 characters and is shown once: PageHum keeps only a hash. Send it with every request:

curl https://api.pagehum.com/v1/sites \
  -H "Authorization: Bearer $PAGEHUM_API_KEY"
  • Read keys can call every GET. Tick write when creating a key to let it create and delete sites too.
  • A key sees only its own account’s sites. Another account’s site answers 404, the same as one that doesn’t exist.
  • Revoke a key on the account page and it stops working at once. An account can have 10 keys.
  • Building a product that connects to owners’ accounts? Use OAuth instead of asking for a key: its access tokens work everywhere a key does.
  • Keep keys on servers. The API sends no CORS headers, so browsers can’t call it from a page.

Longer history and year comparison

Ultra accepts range=730 for two years. For board insights, pass compare=year on Pro or Ultra to overlay the same UTC calendar dates last year; the response explains when that period is outside retention. compare=previous compares the preceding range. February 29 maps to February 28 in the overlay; prior-year totals count actual dates once. Comparison details.

Client groups

Use /groups to create and manage client groups, assign sites, and invite viewers or editors to all their sites at once. GET /sites includes each site’s group and accepts ?group=UUID or ?group=ungrouped. Client groups explains access, limits, and combined reports; every action is listed in the OpenAPI schema.

Create a client group

Pro has three slots, Ultra any number. The returned id identifies the group.

Request
curl -X POST "https://api.pagehum.com/v1/groups" \
  -H "Authorization: Bearer $PAGEHUM_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"name":"Harbor Supply","contact":"client@harbor.example","color":"#c98222"}'

List client groups

Owned and shared groups; contact details are visible only to the owner.

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

Read a group

Owners also see membership and open invitations.

Request
curl "https://api.pagehum.com/v1/groups/104375b3-5756-4288-9d2d-d9ede77f9a35" \
  -H "Authorization: Bearer $PAGEHUM_API_KEY"

Assign a site

Attach an owned site, replacing its prior group. PATCH also supports update, detach, invite, role, remove_member, and revoke.

Request
curl -X PATCH "https://api.pagehum.com/v1/groups/104375b3-5756-4288-9d2d-d9ede77f9a35" \
  -H "Authorization: Bearer $PAGEHUM_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"action":"attach","siteId":"s_ab12cd34ef56"}'

Accept a group invite

Use the invited account’s key. Membership covers future sites too.

Request
curl -X POST "https://api.pagehum.com/v1/groups/invites/accept" \
  -H "Authorization: Bearer $PAGEHUM_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"token":"phg_aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"}'

Combined report

Last month by default, or pass month=YYYY-MM. The signed snapshot link lasts 90 days.

Request
curl "https://api.pagehum.com/v1/groups/104375b3-5756-4288-9d2d-d9ede77f9a35/report" \
  -H "Authorization: Bearer $PAGEHUM_API_KEY"

Delete a group

Sites and independently granted memberships stay.

Request
curl -X DELETE "https://api.pagehum.com/v1/groups/104375b3-5756-4288-9d2d-d9ede77f9a35" \
  -H "Authorization: Bearer $PAGEHUM_API_KEY"

Rate limits

PlanCalls per key per hour
Free60
Starter600
Pro3,000
Ultra6,000

Hours are UTC clock hours. Once the key, usage count, and plan have been read, responses carry X-RateLimit-Limit, X-RateLimit-Remaining, and X-RateLimit-Reset (seconds since the epoch). Authentication and service errors can omit them. Past the key’s hourly limit you get 429 with Retry-After in seconds. Other actions can also return 429for their own limits, without that header; read the error message for guidance.

Polling? GET /sites and GET /sites/{key}/status send an ETag: send it back as If-None-Match and, when nothing changed, you get 304 with no body. The checks run every 1 to 5 minutes by plan, so polling more often than that only repeats the answer. API responses normally include Server-Timing: total is elapsed server time in milliseconds, including waiting, and cpu is CPU used by the whole server process during that time. Concurrent work can contribute to cpu, so it is not the CPU cost of this call alone. Cached responses can retain older timing values.

Responses and errors

Success is { "ok": true, "data": … }. Failure is { "ok": false, "code": …, "error": … }, where error is a sentence you can show and code is one of:

CodeStatusMeans
unauthorized401No key, or not sent as a Bearer token.
invalid_key401The key doesn't exist or was revoked.
insufficient_scope403The call needs a write key (or, for an app's OAuth token, another scope).
forbidden403The site is shared with your account, but your role on it doesn't allow this.
plan_limit403The plan has no room, e.g. for another site.
not_found404No site with that key on this account.
bad_request400A parameter or body is wrong.
rate_limited429The key used this hour's calls.
internal500Something failed on our side. Retry with backoff.
unavailable503The account's plan couldn't be read just now. Retry after the Retry-After seconds.

Every example on this page runs against a real test site in CI, so what it shows is what the API returns. Times are milliseconds since the Unix epoch (createdAt, lastAt), days are UTC dates (2026-10-07), and rates and uptime are fractions from 0 to 1. range is 7, 14, 30, 90, 365, or 730 days, held to what your plan shows; responses say which range they used.

Lists

/sites returns the account’s owned and shared sites at once, subject to any group filter. Plan limits apply to creating sites, not to the number of shared sites in that list. /errors and /broken return the most frequent first, up to limit (50 by default, 200 at most). Only /errors returns an other count. The board’s own lists, like top pages, are capped the way the board caps them.

Sites

GET /sites

Every site with its readings over range (today, 7 by default, 30, 90, 365, or 730, held to the plan): visitors, sessions, pageviews, p75 load, reachability, uptime over the range (uptime) and the last 24 hours (uptime24h), error rate, and the one problem if there is one, judged on the last 7 days. The readings sit under week whatever the range, so existing clients keep working. Sort with sort (created, name, visitors, pageviews, load, uptime, problem) and dir (asc or desc). Empty readings sort last. If the requested list range exceeds the requesting account’s plan, the list falls back to seven days and reports that range. A shared site’s readings can be limited further by its owner’s plan. Each request checks the owner’s site membership and requires clients to revalidate cached responses. Unchanged sites’ details and readings can still be cached for up to a minute. A change concurrent with a request can race the membership check. Older clients may still send refreshSites=1; it no longer changes this behavior. Each request consumes an API call and reads owned site IDs, even when its response is 304.

Request
curl "https://api.pagehum.com/v1/sites?sort=visitors&dir=desc" \
  -H "Authorization: Bearer $PAGEHUM_API_KEY"

POST /sites (write)

Creates a site, if the plan has room, and returns its key and tag. name is optional, up to 80 characters.

Request
curl -X POST "https://api.pagehum.com/v1/sites" \
  -H "Authorization: Bearer $PAGEHUM_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"name":"Harbor Supply"}'

GET /sites/{key}

One site, shaped like an item of the list.

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

POST /sites/{key}/campaigns (write, owner)

Configure a shared campaign value; use the returned opaque ID in the script tag mapping.

Request
curl -X POST "https://api.pagehum.com/v1/sites/s_ab12cd34ef56/campaigns" \
  -H "Authorization: Bearer $PAGEHUM_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"value":"spring-sale"}'

GET /sites/{key}/campaigns

Campaign and medium pageviews for the last seven UTC days; sampled values are estimates.

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

GET /sites/{key}/campaigns.csv

Download the same counts with a sampled flag. They are pageviews, not unique people or attributed conversions.

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

PATCH /sites/{key}/campaigns (write, owner)

Pause or resume a configured campaign.

Request
curl -X PATCH "https://api.pagehum.com/v1/sites/s_ab12cd34ef56/campaigns" \
  -H "Authorization: Bearer $PAGEHUM_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"id":"c_aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa","active":false}'

POST /sites/{key}/goals (write, owner)

Create a named goal. The generated ID identifies the goal, not a visitor. See the JavaScript reference for recording it.

Request
curl -X POST "https://api.pagehum.com/v1/sites/s_ab12cd34ef56/goals" \
  -H "Authorization: Bearer $PAGEHUM_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"label":"Signup"}'

GET /sites/{key}/goals

Named goal event counts for the last seven UTC days. Sampled counts are estimates.

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

PATCH /sites/{key}/goals (write, owner)

Pause or resume a goal using its ID and an active flag.

Request
curl -X PATCH "https://api.pagehum.com/v1/sites/s_ab12cd34ef56/goals" \
  -H "Authorization: Bearer $PAGEHUM_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"id":"g_aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa","active":false}'

GET /sites/{key}/snippet

The script tag, whether beacons are arriving yet, and the AI setup prompt that installs it, or checks an install that already reports.

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

DELETE /sites/{key} (write)

Deletes the site with its counts, checks, incidents, and history. It can’t be undone.

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

Readings

GET /sites/{key}/insights

The board itself for range days: usage, performance with load buckets, Web Vitals and INP, speed per device and page, the funnel, the signals and which one is the problem, week over week, a daily or weekly series, top pages and sources, devices, broken paths, failing requests, rage clicks, and pages checked. The same data the dashboard draws; the response below is trimmed. compare=previous adds compare: the same number of days before the range, with its series lined up point for point and its pages, sources, and devices, or { available: false, reason } when the plan doesn’t keep that far back.

Request
curl "https://api.pagehum.com/v1/sites/s_ab12cd34ef56/insights?range=30&compare=previous" \
  -H "Authorization: Bearer $PAGEHUM_API_KEY"

GET /sites/{key}/status

What the public status page shows: state (up, degraded, down, or maintenance, the words webhooks use), level, headline, 24-hour and 7-day uptime, incidents with their ids, the last check, chosen pages, and on paid plans regions (each check region’s latest answer, p75, and uptime over 24 hours). It reads what the last scheduled check left and never starts one, so it’s cheap to poll; add include=calendar for the 90-day calendar when the page shows one.

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

GET /sites/{key}/errors

Client errors, most frequent first, each with its page, message, count, status (new, back, ongoing, one-off, quiet), first and last seen, the last 14 days, the page’s pageviews, other pages with the same message, the browsers that threw it (family and major version), and a note when it is a known pattern. include=prompt adds each one’s ready-made AI prompt to fix it. Errors you ignored on the board are left out.

Request
curl "https://api.pagehum.com/v1/sites/s_ab12cd34ef56/errors?range=7&limit=20&include=prompt" \
  -H "Authorization: Bearer $PAGEHUM_API_KEY"

GET /sites/{key}/broken

Paths visitors hit that returned 404 or 410, or same-site assets that failed to load, with the same history fields, and from: the pages on your site that led there, so you know which link to fix.

Request
curl "https://api.pagehum.com/v1/sites/s_ab12cd34ef56/broken?range=7" \
  -H "Authorization: Bearer $PAGEHUM_API_KEY"

GET /sites/{key}/requests

Calls from your pages to your own host (fetch and XHR) that got a 5xx, or no response at all (status: 0), most first, with the same history fields. Only the method, path, and status are kept: no bodies, headers, or visitors.

Request
curl "https://api.pagehum.com/v1/sites/s_ab12cd34ef56/requests?range=7" \
  -H "Authorization: Bearer $PAGEHUM_API_KEY"

GET /sites/{key}/issues

Every reading in watch or problem over the last 7 days, the board’s one Problem first. Each has its why, a status for counted readings, 14 days of history in trend, and the rows the board shows for it: errors, paths, requests, slowPages and slowDevices, certificate notes, or failed checks. Readings you cleared or snoozed come last, with suppressed set. Add include=prompt for each one’s prompt: what the board found, written for an AI coding assistant, the same one its Copy prompt button copies.

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

GET /sites/{key}/speed

p75 load, LCP, INP, and TTFB per day (per week past 30 days), for every load and per device class, with the lines between good, needs improvement, and poor. A point drawn from fewer than minSamples is null. slowerSince marks where a reading moved into a worse band and stayed there. metric=lcp keeps one reading.

Request
curl "https://api.pagehum.com/v1/sites/s_ab12cd34ef56/speed?range=7&metric=lcp" \
  -H "Authorization: Bearer $PAGEHUM_API_KEY"

GET /sites/{key}/lab

Saved Lighthouse scores, metrics, top opportunities, history and regression prompts. Defaults to the homepage on mobile. Select a checked path and strategy=mobile|desktop; pass nextBefore back as before for older runs.configured=false means lab tests are not activated. Reads start no test. Pro and Ultra can use raw=RUN_ID for a private 60-second download link within 30 days.

Request
curl "https://api.pagehum.com/v1/sites/s_ab12cd34ef56/lab?path=%2F&strategy=mobile" \
  -H "Authorization: Bearer $PAGEHUM_API_KEY"

GET /sites/{key}/pages/{path}

Everything about one page: /pages/pricing/annual for /pricing/annual, and /pages for the home page. Its views and share of traffic, p75 load, LCP, and INP beside the whole site’s, its client errors, missing when the page itself 404s (with the pages that link to it), brokenLinks reached from it, failing calls it made, rage clicks, its page check, and a prompt for an AI assistant scoped to the page.

Request
curl "https://api.pagehum.com/v1/sites/s_ab12cd34ef56/pages/cart?range=7" \
  -H "Authorization: Bearer $PAGEHUM_API_KEY"

GET /sites/{key}/export.csv

The range’s daily aggregates as CSV, one row per UTC day, for spreadsheets and your own records. It isn’t wrapped in the JSON envelope; errors still are. p75s are estimated within PageHum’s timing buckets and left blank on a day with too few samples; uptime is the share of homepage checks that passed. Daily visitors are estimated unique browsers for each UTC day; adding daily rows can count returning browsers more than once.

Request
curl "https://api.pagehum.com/v1/sites/s_ab12cd34ef56/export.csv?range=7" \
  -H "Authorization: Bearer $PAGEHUM_API_KEY"

GET /sites/{key}/outages

Outages PageHum detected from the homepage checks, open ones first, then the most recent (kept 90 days). Each keeps its id from open to close, so a poller can match an opening to its closing. limit is up to 200 (default 50).

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

GET /sites/{key}/checks

Pages checked besides the homepage, with each one’s last result, failure streak, uptime, and the plan’s limit.

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

GET /sites/{key}/landingboost

LandingBoost scores for the site’s pages, the latest scan with its First Edit, and the followed page’s history, if the account linked LandingBoost. Add include=prompt for prompt: the First Edit written for an AI coding assistant, with LandingBoost’s warnings as rules.

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

Deploys and notes

Markers put a line on the board’s charts for each deploy or change, and an issue first seen that day or the next says it started after one. Mark deploys from CI with a write key, or skip the key and use the site’s deploy hook from the board.

POST /sites/{key}/markers (write)

Only text is needed, up to 140 characters. kind is deploy (the default) or note, and at is when it happened, default now. Each plan keeps a number of markers per site (30, 300, or 1,000); past it the oldest drop off, so a CI step never fails on the limit.

Request
curl -X POST "https://api.pagehum.com/v1/sites/s_ab12cd34ef56/markers" \
  -H "Authorization: Bearer $PAGEHUM_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"text":"v1.4.2: new checkout","kind":"deploy"}'
# In CI, after a successful deploy (jq builds the JSON, so quotes in the message are safe):
curl -s -X POST "https://api.pagehum.com/v1/sites/$PAGEHUM_SITE/markers" \
  -H "Authorization: Bearer $PAGEHUM_KEY" -H "Content-Type: application/json" \
  -d "$(jq -n --arg text "$(git log -1 --pretty=%s)" '{text: $text}')"

GET /sites/{key}/markers

Markers in the range, oldest first, with where each came from: board, api, or hook.

Request
curl "https://api.pagehum.com/v1/sites/s_ab12cd34ef56/markers?range=30" \
  -H "Authorization: Bearer $PAGEHUM_API_KEY"

DELETE /sites/{key}/markers/{id} (write)

Removes one marker.

Request
curl -X DELETE "https://api.pagehum.com/v1/sites/s_ab12cd34ef56/markers/6f0e2c8a-4b1d-4e7a-9c35-2d8f1a7b9e40" \
  -H "Authorization: Bearer $PAGEHUM_API_KEY"

GET /sites/{key}/deploys/{id}

Did that deploy make things worse? The deploy check for a deploy marker’s id, or latest: each window’s verdict (fine, watch, worse, or quiet), what moved with its numbers before and after, new errors and failing endpoints, checks failing since, and prompt when it’s worth fixing. regressed is true when the verdict is worse; settled once every window on the plan is judged, and nextAt says when the next one is. Starter, Pro, and Ultra; a plan without it answers 403 plan_limit.

Request
curl "https://api.pagehum.com/v1/sites/s_ab12cd34ef56/deploys/6f0e2c8a-4b1d-4e7a-9c35-2d8f1a7b9e40" \
  -H "Authorization: Bearer $PAGEHUM_API_KEY"

Incidents and maintenance

What visitors read on the site’s public status page, besides the checks: incidents you write up, and maintenance you schedule. PageHum never posts an incident by itself. Times are milliseconds since the epoch; you can send ISO 8601 instead.

POST /sites/{key}/incidents (write)

Opens an incident at the top of the status page. impact is degraded, partial, or major; status is investigating, identified, monitoring, or resolved. An open partial or major outage puts the page’s headline at that state, even while the homepage check passes.

Request
curl -X POST "https://api.pagehum.com/v1/sites/s_ab12cd34ef56/incidents" \
  -H "Authorization: Bearer $PAGEHUM_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"title":"Checkout errors for some visitors","impact":"partial","status":"investigating","message":"Some visitors see an error at checkout. We're looking into it."}'

GET /sites/{key}/incidents

Every incident kept, newest first: open ones, and those resolved in the last 90 days. Updates are oldest first.

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

GET /sites/{key}/incidents/{id}

One incident.

Request
curl "https://api.pagehum.com/v1/sites/s_ab12cd34ef56/incidents/0b7d5e21-93c4-4f6a-8e12-5a9c7d3b1f68" \
  -H "Authorization: Bearer $PAGEHUM_API_KEY"

PATCH /sites/{key}/incidents/{id} (write)

A new title or impact.

Request
curl -X PATCH "https://api.pagehum.com/v1/sites/s_ab12cd34ef56/incidents/0b7d5e21-93c4-4f6a-8e12-5a9c7d3b1f68" \
  -H "Authorization: Bearer $PAGEHUM_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"impact":"major"}'

POST /sites/{key}/incidents/{id}/updates (write)

A timestamped update. The incident is resolved exactly when its latest update is resolved, so a later update reopens it. An incident takes up to 30 updates.

Request
curl -X POST "https://api.pagehum.com/v1/sites/s_ab12cd34ef56/incidents/0b7d5e21-93c4-4f6a-8e12-5a9c7d3b1f68/updates" \
  -H "Authorization: Bearer $PAGEHUM_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"status":"resolved","message":"A fix is live and checkouts are going through."}'

PATCH /sites/{key}/incidents/{id}/updates/{updateId} (write)

Fixes an update’s message or status. The status page marks it edited.

Request
curl -X PATCH "https://api.pagehum.com/v1/sites/s_ab12cd34ef56/incidents/0b7d5e21-93c4-4f6a-8e12-5a9c7d3b1f68/updates/c41a8f02-6d3e-4b95-a7c1-9e2f5b8d4a37" \
  -H "Authorization: Bearer $PAGEHUM_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"message":"A fix is live, and every checkout since 14:20 UTC went through."}'

DELETE /sites/{key}/incidents/{id}/updates/{updateId} (write)

Removes an update. An incident’s only update can’t go (409); delete the incident instead.

Request
curl -X DELETE "https://api.pagehum.com/v1/sites/s_ab12cd34ef56/incidents/0b7d5e21-93c4-4f6a-8e12-5a9c7d3b1f68/updates/c41a8f02-6d3e-4b95-a7c1-9e2f5b8d4a37" \
  -H "Authorization: Bearer $PAGEHUM_API_KEY"

DELETE /sites/{key}/incidents/{id} (write)

Removes the incident and its updates from the status page.

Request
curl -X DELETE "https://api.pagehum.com/v1/sites/s_ab12cd34ef56/incidents/0b7d5e21-93c4-4f6a-8e12-5a9c7d3b1f68" \
  -H "Authorization: Bearer $PAGEHUM_API_KEY"

POST /sites/{key}/maintenance (write)

While a window runs, down and problem alerts are held, and homepage checks are marked maintenance: they don’t count against uptime or open an outage. A window can’t start in the past (so it can’t erase an outage), lasts up to 7 days, and starts within 180 days. The status page shows it from 30 days before.

Request
curl -X POST "https://api.pagehum.com/v1/sites/s_ab12cd34ef56/maintenance" \
  -H "Authorization: Bearer $PAGEHUM_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"title":"Database upgrade","note":"Checkout may be unavailable for a few minutes.","startsAt":"2026-10-20T02:00:00Z","endsAt":"2026-10-20T03:00:00Z"}'

GET /sites/{key}/maintenance

Windows soonest first: upcoming, running, and those that ended in the last 90 days.

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

PATCH /sites/{key}/maintenance/{id} (write)

New title, note, startsAt, or endsAt; a running window keeps its start. Send {"end": true} to end a running window now.

Request
curl -X PATCH "https://api.pagehum.com/v1/sites/s_ab12cd34ef56/maintenance/8e3f1b6c-2a7d-4c58-b9e4-1d6a0f7c3e92" \
  -H "Authorization: Bearer $PAGEHUM_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"note":"Checkout and accounts may be unavailable for up to 20 minutes."}'

DELETE /sites/{key}/maintenance/{id} (write)

Cancels a window that hasn’t started. One that has started stays on record (409); end it instead.

Request
curl -X DELETE "https://api.pagehum.com/v1/sites/s_ab12cd34ef56/maintenance/8e3f1b6c-2a7d-4c58-b9e4-1d6a0f7c3e92" \
  -H "Authorization: Bearer $PAGEHUM_API_KEY"

PUT /sites/{key}/status-domain (write, Starter, Pro, and Ultra)

Serves the status page on your own domain. The answer lists the DNS records to create: a CNAME for a subdomain, an A record for an apex, and a TXT record if the domain is also on another Vercel account. A new host replaces the old one; Free plans get 403, and a host another site uses gets 409.

Request
curl -X PUT "https://api.pagehum.com/v1/sites/s_ab12cd34ef56/status-domain" \
  -H "Authorization: Bearer $PAGEHUM_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"host":"status.harbor.example"}'

GET /sites/{key}/status-domain

The domain and where it stands (pending, verifying, live, or error), or null.

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

POST /sites/{key}/status-domain/check (write)

Checks DNS and the certificate again. PageHum also checks every few minutes while a domain is being set up.

Request
curl -X POST "https://api.pagehum.com/v1/sites/s_ab12cd34ef56/status-domain/check" \
  -H "Authorization: Bearer $PAGEHUM_API_KEY"

DELETE /sites/{key}/status-domain (write)

Takes the domain off. The status page stays at pagehum.com/status/your-site-key.

Request
curl -X DELETE "https://api.pagehum.com/v1/sites/s_ab12cd34ef56/status-domain" \
  -H "Authorization: Bearer $PAGEHUM_API_KEY"

Team

The owner invites teammates and clients to a site as viewers or editors (see Team access). A member’s own key reads the sites shared with them: GET /sites lists them after the account’s own, each with its role, and every read endpoint takes their keys. Changing a shared site through the API stays with its owner, except that editors can add and remove markers and post incidents and maintenance. A role that doesn’t allow a call answers 403 forbidden.

POST /sites/{key}/members (write, owner)

Invites an address as a viewer or editor. PageHum emails a link good for 7 days, and the answer carries the same link, to deliver it another way. It works only for that address. Inviting an address with an open invitation renews it. Free plans get 403, and so does a site with no room left on the plan.

Request
curl -X POST "https://api.pagehum.com/v1/sites/s_ab12cd34ef56/members" \
  -H "Authorization: Bearer $PAGEHUM_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"email":"sam@harbor.example","role":"editor"}'

GET /sites/{key}/members (owner)

Members, open invitations (expired ones included, to send again), and the plan’s room per site.

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

POST /invites/accept (write)

Accepts with the invited account’s own key: its address must be the one invited. token is the invitation’s link or the token at its end.

Request
curl -X POST "https://api.pagehum.com/v1/invites/accept" \
  -H "Authorization: Bearer $PAGEHUM_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"token":"https://pagehum.com/invite/phi_Xq3vN8sLr2KdY7mWcT5pHjB0aZ1eUo4f"}'

PATCH /sites/{key}/members/{userId} (write, owner)

Makes a member a viewer or an editor.

Request
curl -X PATCH "https://api.pagehum.com/v1/sites/s_ab12cd34ef56/members/9d41c7e2-3b8a-4f65-a0d2-6e1c5b7f8a34" \
  -H "Authorization: Bearer $PAGEHUM_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"role":"viewer"}'

DELETE /sites/{key}/members/{userId} (write)

The owner removes someone; with me, a member’s key leaves the site.

Request
curl -X DELETE "https://api.pagehum.com/v1/sites/s_ab12cd34ef56/members/9d41c7e2-3b8a-4f65-a0d2-6e1c5b7f8a34" \
  -H "Authorization: Bearer $PAGEHUM_API_KEY"

Alert channels

The webhooks and chat channels that get alerts, so a tool can register its own receiver with an owner’s key instead of asking them to paste a URL. Adding and changing them needs the write scope and a Starter, Pro, or Ultra plan.

POST /channels (write)

Adds a webhook: name and an https url on a public host. It gets every event (down, recovered, problem, state) for every site unless events and siteIds say otherwise. The answer carries the signing secret this once; store it to check X-PageHum-Signature. kind can also be slack, discord, or teams, with that service’s own webhook URL.

Request
curl -X POST "https://api.pagehum.com/v1/channels" \
  -H "Authorization: Bearer $PAGEHUM_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"name":"Ops dashboard","url":"https://ops.harbor.example/hooks/pagehum"}'

GET /channels

Every channel, with each one’s last few deliveries. URLs show only their end, and secrets are never shown again.

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

PATCH /channels/{id} (write)

Pauses or resumes (enabled), renames, or changes what a channel gets. Send events and siteIds together; leaving siteIds out means every site.

Request
curl -X PATCH "https://api.pagehum.com/v1/channels/5a2c9e14-7f3b-4d86-a1e5-3b8d6c0f2a79" \
  -H "Authorization: Bearer $PAGEHUM_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"events":["down","recovered","state"],"siteIds":null}'

POST /channels/{id}/test (write)

Sends a signed test event and reports what the receiver answered. Up to three an hour per channel.

Request
curl -X POST "https://api.pagehum.com/v1/channels/5a2c9e14-7f3b-4d86-a1e5-3b8d6c0f2a79/test" \
  -H "Authorization: Bearer $PAGEHUM_API_KEY"

DELETE /channels/{id} (write)

Removes the channel. Nothing more is sent to it.

Request
curl -X DELETE "https://api.pagehum.com/v1/channels/5a2c9e14-7f3b-4d86-a1e5-3b8d6c0f2a79" \
  -H "Authorization: Bearer $PAGEHUM_API_KEY"

OpenAPI and versions

The full description is at /api/v1/openapi.json (OpenAPI 3.1), for code generators and API clients. Version 1 only grows: new fields and endpoints can appear, so ignore fields you don’t know. Anything that would break a client goes into /api/v2, with /api/v1 kept for at least six months after.