Documentation

Documentation / Developer tools

API referenceREST

Build monitoring into your workflow. Explore endpoints, copy working examples, and find the permissions and responses you need.

BASE URLhttps://pagelantern.com/api

Last updated October 18, 2026

CONNECT TO PAGELANTERN

How do I authenticate an API request?

FOR AUTOMATION

Scoped API keys

X-API-Key: <your-key>

Use /api/integrations/monitors with the monitors:read, monitors:write or monitors:run scope required by the operation. The Integrations dialog creates read-only keys; request write or run scopes through the key-management endpoint.

Create a scoped key ↗
FOR WORKSPACE OPERATIONS

Session tokens

Authorization: Bearer <session-token>

Other authenticated routes use a signed-in session. Access follows your workspace role. Cookie-authenticated writes also require X-Requested-With.

Understand workspace roles ↗

QUICKSTART

Your first request

Set PAGELANTERN_API_KEY in your server environment, then list the monitors in your workspace. Keep keys on the server; do not embed them in browser code.

List monitors
curl --fail-with-body "https://pagelantern.com/api/integrations/monitors" \
  -H "X-API-Key: $PAGELANTERN_API_KEY" \
  -H "Accept: application/json"

Returns 200 OK with a JSON array of monitor summaries. An empty workspace returns []. The key needs monitors:read.

EXPLORE THE API

Endpoint reference

Find an operation, then expand it for permissions, parameters and response details.

66 of 66 endpoints

Automation with API keys

10 endpoints

Use X-API-Key for unattended monitor automation. Each operation checks its named scope and stays within the key’s workspace. API keys do not authenticate the session endpoints below.

GET/api/integrations/monitorsList monitors
X-API-Key · monitors:readPermalink ↗

Returns an array of monitor summaries. Use the paged endpoint for larger workspaces.

Response200 · MonitorSummary[]

List monitors response example
[]
GET/api/integrations/monitors/pagedPage through monitors
X-API-Key · monitors:readPermalink ↗

Returns items, page, size and totalItems. Continue while (page + 1) × size is less than totalItems.

Parameters
NameTypeDescription
pageinteger · queryZero-based page number. Default 0; must be 0 or greater.
sizeinteger · queryItems per page. Default 50; accepted range 1–200.

Response200 · PagedResponse<MonitorSummary>

Page through monitors response example
{
  "items": [],
  "page": 0,
  "size": 50,
  "totalItems": 0
}
POST/api/integrations/monitorsCreate a monitor
X-API-Key · monitors:writePermalink ↗

Returns the full monitor detail and a Location header. Enable the monitor when you are ready for scheduled checks.

Parameters
NameTypeDescription
nameRequiredstring · bodyMonitor name, up to 255 characters.
urlRequiredstring · bodyHTTP(S) target for an HTTP monitor. Other monitor types have type-specific target fields.
intervalSecondsRequiredinteger · body30–86400 seconds, also subject to your plan minimum. An interval below the plan minimum returns 402.
timeoutMsRequiredinteger · body1000–120000 milliseconds.
enabledRequiredboolean · bodyWhether scheduled checks should run. Examples create a disabled monitor for review.
monitorTypestring · bodyDefaults to HTTP. Other types include API, SSL, DOMAIN, HEARTBEAT, DNS, TCP, PING, UDP, DOM, BROWSER and PAGE_SPEED.
expectedStatusinteger · bodyExpected HTTP status, from 100 to 599.
headersarray · bodyRequest headers as [{"name":"Accept","value":"application/json"}]. Secret values may be masked when read back.
tagsstring[] · bodyUp to 24 tags, each up to 32 characters.
Create a monitor request body
{
  "name": "Marketing site",
  "url": "https://example.com",
  "monitorType": "HTTP",
  "intervalSeconds": 300,
  "timeoutMs": 10000,
  "expectedStatus": 200,
  "enabled": false
}

Response201 · MonitorDetail

GET/api/integrations/monitors/{monitorId}Read a monitor
X-API-Key · monitors:readPermalink ↗

Configuration and current state are returned in a detail object whose summary contains the monitor ID and scheduling state. Sensitive configuration is masked.

Parameters
NameTypeDescription
monitorIdRequiredinteger · pathMonitor ID in the authenticated workspace.

Response200 · MonitorDetail

PUT/api/integrations/monitors/{monitorId}Update a monitor
X-API-Key · monitors:writePermalink ↗

Submit the complete monitor configuration, including all required fields. This is not a partial PATCH. Preserve configuration you intend to keep.

Parameters
NameTypeDescription
monitorIdRequiredinteger · pathMonitor ID in the authenticated workspace.
nameRequiredstring · bodyMonitor name, up to 255 characters.
urlRequiredstring · bodyHTTP(S) target for an HTTP monitor. Other monitor types have type-specific target fields.
intervalSecondsRequiredinteger · body30–86400 seconds, also subject to your plan minimum. An interval below the plan minimum returns 402.
timeoutMsRequiredinteger · body1000–120000 milliseconds.
enabledRequiredboolean · bodyWhether scheduled checks should run. Examples create a disabled monitor for review.
monitorTypestring · bodyDefaults to HTTP. Other types include API, SSL, DOMAIN, HEARTBEAT, DNS, TCP, PING, UDP, DOM, BROWSER and PAGE_SPEED.
expectedStatusinteger · bodyExpected HTTP status, from 100 to 599.
headersarray · bodyRequest headers as [{"name":"Accept","value":"application/json"}]. Secret values may be masked when read back.
tagsstring[] · bodyUp to 24 tags, each up to 32 characters.
Update a monitor request body
{
  "name": "Marketing site",
  "url": "https://example.com",
  "monitorType": "HTTP",
  "intervalSeconds": 300,
  "timeoutMs": 10000,
  "expectedStatus": 200,
  "enabled": false
}

Response200 · MonitorDetail

DELETE/api/integrations/monitors/{monitorId}Delete a monitor
X-API-Key · monitors:writePermalink ↗

Permanently removes this monitor. Successful deletion has no response body.

Parameters
NameTypeDescription
monitorIdRequiredinteger · pathMonitor ID in the authenticated workspace.

Response204 · No content

POST/api/integrations/monitors/{monitorId}/runRun a check now
X-API-Key · monitors:runPermalink ↗

Home-only checks return their result. HTTP monitors with remote locations return a queued receipt. Match its logicalRunId with monitor history to see each actual location. PAGE_SPEED uses the dedicated session endpoint.

Parameters
NameTypeDescription
monitorIdRequiredinteger · pathMonitor ID in the authenticated workspace.

Response200 · ProbeResultView or 202 · RegionalRunReceipt

GET/api/integrations/monitors/{monitorId}/resultsRead check results
X-API-Key · monitors:readPermalink ↗

Returns a history envelope, not a bare array. Results contain checkedAt, success, statusCode, responseTimeMs and probeLocation. Retention applies; truncated signals capped history.

Parameters
NameTypeDescription
monitorIdRequiredinteger · pathMonitor ID in the authenticated workspace.
rangestring · query1h, 6h, 24h, 7d or 30d. Default 24h. Unsupported values return 400.

Response200 · MonitorHistoryResponse

Read check results response example
{
  "range": "24h",
  "since": "2026-10-17T12:00:00Z",
  "until": "2026-10-18T12:00:00Z",
  "results": [],
  "truncated": false
}
POST/api/integrations/monitors/{monitorId}/pausePause scheduled checks
X-API-Key · monitors:writePermalink ↗

Sets enabled to false and summary.paused to true. No request body is required.

Parameters
NameTypeDescription
monitorIdRequiredinteger · pathMonitor ID in the authenticated workspace.

Response200 · MonitorDetail

POST/api/integrations/monitors/{monitorId}/resumeResume scheduled checks
X-API-Key · monitors:writePermalink ↗

Sets enabled to true and summary.paused to false. No request body is required.

Parameters
NameTypeDescription
monitorIdRequiredinteger · pathMonitor ID in the authenticated workspace.

Response200 · MonitorDetail

Monitors and results

13 endpoints

Session endpoints for managing monitoring configuration. Send Authorization: Bearer <session token>. Cookie-authenticated writes also require X-Requested-With.

GET/api/monitorsList workspace monitors
Session token · All workspace rolesPermalink ↗

Returns an array of MonitorSummary objects.

Response200 · MonitorSummary[]

List workspace monitors response example
[]
GET/api/monitors/pagedPage through workspace monitors
Session token · All workspace rolesPermalink ↗

Uses zero-based pages and returns the total count alongside the current items.

Parameters
NameTypeDescription
pageinteger · queryZero-based page number. Default 0; must be 0 or greater.
sizeinteger · queryItems per page. Default 50; accepted range 1–200.

Response200 · PagedResponse<MonitorSummary>

Page through workspace monitors response example
{
  "items": [],
  "page": 0,
  "size": 50,
  "totalItems": 0
}
POST/api/monitorsCreate a workspace monitor
Session token · Owner/AdminPermalink ↗

Creates a monitor and returns its detail plus a Location header. For PAGE_SPEED, check capabilities and supply the nested pageSpeed configuration before enabling its schedule.

Parameters
NameTypeDescription
nameRequiredstring · bodyMonitor name, up to 255 characters.
urlRequiredstring · bodyHTTP(S) target for an HTTP monitor. Other monitor types have type-specific target fields.
intervalSecondsRequiredinteger · body30–86400 seconds, also subject to your plan minimum. An interval below the plan minimum returns 402.
timeoutMsRequiredinteger · body1000–120000 milliseconds.
enabledRequiredboolean · bodyWhether scheduled checks should run. Examples create a disabled monitor for review.
monitorTypestring · bodyDefaults to HTTP. Other types include API, SSL, DOMAIN, HEARTBEAT, DNS, TCP, PING, UDP, DOM, BROWSER and PAGE_SPEED.
expectedStatusinteger · bodyExpected HTTP status, from 100 to 599.
headersarray · bodyRequest headers as [{"name":"Accept","value":"application/json"}]. Secret values may be masked when read back.
tagsstring[] · bodyUp to 24 tags, each up to 32 characters.
Create a workspace monitor request body
{
  "name": "Marketing site",
  "url": "https://example.com",
  "monitorType": "HTTP",
  "intervalSeconds": 300,
  "timeoutMs": 10000,
  "expectedStatus": 200,
  "enabled": false
}

Response201 · MonitorDetail

GET/api/monitors/{monitorId}Read configuration and state
Session token · All workspace rolesPermalink ↗

The detail contains summary, assertion settings, headers, recentResults and other monitor-specific configuration.

Parameters
NameTypeDescription
monitorIdRequiredinteger · pathMonitor ID in the authenticated workspace.

Response200 · MonitorDetail

PUT/api/monitors/{monitorId}Update monitor configuration
Session token · Owner/AdminPermalink ↗

Submit a complete configuration with name, intervalSeconds, timeoutMs and enabled, plus the target and settings required by its type. Omitted optional fields may reset to defaults.

Parameters
NameTypeDescription
monitorIdRequiredinteger · pathMonitor ID in the authenticated workspace.
nameRequiredstring · bodyMonitor name, up to 255 characters.
urlRequiredstring · bodyHTTP(S) target for an HTTP monitor. Other monitor types have type-specific target fields.
intervalSecondsRequiredinteger · body30–86400 seconds, also subject to your plan minimum. An interval below the plan minimum returns 402.
timeoutMsRequiredinteger · body1000–120000 milliseconds.
enabledRequiredboolean · bodyWhether scheduled checks should run. Examples create a disabled monitor for review.
monitorTypestring · bodyDefaults to HTTP. Other types include API, SSL, DOMAIN, HEARTBEAT, DNS, TCP, PING, UDP, DOM, BROWSER and PAGE_SPEED.
expectedStatusinteger · bodyExpected HTTP status, from 100 to 599.
headersarray · bodyRequest headers as [{"name":"Accept","value":"application/json"}]. Secret values may be masked when read back.
tagsstring[] · bodyUp to 24 tags, each up to 32 characters.
Update monitor configuration request body
{
  "name": "Marketing site",
  "url": "https://example.com",
  "monitorType": "HTTP",
  "intervalSeconds": 300,
  "timeoutMs": 10000,
  "expectedStatus": 200,
  "enabled": false
}

Response200 · MonitorDetail

DELETE/api/monitors/{monitorId}Delete a workspace monitor
Session token · Owner/AdminPermalink ↗

Permanently removes the monitor and returns an empty response.

Parameters
NameTypeDescription
monitorIdRequiredinteger · pathMonitor ID in the authenticated workspace.

Response204 · No content

POST/api/monitors/{monitorId}/pausePause a monitor
Session token · Owner/AdminPermalink ↗

Stops scheduled checks and returns the updated detail with summary.paused true.

Parameters
NameTypeDescription
monitorIdRequiredinteger · pathMonitor ID in the authenticated workspace.

Response200 · MonitorDetail

POST/api/monitors/{monitorId}/resumeResume a monitor
Session token · Owner/AdminPermalink ↗

Enables scheduled checks and returns the updated detail with summary.paused false.

Parameters
NameTypeDescription
monitorIdRequiredinteger · pathMonitor ID in the authenticated workspace.

Response200 · MonitorDetail

POST/api/monitors/{monitorId}/runRun a monitor immediately
Session token · Owner/AdminPermalink ↗

Returns the completed home check or queues an HTTP check at the configured locations. A queued receipt lists the logical run ID and unavailable selections. PAGE_SPEED uses its dedicated run endpoint.

Parameters
NameTypeDescription
monitorIdRequiredinteger · pathMonitor ID in the authenticated workspace.

Response200 · ProbeResultView or 202 · RegionalRunReceipt

GET/api/monitors/{monitorId}/resultsRead monitor history
Session token · All workspace rolesPermalink ↗

Returns {range, since, until, results, truncated}. The history, latency and uptime suffixes are aliases for this same history shape.

Parameters
NameTypeDescription
monitorIdRequiredinteger · pathMonitor ID in the authenticated workspace.
rangestring · query1h, 6h, 24h, 7d or 30d. Default 24h. Unsupported values return 400.

Response200 · MonitorHistoryResponse

Read monitor history response example
{
  "range": "24h",
  "since": "2026-10-17T12:00:00Z",
  "until": "2026-10-18T12:00:00Z",
  "results": [],
  "truncated": false
}
GET/api/monitors/{monitorId}/results/{resultId}/harExport a result as HAR
Session token · Owner/AdminPermalink ↗

Returns the available request and response capture for this result as HAR JSON. Sensitive captures require Owner/Admin; unavailable captures return 404.

Parameters
NameTypeDescription
monitorIdRequiredinteger · pathMonitor ID in the authenticated workspace.
resultIdRequiredinteger · pathProbe result ID returned in monitor history.

Response200 · HAR JSON

GET/api/monitors/exportExport monitor definitions
Session token · All workspace rolesPermalink ↗

Returns reusable MonitorUpsertRequest objects. Secret configuration can be masked according to the caller’s role.

Response200 · MonitorUpsertRequest[]

POST/api/monitors/importImport monitor definitions
Session token · Owner/AdminPermalink ↗

Accepts up to 250 definitions. dryRun previews created, updated and skipped counts; overwriteByName allows matching names to be updated.

Parameters
NameTypeDescription
monitorsarray · bodyUp to 250 valid monitor definitions.
overwriteByNameboolean · bodyUpdate an existing monitor with the same name.
dryRunboolean · bodyPreview the import without saving monitors.
Import monitor definitions request body
{
  "monitors": [
    {
      "name": "Marketing site",
      "url": "https://example.com",
      "monitorType": "HTTP",
      "intervalSeconds": 300,
      "timeoutMs": 10000,
      "expectedStatus": 200,
      "enabled": false
    }
  ],
  "overwriteByName": false,
  "dryRun": true
}

Response200 · MonitorImportResponse

Tags and organization

3 endpoints

Tags organize monitors and can also scope alert policies. The workspace uses tags; there is no folder API.

GET/api/monitors/tagsList tags and monitor counts
Session token · All workspace rolesPermalink ↗

Returns the workspace tag ledger.

Response200 · TagCount[]

List tags and monitor counts response example
[
  {
    "tag": "production",
    "monitorCount": 3
  }
]
POST/api/monitors/tagsApply tags in bulk
Session token · Owner/AdminPermalink ↗

ADD unions tags with existing values. REPLACE sets exactly the supplied tags; an empty list clears them. The response includes updatedCount and the resulting ledger.

Parameters
NameTypeDescription
monitorIdsRequiredinteger[] · bodySelect 1–500 monitor IDs in this workspace.
tagsstring[] · bodyUp to 24 tags, each 1–32 characters. ADD requires at least one tag; REPLACE allows an empty list to clear tags.
modestring · bodyADD (default) or REPLACE.
Apply tags in bulk request body
{
  "monitorIds": [
    123
  ],
  "tags": [
    "production"
  ],
  "mode": "ADD"
}

Response200 · MonitorTagBulkResponse

Apply tags in bulk response example
{
  "updatedCount": 1,
  "tags": [
    {
      "tag": "production",
      "monitorCount": 1
    }
  ]
}
PUT/api/monitors/tagsRename or remove a tag
Session token · Owner/AdminPermalink ↗

Renames a tag throughout the workspace and updates matching alert-policy references. A blank or omitted to removes the tag and disables matching tag policies.

Parameters
NameTypeDescription
fromRequiredstring · bodyExisting tag, up to 32 characters.
tostring · bodyReplacement tag, up to 32 characters. Blank or omitted deletes the tag.
Rename or remove a tag request body
{
  "from": "prod",
  "to": "production"
}

Response200 · MonitorTagBulkResponse

Incident response

8 endpoints

Read monitoring incidents, assign ownership, and record the response. Monitor incidents and public status-page incidents are distinct resources.

GET/api/incidentsList recent incidents
Session token · All workspace rolesPermalink ↗

Returns recent incidents in the current workspace.

Parameters
NameTypeDescription
limitinteger · queryRequested incident count. Default 120; bounded to 1–250.

Response200 · IncidentView[]

GET/api/incidents/{incidentId}Read an incident timeline
Session token · All workspace rolesPermalink ↗

Returns {incident, timeline}; timeline is an array of updates.

Parameters
NameTypeDescription
incidentIdRequiredstring · pathIncident ID returned by the relevant incident API. Monitor incidents use numeric IDs; published status incidents use string IDs.

Response200 · IncidentDetailView

PUT/api/incidents/{incidentId}Assign ownership and severity
Session token · Owner/AdminPermalink ↗

Updates only supplied incident management fields. Severity uses SEV1 through SEV5.

Parameters
NameTypeDescription
incidentIdRequiredstring · pathIncident ID returned by the relevant incident API. Monitor incidents use numeric IDs; published status incidents use string IDs.
severitystring · bodySEV1, SEV2, SEV3, SEV4 or SEV5.
ownerLabelstring · bodyOwner label, up to 160 characters.
incidentRolestring · bodyResponder role, up to 64 characters.
postmortemstring · bodyPostmortem text, up to 12000 characters.
Assign ownership and severity request body
{
  "severity": "SEV2",
  "ownerLabel": "On-call team"
}

Response200 · IncidentView

POST/api/incidents/{incidentId}/updatesAppend a timeline update
Session token · Owner/AdminPermalink ↗

Adds a response note; publicVisible marks visibility intent for the update.

Parameters
NameTypeDescription
incidentIdRequiredstring · pathIncident ID returned by the relevant incident API. Monitor incidents use numeric IDs; published status incidents use string IDs.
messageRequiredstring · bodyUpdate text, 1–2000 characters.
updateTypestring · bodyUpdate label, up to 32 characters. Defaults to UPDATE.
publicVisibleboolean · bodyWhether the update is marked for public visibility.
Append a timeline update request body
{
  "message": "Investigating elevated errors.",
  "updateType": "UPDATE",
  "publicVisible": false
}

Response200 · IncidentUpdateView

POST/api/incidents/{incidentId}/acknowledgeAcknowledge an incident
Session token · Owner/AdminPermalink ↗

Records acknowledgement by the current user. No body is required.

Parameters
NameTypeDescription
incidentIdRequiredstring · pathIncident ID returned by the relevant incident API. Monitor incidents use numeric IDs; published status incidents use string IDs.

Response200 · IncidentView

POST/api/incidents/{incidentId}/resolveResolve an incident
Session token · Owner/AdminPermalink ↗

Marks the incident resolved manually. No body is required.

Parameters
NameTypeDescription
incidentIdRequiredstring · pathIncident ID returned by the relevant incident API. Monitor incidents use numeric IDs; published status incidents use string IDs.

Response200 · IncidentView

POST/api/incidents/{incidentId}/reopenReopen an incident
Session token · Owner/AdminPermalink ↗

Reopens a resolved incident. No body is required.

Parameters
NameTypeDescription
incidentIdRequiredstring · pathIncident ID returned by the relevant incident API. Monitor incidents use numeric IDs; published status incidents use string IDs.

Response200 · IncidentView

POST/api/incidents/{incidentId}/suppress-notificationsSuppress incident notifications
Session token · Owner/AdminPermalink ↗

Marks this incident’s notifications suppressed. No body is required.

Parameters
NameTypeDescription
incidentIdRequiredstring · pathIncident ID returned by the relevant incident API. Monitor incidents use numeric IDs; published status incidents use string IDs.

Response200 · IncidentView

Status pages

10 endpoints

Manage page settings and public communications. These management routes require a session even when the resulting page is public.

GET/api/status-pagesList status pages
Session token · All workspace rolesPermalink ↗

Returns settings and published content for the workspace’s status pages.

Response200 · StatusPage[]

GET/api/status-pages/{pageId}Read a status page
Session token · All workspace rolesPermalink ↗

Returns page settings, selectedMonitorIds, components, publishedIncidents, maintenanceWindows and publicPath.

Parameters
NameTypeDescription
pageIdRequiredinteger · pathStatus-page ID in the authenticated workspace.

Response200 · StatusPage

POST/api/status-pagesCreate a status page
Session token · Owner/AdminPermalink ↗

Defaults to private. Empty selectedMonitorIds means all workspace monitors, including future monitors. Page limits are enforced with 402.

Parameters
NameTypeDescription
namestring · bodyPage title. Defaults to Public Status.
slugstring · bodyPreferred public URL slug; the server makes it unique.
publicboolean · bodyWhether visitors can access the public page. Default false.
selectedMonitorIdsinteger[] · bodySelected monitors. Empty means all, including monitors added later.
Create a status page request body
{
  "name": "Service status",
  "slug": "service-status",
  "public": false,
  "selectedMonitorIds": [
    123
  ]
}

Response200 · StatusPage

PUT/api/status-pages/{pageId}Update page settings
Session token · Owner/AdminPermalink ↗

Send the complete intended page settings; omitted ordinary settings fall back to defaults. Stored subscriptions and omitted published incidents/maintenance are preserved. Domain verification is managed by the server.

Parameters
NameTypeDescription
pageIdRequiredinteger · pathStatus-page ID in the authenticated workspace.
Update page settings request body
{
  "name": "Service status",
  "slug": "service-status",
  "public": false,
  "selectedMonitorIds": [
    123
  ]
}

Response200 · StatusPage

DELETE/api/status-pages/{pageId}Delete a status page
Session token · Owner/AdminPermalink ↗

Permanently removes the page and its stored content. Deletion is idempotent: missing IDs, including IDs outside your workspace, return 204 without changing another workspace’s page.

Parameters
NameTypeDescription
pageIdRequiredinteger · pathStatus-page ID in the authenticated workspace.

Response204 · No content

POST/api/status-pages/{pageId}/incidentsPublish an incident
Session token · Owner/AdminPermalink ↗

Adds a public incident and notifies confirmed subscribers. Supply impact, affected components, and either a next-update time or expectation.

Parameters
NameTypeDescription
pageIdRequiredinteger · pathStatus-page ID in the authenticated workspace.
impactSummaryRequiredstring · bodyCustomer-facing impact summary.
affectedComponentsRequiredstring[] · bodyAt least one affected component.
statusstring · bodyINVESTIGATING, IDENTIFIED, MONITORING or RESOLVED; defaults to INVESTIGATING.
nextUpdateExpectationstring · bodyRequired unless nextUpdateAt is provided.
nextUpdateAttimestamp · bodyISO 8601 update time; alternative to nextUpdateExpectation.
Publish an incident request body
{
  "impactSummary": "API requests may be delayed.",
  "affectedComponents": [
    "API"
  ],
  "status": "INVESTIGATING",
  "nextUpdateExpectation": "Another update in 30 minutes."
}

Response200 · PublishedIncident

POST/api/status-pages/{pageId}/incidents/{incidentId}/updatesPublish an incident update
Session token · Owner/AdminPermalink ↗

Appends an update to a published incident and notifies confirmed subscribers. Use the string ID returned when the incident was published.

Parameters
NameTypeDescription
pageIdRequiredinteger · pathStatus-page ID in the authenticated workspace.
incidentIdRequiredstring · pathIncident ID returned by the relevant incident API. Monitor incidents use numeric IDs; published status incidents use string IDs.
bodyRequiredstring · bodyCustomer-facing update text, 1–2000 characters.
statusstring · bodyINVESTIGATING, IDENTIFIED, MONITORING or RESOLVED.
nextUpdateExpectationstring · bodyRevised expectation for the next update.
Publish an incident update request body
{
  "body": "The fix is deployed and recovery is being monitored.",
  "status": "MONITORING",
  "nextUpdateExpectation": "Another update in 30 minutes."
}

Response200 · PublishedIncidentUpdate

DELETE/api/status-pages/{pageId}/incidents/{incidentId}Unpublish an incident
Session token · Owner/AdminPermalink ↗

Removes this published incident from the page. Missing incident IDs return 404.

Parameters
NameTypeDescription
pageIdRequiredinteger · pathStatus-page ID in the authenticated workspace.
incidentIdRequiredstring · pathIncident ID returned by the relevant incident API. Monitor incidents use numeric IDs; published status incidents use string IDs.

Response204 · No content

POST/api/status-pages/{pageId}/maintenance-windowsPublish planned maintenance
Session token · Owner/AdminPermalink ↗

Adds a maintenance window and notifies confirmed subscribers. Status defaults to SCHEDULED.

Parameters
NameTypeDescription
pageIdRequiredinteger · pathStatus-page ID in the authenticated workspace.
Publish planned maintenance request body
{
  "title": "Scheduled maintenance",
  "startsAt": "2026-11-01T02:00:00Z",
  "endsAt": "2026-11-01T03:00:00Z",
  "affectedComponents": [
    "API"
  ],
  "status": "SCHEDULED"
}

Response200 · MaintenanceWindow

POST/api/status-pages/{pageId}/verify-domainVerify a custom domain
Session token · Owner/AdminPermalink ↗

Checks DNS proof and routing for the page’s configured customDomain. Read the page’s verification fields for the required records before requesting verification.

Parameters
NameTypeDescription
pageIdRequiredinteger · pathStatus-page ID in the authenticated workspace.

Response200 · Domain verification result

Notification channels

6 endpoints

Manage alert destinations, send a real test, and inspect delivery history. Destination secrets are masked in responses.

GET/api/notification-channelsList notification channels
Session token · All workspace rolesPermalink ↗

Returns channels with masked destination values and their test status.

Response200 · NotificationChannel[]

POST/api/notification-channelsCreate a notification channel
Session token · Owner/AdminPermalink ↗

Supports email, webhook, Slack, Teams, Discord, PagerDuty and SMS. If no notify flags are supplied, critical, escalation, warning and recovery events default on; maintenance and digest default off. SMS has additional entitlement and consent requirements.

Parameters
NameTypeDescription
namestring · bodyDisplay name for this destination.
typestring · bodyemail, webhook, slack, teams, discord, pagerduty or sms.
destinationstring · bodyProvider destination or credential. A usable destination is required for delivery and tests.
enabledboolean · bodyDefault true. Set false while reviewing configuration.
Create a notification channel request body
{
  "name": "On-call email",
  "type": "email",
  "destination": "oncall@example.com",
  "enabled": false
}

Response200 · NotificationChannel

PUT/api/notification-channels/{channelId}Update a notification channel
Session token · Owner/AdminPermalink ↗

Merges supplied fields into the stored channel. Omitted or echoed masked destination values preserve the existing credential.

Parameters
NameTypeDescription
channelIdRequiredinteger · pathNotification-channel ID in the authenticated workspace.
Update a notification channel request body
{
  "name": "Primary on-call email",
  "enabled": false
}

Response200 · NotificationChannel

DELETE/api/notification-channels/{channelId}Delete a notification channel
Session token · Owner/AdminPermalink ↗

Removes this destination from the workspace.

Parameters
NameTypeDescription
channelIdRequiredinteger · pathNotification-channel ID in the authenticated workspace.

Response204 · No content

POST/api/notification-channels/{channelId}/testSend a test notification
Session token · Owner/AdminPermalink ↗

Performs a real delivery attempt and records lastTestStatus and lastTestAt. Inspect the response status and message; a 200 response alone does not mean delivery succeeded.

Parameters
NameTypeDescription
channelIdRequiredinteger · pathNotification-channel ID in the authenticated workspace.

Response200 · {status, message, channelId, …}

GET/api/notification-deliveriesRead notification deliveries
Session token · All workspace rolesPermalink ↗

Returns delivery attempts from the last 30 days, optionally narrowed to a monitor.

Parameters
NameTypeDescription
monitorIdstring · queryFilter by monitor ID.
limitinteger · queryRequested number of deliveries. Default 50; bounded to 1–200.

Response200 · NotificationDelivery[]

Page-speed measurements

7 endpoints

Available only to eligible workspaces enabled for the paid beta. Create PAGE_SPEED monitors through the monitor API after checking capabilities. Missing measurements are null, never zero.

GET/api/page-speed/capabilitiesCheck page-speed access
Session token · All workspace rolesPermalink ↗

Check both enabled and allowed. Returns homeRegion, profile, intervals, browserMinutes and reason. Use only the returned home region and supported intervals.

Response200 · PageSpeedCapabilities

GET/api/monitors/{monitorId}/page-speed/summaryRead page-speed health
Session token · All workspace rolesPermalink ↗

Summary health and freshness follow scheduled runs. latestRun may be a newer manual attempt; latestScheduledRun identifies the scheduled measurement.

Parameters
NameTypeDescription
monitorIdRequiredinteger · pathMonitor ID in the authenticated workspace.

Response200 · PageSpeedSummary

GET/api/monitors/{monitorId}/page-speed/runsList page-speed runs
Session token · All workspace rolesPermalink ↗

Returns {runs, nextCursor}. Follow the opaque nextCursor until null. Resource timeline rows are loaded only by the individual run endpoint.

Parameters
NameTypeDescription
monitorIdRequiredinteger · pathMonitor ID in the authenticated workspace.
cursorstring · queryOpaque nextCursor from a prior response.
limitinteger · queryDefault 50; values are bounded to 1–100.

Response200 · PageSpeedRuns

List page-speed runs response example
{
  "runs": [],
  "nextCursor": null
}
GET/api/monitors/{monitorId}/page-speed/runs/{runId}Read a run and diagnostics
Session token · All workspace rolesPermalink ↗

Returns metrics, conditions, diagnostics, artifacts and available resource timing rows. Artifact availability depends on retention.

Parameters
NameTypeDescription
monitorIdRequiredinteger · pathMonitor ID in the authenticated workspace.
runIdRequiredstring · pathPage-speed run ID returned by the API.

Response200 · PageSpeedRun

GET/api/monitors/{monitorId}/page-speed/metricsRead comparable measurements
Session token · All workspace rolesPermalink ↗

Returns {samples, seriesKey, range, truncated}. Trends contain scheduled measurements from a comparable configuration series, including explicit missing samples.

Parameters
NameTypeDescription
monitorIdRequiredinteger · pathMonitor ID in the authenticated workspace.
rangestring · query1h, 6h, 24h, 7d, 30d, 90d or 365d. Default 7d.
seriesstring · queryAn opaque seriesKey returned by the API. Omit to use the current configuration series.

Response200 · PageSpeedMetricSeries

POST/api/monitors/{monitorId}/page-speed/runsQueue a page-speed run
Session token · Owner/AdminPermalink ↗

Returns a queued job, not completed measurements. Send a new Idempotency-Key for each intended run and reuse it when retrying that same run after an uncertain response.

Parameters
NameTypeDescription
monitorIdRequiredinteger · pathMonitor ID in the authenticated workspace.
Idempotency-KeyRequiredstring · headerUnique, nonblank key of at most 200 characters.

Response202 · PageSpeedQueuedRun

Queue a page-speed run response example
{
  "runId": "run-example",
  "jobId": "job-example",
  "status": "QUEUED"
}
GET/api/monitors/{monitorId}/page-speed/exportExport page-speed measurements
Session token · All workspace rolesPermalink ↗

Downloads page-speed.csv as text/csv. Generic uptime and latency reports are not page-speed measurements.

Parameters
NameTypeDescription
monitorIdRequiredinteger · pathMonitor ID in the authenticated workspace.
rangestring · query1h, 6h, 24h, 7d, 30d, 90d or 365d. Default 30d.
seriesstring · queryAn opaque seriesKey returned by the API. Omit to use the current configuration series.

Response200 · CSV download

Analytics, usage and audit

4 endpoints

Inspect reliability, export reports, and check the current workspace’s plan limits and usage.

GET/api/analyticsRead reliability analytics
Session token · All workspace rolesPermalink ↗

Returns uptime, latency, incident and operational rollups for the report window. Custom ranges are bounded by retained history.

Parameters
NameTypeDescription
rangestring · query24h, 7d, 30d, 90d or custom. Default 7d.
sincetimestamp · queryStart of a custom range; ISO 8601 UTC or YYYY-MM-DD. Subject to retained history.
untiltimestamp · queryEnd of the report window. Default now; future values are capped at now.

Response200 · AnalyticsResponse

GET/api/analytics/exportExport a reliability report
Session token · All workspace rolesPermalink ↗

Downloads a report as CSV, JSON or PDF with an attachment filename.

Parameters
NameTypeDescription
rangestring · query24h, 7d, 30d, 90d or custom. Default 7d.
sincetimestamp · queryStart of a custom range; ISO 8601 UTC or YYYY-MM-DD. Subject to retained history.
untiltimestamp · queryEnd of the report window. Default now; future values are capped at now.
formatstring · querycsv (default), json or pdf.

Response200 · CSV, JSON or PDF download

GET/api/billing/usageRead plan limits and usage
Session token · All workspace rolesPermalink ↗

Returns current usage and plan allowance information. This read is available to all workspace roles; subscription and invoice details require Owner/Admin.

Response200 · Usage snapshot

GET/api/auditRead audit events
Session token · Owner/AdminPermalink ↗

Returns workspace audit events. Requires an Owner or Admin session.

Parameters
NameTypeDescription
limitinteger · queryDefault 80; bounded to 10–200.

Response200 · AuditEventView[]

API-key management

3 endpoints

Create and revoke integration keys with an Owner or Admin session. Give each automation only the scopes it needs.

GET/api/integrations/keysList API keys
Session token · Owner/AdminPermalink ↗

Returns metadata, scopes, expiry and revocation state. Raw secrets are never returned by this read.

Response200 · ApiKeyView[]

POST/api/integrations/keysCreate a scoped API key
Session token · Owner/AdminPermalink ↗

Returns {apiKey, rawKey}; save rawKey when it is created. Omitted or empty scopes default to monitors:read. Active-key plan limits apply.

Parameters
NameTypeDescription
nameRequiredstring · bodyKey name, 1–120 characters.
scopesstring[] · bodymonitors:read, monitors:write and/or monitors:run. Default monitors:read.
expiresAttimestamp · bodyOptional expiry as an ISO 8601 UTC timestamp.
Create a scoped API key request body
{
  "name": "Read-only reporting",
  "scopes": [
    "monitors:read"
  ]
}

Response200 · ApiKeyCreateResponse

DELETE/api/integrations/keys/{keyId}Revoke an API key
Session token · Owner/AdminPermalink ↗

Revokes the key and returns its updated metadata, rather than an empty 204 response.

Parameters
NameTypeDescription
keyIdRequiredinteger · pathAPI-key ID, not the raw secret.

Response200 · ApiKeyView

Heartbeat pings

2 endpoints

The ping URL is the credential. Call it after a job succeeds and keep it secret. No Authorization or X-API-Key header is required.

GET/api/heartbeat/{token}Record a successful heartbeat
Heartbeat URL tokenPermalink ↗

Records a heartbeat and returns the probe result. The endpoint is limited to 600 pings per token per minute and 1200 per source IP per minute.

Parameters
NameTypeDescription
tokenRequiredstring · pathSecret heartbeat token. Keep the entire ping URL private.
durationMsinteger · queryOptional job duration; default 0 and bounded to 0–86400000 milliseconds.

Response200 · ProbeResultView

POST/api/heartbeat/{token}Post a successful heartbeat
Heartbeat URL tokenPermalink ↗

The same behavior as GET, with no request body. Only ping after the monitored job succeeds.

Parameters
NameTypeDescription
tokenRequiredstring · pathSecret heartbeat token. Keep the entire ping URL private.
durationMsinteger · queryOptional job duration in milliseconds.

Response200 · ProbeResultView

How do I create or update a monitor?

Send a JSON body to POST /api/integrations/monitors with X-API-Key and the monitors:write scope. Include Content-Type: application/json. Creating a monitor returns 201 Created, a Location header and a MonitorDetail object whose summary contains the new id. The example below creates a paused HTTP monitor; resume it when its target and alert settings are ready.

HTTP monitors require name, url, intervalSeconds, timeoutMs and enabled. intervalSeconds must satisfy both the 30–86400 second input bounds and your plan minimum: 300 seconds on Free, 60 on Starter and 30 on Team. A valid value below the plan minimum returns 402. timeoutMs must be 1000–120000. Optional fields include expectedStatus, bodyContains, tags and headers.

PUT /api/integrations/monitors/{monitorId} accepts a full MonitorUpsertRequest, not a partial patch. Send the required fields and preserve the configuration you need. Use POST /pause or /resume to change scheduling without reconstructing the monitor body. With monitors:run, POST /run returns a ProbeResultView. PAGE_SPEED uses its dedicated asynchronous session API.

Create an HTTP monitor body
{
  "name": "Marketing site",
  "url": "https://example.com",
  "monitorType": "HTTP",
  "intervalSeconds": 300,
  "timeoutMs": 10000,
  "expectedStatus": 200,
  "enabled": false
}

How do page-speed runs work?

PAGE_SPEED is a staged paid beta. With a session token, check GET /api/page-speed/capabilities first: enabled and allowed must both be true. Use its homeRegion, supported intervals and browserMinutes allowance rather than inferring access from a plan name.

Create and update through the monitor endpoints with nested pageSpeed configuration: schemaVersion 1, profile desktop-standard-v1 and artifacts BOUNDED_DIAGNOSTICS. Supported intervals are 3600, 21600 and 86400 seconds. Omit regions to use the home region, or supply only homeRegion. An enabled monitor schedules an initial run; a disabled monitor starts only when resumed.

POST /api/monitors/{monitorId}/page-speed/runs returns 202 with runId, jobId and status QUEUED. Send an Idempotency-Key for each intended manual run and reuse it when retrying that same run. Read the dedicated run endpoint for completed metrics and diagnostics; generic run endpoints do not execute PAGE_SPEED. Metrics can be null. Summary health uses scheduled measurements; latestRun can be manual and latestScheduledRun identifies the scheduled measurement.

Create a page-speed monitor body
{
  "name": "Store homepage",
  "url": "https://example.com/",
  "monitorType": "PAGE_SPEED",
  "intervalSeconds": 21600,
  "timeoutMs": 60000,
  "enabled": false,
  "pageSpeed": {
    "schemaVersion": 1,
    "profile": "desktop-standard-v1",
    "artifacts": "BOUNDED_DIAGNOSTICS",
    "budget": {
      "metric": "LCP_MS",
      "breachAbove": 4000,
      "openAfter": 2,
      "recoverAtOrBelow": 3600,
      "recoverAfter": 2
    }
  }
}

How should I handle errors and rate limits?

Errors include a JSON message. 400 means invalid input; 401 means missing, expired, revoked or invalid credentials; 402 means a plan limit; 403 means insufficient role or API-key scope; 404 means the resource is missing in your workspace. 409 signals a state conflict: read the message and current state before retrying. 429 means throttled. A temporary authentication-store failure can return 503 with Retry-After.

API-key requests are throttled per resolved client IP at 300 requests per minute. Authentication and public endpoints also have endpoint-specific throttles. Honor Retry-After when present and use bounded exponential backoff for retryable failures. Do not blindly retry a create or run request after an uncertain response; only the page-speed manual-run endpoint documented here supports Idempotency-Key.

Monitor lists return a JSON array; /paged returns items, page, size and totalItems. Page numbers start at 0 and size is capped at 200. Monitor results and history accept range=1h, 6h, 24h, 7d or 30d; retained history still depends on your plan. Timestamps are ISO 8601 in UTC. A monitor id in another workspace returns 404.

Example error response
{
  "message": "API key does not include monitors:write scope"
}

How do I send a heartbeat?

Heartbeat ping routes use their token in the URL as the credential. Treat the URL as a secret. Call the ping only after the job succeeds; do not put it in an unconditional cleanup trap. Public heartbeat and status-page routes do not use session or API-key authentication.

Ping after a successful job
#!/bin/sh
set -e
/usr/local/bin/nightly-backup.sh
curl -fsS -m 10 --retry 3 "$PAGELANTERN_HEARTBEAT_URL" > /dev/null

Building an integration?

Start with a scoped key and a monitor you can safely test.

Contact support