CONNECT TO PAGELANTERN
How do I authenticate an API request?
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.
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.
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.
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 endpointsUse 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
Returns an array of monitor summaries. Use the paged endpoint for larger workspaces.
Response200 · MonitorSummary[]
[]GET/api/integrations/monitors/pagedPage through monitors
Returns items, page, size and totalItems. Continue while (page + 1) × size is less than totalItems.
| Name | Type | Description |
|---|---|---|
page | integer · query | Zero-based page number. Default 0; must be 0 or greater. |
size | integer · query | Items per page. Default 50; accepted range 1–200. |
Response200 · PagedResponse<MonitorSummary>
{
"items": [],
"page": 0,
"size": 50,
"totalItems": 0
}POST/api/integrations/monitorsCreate a monitor
Returns the full monitor detail and a Location header. Enable the monitor when you are ready for scheduled checks.
| Name | Type | Description |
|---|---|---|
nameRequired | string · body | Monitor name, up to 255 characters. |
urlRequired | string · body | HTTP(S) target for an HTTP monitor. Other monitor types have type-specific target fields. |
intervalSecondsRequired | integer · body | 30–86400 seconds, also subject to your plan minimum. An interval below the plan minimum returns 402. |
timeoutMsRequired | integer · body | 1000–120000 milliseconds. |
enabledRequired | boolean · body | Whether scheduled checks should run. Examples create a disabled monitor for review. |
monitorType | string · body | Defaults to HTTP. Other types include API, SSL, DOMAIN, HEARTBEAT, DNS, TCP, PING, UDP, DOM, BROWSER and PAGE_SPEED. |
expectedStatus | integer · body | Expected HTTP status, from 100 to 599. |
headers | array · body | Request headers as [{"name":"Accept","value":"application/json"}]. Secret values may be masked when read back. |
tags | string[] · body | Up to 24 tags, each up to 32 characters. |
{
"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
Configuration and current state are returned in a detail object whose summary contains the monitor ID and scheduling state. Sensitive configuration is masked.
| Name | Type | Description |
|---|---|---|
monitorIdRequired | integer · path | Monitor ID in the authenticated workspace. |
Response200 · MonitorDetail
PUT/api/integrations/monitors/{monitorId}Update a monitor
Submit the complete monitor configuration, including all required fields. This is not a partial PATCH. Preserve configuration you intend to keep.
| Name | Type | Description |
|---|---|---|
monitorIdRequired | integer · path | Monitor ID in the authenticated workspace. |
nameRequired | string · body | Monitor name, up to 255 characters. |
urlRequired | string · body | HTTP(S) target for an HTTP monitor. Other monitor types have type-specific target fields. |
intervalSecondsRequired | integer · body | 30–86400 seconds, also subject to your plan minimum. An interval below the plan minimum returns 402. |
timeoutMsRequired | integer · body | 1000–120000 milliseconds. |
enabledRequired | boolean · body | Whether scheduled checks should run. Examples create a disabled monitor for review. |
monitorType | string · body | Defaults to HTTP. Other types include API, SSL, DOMAIN, HEARTBEAT, DNS, TCP, PING, UDP, DOM, BROWSER and PAGE_SPEED. |
expectedStatus | integer · body | Expected HTTP status, from 100 to 599. |
headers | array · body | Request headers as [{"name":"Accept","value":"application/json"}]. Secret values may be masked when read back. |
tags | string[] · body | Up to 24 tags, each up to 32 characters. |
{
"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
Permanently removes this monitor. Successful deletion has no response body.
| Name | Type | Description |
|---|---|---|
monitorIdRequired | integer · path | Monitor ID in the authenticated workspace. |
Response204 · No content
POST/api/integrations/monitors/{monitorId}/runRun a check now
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.
| Name | Type | Description |
|---|---|---|
monitorIdRequired | integer · path | Monitor ID in the authenticated workspace. |
Response200 · ProbeResultView or 202 · RegionalRunReceipt
GET/api/integrations/monitors/{monitorId}/resultsRead check results
Returns a history envelope, not a bare array. Results contain checkedAt, success, statusCode, responseTimeMs and probeLocation. Retention applies; truncated signals capped history.
| Name | Type | Description |
|---|---|---|
monitorIdRequired | integer · path | Monitor ID in the authenticated workspace. |
range | string · query | 1h, 6h, 24h, 7d or 30d. Default 24h. Unsupported values return 400. |
Response200 · MonitorHistoryResponse
{
"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
Sets enabled to false and summary.paused to true. No request body is required.
| Name | Type | Description |
|---|---|---|
monitorIdRequired | integer · path | Monitor ID in the authenticated workspace. |
Response200 · MonitorDetail
POST/api/integrations/monitors/{monitorId}/resumeResume scheduled checks
Sets enabled to true and summary.paused to false. No request body is required.
| Name | Type | Description |
|---|---|---|
monitorIdRequired | integer · path | Monitor ID in the authenticated workspace. |
Response200 · MonitorDetail
Monitors and results
13 endpointsSession endpoints for managing monitoring configuration. Send Authorization: Bearer <session token>. Cookie-authenticated writes also require X-Requested-With.
GET/api/monitorsList workspace monitors
Returns an array of MonitorSummary objects.
Response200 · MonitorSummary[]
[]GET/api/monitors/pagedPage through workspace monitors
Uses zero-based pages and returns the total count alongside the current items.
| Name | Type | Description |
|---|---|---|
page | integer · query | Zero-based page number. Default 0; must be 0 or greater. |
size | integer · query | Items per page. Default 50; accepted range 1–200. |
Response200 · PagedResponse<MonitorSummary>
{
"items": [],
"page": 0,
"size": 50,
"totalItems": 0
}POST/api/monitorsCreate a workspace monitor
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.
| Name | Type | Description |
|---|---|---|
nameRequired | string · body | Monitor name, up to 255 characters. |
urlRequired | string · body | HTTP(S) target for an HTTP monitor. Other monitor types have type-specific target fields. |
intervalSecondsRequired | integer · body | 30–86400 seconds, also subject to your plan minimum. An interval below the plan minimum returns 402. |
timeoutMsRequired | integer · body | 1000–120000 milliseconds. |
enabledRequired | boolean · body | Whether scheduled checks should run. Examples create a disabled monitor for review. |
monitorType | string · body | Defaults to HTTP. Other types include API, SSL, DOMAIN, HEARTBEAT, DNS, TCP, PING, UDP, DOM, BROWSER and PAGE_SPEED. |
expectedStatus | integer · body | Expected HTTP status, from 100 to 599. |
headers | array · body | Request headers as [{"name":"Accept","value":"application/json"}]. Secret values may be masked when read back. |
tags | string[] · body | Up to 24 tags, each up to 32 characters. |
{
"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
The detail contains summary, assertion settings, headers, recentResults and other monitor-specific configuration.
| Name | Type | Description |
|---|---|---|
monitorIdRequired | integer · path | Monitor ID in the authenticated workspace. |
Response200 · MonitorDetail
PUT/api/monitors/{monitorId}Update monitor configuration
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.
| Name | Type | Description |
|---|---|---|
monitorIdRequired | integer · path | Monitor ID in the authenticated workspace. |
nameRequired | string · body | Monitor name, up to 255 characters. |
urlRequired | string · body | HTTP(S) target for an HTTP monitor. Other monitor types have type-specific target fields. |
intervalSecondsRequired | integer · body | 30–86400 seconds, also subject to your plan minimum. An interval below the plan minimum returns 402. |
timeoutMsRequired | integer · body | 1000–120000 milliseconds. |
enabledRequired | boolean · body | Whether scheduled checks should run. Examples create a disabled monitor for review. |
monitorType | string · body | Defaults to HTTP. Other types include API, SSL, DOMAIN, HEARTBEAT, DNS, TCP, PING, UDP, DOM, BROWSER and PAGE_SPEED. |
expectedStatus | integer · body | Expected HTTP status, from 100 to 599. |
headers | array · body | Request headers as [{"name":"Accept","value":"application/json"}]. Secret values may be masked when read back. |
tags | string[] · body | Up to 24 tags, each up to 32 characters. |
{
"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
Permanently removes the monitor and returns an empty response.
| Name | Type | Description |
|---|---|---|
monitorIdRequired | integer · path | Monitor ID in the authenticated workspace. |
Response204 · No content
POST/api/monitors/{monitorId}/pausePause a monitor
Stops scheduled checks and returns the updated detail with summary.paused true.
| Name | Type | Description |
|---|---|---|
monitorIdRequired | integer · path | Monitor ID in the authenticated workspace. |
Response200 · MonitorDetail
POST/api/monitors/{monitorId}/resumeResume a monitor
Enables scheduled checks and returns the updated detail with summary.paused false.
| Name | Type | Description |
|---|---|---|
monitorIdRequired | integer · path | Monitor ID in the authenticated workspace. |
Response200 · MonitorDetail
POST/api/monitors/{monitorId}/runRun a monitor immediately
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.
| Name | Type | Description |
|---|---|---|
monitorIdRequired | integer · path | Monitor ID in the authenticated workspace. |
Response200 · ProbeResultView or 202 · RegionalRunReceipt
GET/api/monitors/{monitorId}/resultsRead monitor history
Returns {range, since, until, results, truncated}. The history, latency and uptime suffixes are aliases for this same history shape.
| Name | Type | Description |
|---|---|---|
monitorIdRequired | integer · path | Monitor ID in the authenticated workspace. |
range | string · query | 1h, 6h, 24h, 7d or 30d. Default 24h. Unsupported values return 400. |
Response200 · MonitorHistoryResponse
{
"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
Returns the available request and response capture for this result as HAR JSON. Sensitive captures require Owner/Admin; unavailable captures return 404.
| Name | Type | Description |
|---|---|---|
monitorIdRequired | integer · path | Monitor ID in the authenticated workspace. |
resultIdRequired | integer · path | Probe result ID returned in monitor history. |
Response200 · HAR JSON
GET/api/monitors/exportExport monitor definitions
Returns reusable MonitorUpsertRequest objects. Secret configuration can be masked according to the caller’s role.
Response200 · MonitorUpsertRequest[]
POST/api/monitors/importImport monitor definitions
Accepts up to 250 definitions. dryRun previews created, updated and skipped counts; overwriteByName allows matching names to be updated.
| Name | Type | Description |
|---|---|---|
monitors | array · body | Up to 250 valid monitor definitions. |
overwriteByName | boolean · body | Update an existing monitor with the same name. |
dryRun | boolean · body | Preview the import without saving monitors. |
{
"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 endpointsTags 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
Returns the workspace tag ledger.
Response200 · TagCount[]
[
{
"tag": "production",
"monitorCount": 3
}
]POST/api/monitors/tagsApply tags in bulk
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.
| Name | Type | Description |
|---|---|---|
monitorIdsRequired | integer[] · body | Select 1–500 monitor IDs in this workspace. |
tags | string[] · body | Up to 24 tags, each 1–32 characters. ADD requires at least one tag; REPLACE allows an empty list to clear tags. |
mode | string · body | ADD (default) or REPLACE. |
{
"monitorIds": [
123
],
"tags": [
"production"
],
"mode": "ADD"
}Response200 · MonitorTagBulkResponse
{
"updatedCount": 1,
"tags": [
{
"tag": "production",
"monitorCount": 1
}
]
}PUT/api/monitors/tagsRename or remove a tag
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.
| Name | Type | Description |
|---|---|---|
fromRequired | string · body | Existing tag, up to 32 characters. |
to | string · body | Replacement tag, up to 32 characters. Blank or omitted deletes the tag. |
{
"from": "prod",
"to": "production"
}Response200 · MonitorTagBulkResponse
Incident response
8 endpointsRead monitoring incidents, assign ownership, and record the response. Monitor incidents and public status-page incidents are distinct resources.
GET/api/incidentsList recent incidents
Returns recent incidents in the current workspace.
| Name | Type | Description |
|---|---|---|
limit | integer · query | Requested incident count. Default 120; bounded to 1–250. |
Response200 · IncidentView[]
GET/api/incidents/{incidentId}Read an incident timeline
Returns {incident, timeline}; timeline is an array of updates.
| Name | Type | Description |
|---|---|---|
incidentIdRequired | string · path | Incident 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
Updates only supplied incident management fields. Severity uses SEV1 through SEV5.
| Name | Type | Description |
|---|---|---|
incidentIdRequired | string · path | Incident ID returned by the relevant incident API. Monitor incidents use numeric IDs; published status incidents use string IDs. |
severity | string · body | SEV1, SEV2, SEV3, SEV4 or SEV5. |
ownerLabel | string · body | Owner label, up to 160 characters. |
incidentRole | string · body | Responder role, up to 64 characters. |
postmortem | string · body | Postmortem text, up to 12000 characters. |
{
"severity": "SEV2",
"ownerLabel": "On-call team"
}Response200 · IncidentView
POST/api/incidents/{incidentId}/updatesAppend a timeline update
Adds a response note; publicVisible marks visibility intent for the update.
| Name | Type | Description |
|---|---|---|
incidentIdRequired | string · path | Incident ID returned by the relevant incident API. Monitor incidents use numeric IDs; published status incidents use string IDs. |
messageRequired | string · body | Update text, 1–2000 characters. |
updateType | string · body | Update label, up to 32 characters. Defaults to UPDATE. |
publicVisible | boolean · body | Whether the update is marked for public visibility. |
{
"message": "Investigating elevated errors.",
"updateType": "UPDATE",
"publicVisible": false
}Response200 · IncidentUpdateView
POST/api/incidents/{incidentId}/acknowledgeAcknowledge an incident
Records acknowledgement by the current user. No body is required.
| Name | Type | Description |
|---|---|---|
incidentIdRequired | string · path | Incident 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
Marks the incident resolved manually. No body is required.
| Name | Type | Description |
|---|---|---|
incidentIdRequired | string · path | Incident 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
Reopens a resolved incident. No body is required.
| Name | Type | Description |
|---|---|---|
incidentIdRequired | string · path | Incident 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
Marks this incident’s notifications suppressed. No body is required.
| Name | Type | Description |
|---|---|---|
incidentIdRequired | string · path | Incident ID returned by the relevant incident API. Monitor incidents use numeric IDs; published status incidents use string IDs. |
Response200 · IncidentView
Status pages
10 endpointsManage page settings and public communications. These management routes require a session even when the resulting page is public.
GET/api/status-pagesList status pages
Returns settings and published content for the workspace’s status pages.
Response200 · StatusPage[]
GET/api/status-pages/{pageId}Read a status page
Returns page settings, selectedMonitorIds, components, publishedIncidents, maintenanceWindows and publicPath.
| Name | Type | Description |
|---|---|---|
pageIdRequired | integer · path | Status-page ID in the authenticated workspace. |
Response200 · StatusPage
POST/api/status-pagesCreate a status page
Defaults to private. Empty selectedMonitorIds means all workspace monitors, including future monitors. Page limits are enforced with 402.
| Name | Type | Description |
|---|---|---|
name | string · body | Page title. Defaults to Public Status. |
slug | string · body | Preferred public URL slug; the server makes it unique. |
public | boolean · body | Whether visitors can access the public page. Default false. |
selectedMonitorIds | integer[] · body | Selected monitors. Empty means all, including monitors added later. |
{
"name": "Service status",
"slug": "service-status",
"public": false,
"selectedMonitorIds": [
123
]
}Response200 · StatusPage
PUT/api/status-pages/{pageId}Update page settings
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.
| Name | Type | Description |
|---|---|---|
pageIdRequired | integer · path | Status-page ID in the authenticated workspace. |
{
"name": "Service status",
"slug": "service-status",
"public": false,
"selectedMonitorIds": [
123
]
}Response200 · StatusPage
DELETE/api/status-pages/{pageId}Delete a status page
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.
| Name | Type | Description |
|---|---|---|
pageIdRequired | integer · path | Status-page ID in the authenticated workspace. |
Response204 · No content
POST/api/status-pages/{pageId}/incidentsPublish an incident
Adds a public incident and notifies confirmed subscribers. Supply impact, affected components, and either a next-update time or expectation.
| Name | Type | Description |
|---|---|---|
pageIdRequired | integer · path | Status-page ID in the authenticated workspace. |
impactSummaryRequired | string · body | Customer-facing impact summary. |
affectedComponentsRequired | string[] · body | At least one affected component. |
status | string · body | INVESTIGATING, IDENTIFIED, MONITORING or RESOLVED; defaults to INVESTIGATING. |
nextUpdateExpectation | string · body | Required unless nextUpdateAt is provided. |
nextUpdateAt | timestamp · body | ISO 8601 update time; alternative to nextUpdateExpectation. |
{
"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
Appends an update to a published incident and notifies confirmed subscribers. Use the string ID returned when the incident was published.
| Name | Type | Description |
|---|---|---|
pageIdRequired | integer · path | Status-page ID in the authenticated workspace. |
incidentIdRequired | string · path | Incident ID returned by the relevant incident API. Monitor incidents use numeric IDs; published status incidents use string IDs. |
bodyRequired | string · body | Customer-facing update text, 1–2000 characters. |
status | string · body | INVESTIGATING, IDENTIFIED, MONITORING or RESOLVED. |
nextUpdateExpectation | string · body | Revised expectation for the next update. |
{
"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
Removes this published incident from the page. Missing incident IDs return 404.
| Name | Type | Description |
|---|---|---|
pageIdRequired | integer · path | Status-page ID in the authenticated workspace. |
incidentIdRequired | string · path | Incident 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
Adds a maintenance window and notifies confirmed subscribers. Status defaults to SCHEDULED.
| Name | Type | Description |
|---|---|---|
pageIdRequired | integer · path | Status-page ID in the authenticated workspace. |
{
"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
Checks DNS proof and routing for the page’s configured customDomain. Read the page’s verification fields for the required records before requesting verification.
| Name | Type | Description |
|---|---|---|
pageIdRequired | integer · path | Status-page ID in the authenticated workspace. |
Response200 · Domain verification result
Notification channels
6 endpointsManage alert destinations, send a real test, and inspect delivery history. Destination secrets are masked in responses.
GET/api/notification-channelsList notification channels
Returns channels with masked destination values and their test status.
Response200 · NotificationChannel[]
POST/api/notification-channelsCreate a notification channel
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.
| Name | Type | Description |
|---|---|---|
name | string · body | Display name for this destination. |
type | string · body | email, webhook, slack, teams, discord, pagerduty or sms. |
destination | string · body | Provider destination or credential. A usable destination is required for delivery and tests. |
enabled | boolean · body | Default true. Set false while reviewing configuration. |
{
"name": "On-call email",
"type": "email",
"destination": "oncall@example.com",
"enabled": false
}Response200 · NotificationChannel
PUT/api/notification-channels/{channelId}Update a notification channel
Merges supplied fields into the stored channel. Omitted or echoed masked destination values preserve the existing credential.
| Name | Type | Description |
|---|---|---|
channelIdRequired | integer · path | Notification-channel ID in the authenticated workspace. |
{
"name": "Primary on-call email",
"enabled": false
}Response200 · NotificationChannel
DELETE/api/notification-channels/{channelId}Delete a notification channel
Removes this destination from the workspace.
| Name | Type | Description |
|---|---|---|
channelIdRequired | integer · path | Notification-channel ID in the authenticated workspace. |
Response204 · No content
POST/api/notification-channels/{channelId}/testSend a test notification
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.
| Name | Type | Description |
|---|---|---|
channelIdRequired | integer · path | Notification-channel ID in the authenticated workspace. |
Response200 · {status, message, channelId, …}
GET/api/notification-deliveriesRead notification deliveries
Returns delivery attempts from the last 30 days, optionally narrowed to a monitor.
| Name | Type | Description |
|---|---|---|
monitorId | string · query | Filter by monitor ID. |
limit | integer · query | Requested number of deliveries. Default 50; bounded to 1–200. |
Response200 · NotificationDelivery[]
Page-speed measurements
7 endpointsAvailable 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
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
Summary health and freshness follow scheduled runs. latestRun may be a newer manual attempt; latestScheduledRun identifies the scheduled measurement.
| Name | Type | Description |
|---|---|---|
monitorIdRequired | integer · path | Monitor ID in the authenticated workspace. |
Response200 · PageSpeedSummary
GET/api/monitors/{monitorId}/page-speed/runsList page-speed runs
Returns {runs, nextCursor}. Follow the opaque nextCursor until null. Resource timeline rows are loaded only by the individual run endpoint.
| Name | Type | Description |
|---|---|---|
monitorIdRequired | integer · path | Monitor ID in the authenticated workspace. |
cursor | string · query | Opaque nextCursor from a prior response. |
limit | integer · query | Default 50; values are bounded to 1–100. |
Response200 · PageSpeedRuns
{
"runs": [],
"nextCursor": null
}GET/api/monitors/{monitorId}/page-speed/runs/{runId}Read a run and diagnostics
Returns metrics, conditions, diagnostics, artifacts and available resource timing rows. Artifact availability depends on retention.
| Name | Type | Description |
|---|---|---|
monitorIdRequired | integer · path | Monitor ID in the authenticated workspace. |
runIdRequired | string · path | Page-speed run ID returned by the API. |
Response200 · PageSpeedRun
GET/api/monitors/{monitorId}/page-speed/metricsRead comparable measurements
Returns {samples, seriesKey, range, truncated}. Trends contain scheduled measurements from a comparable configuration series, including explicit missing samples.
| Name | Type | Description |
|---|---|---|
monitorIdRequired | integer · path | Monitor ID in the authenticated workspace. |
range | string · query | 1h, 6h, 24h, 7d, 30d, 90d or 365d. Default 7d. |
series | string · query | An 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
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.
| Name | Type | Description |
|---|---|---|
monitorIdRequired | integer · path | Monitor ID in the authenticated workspace. |
Idempotency-KeyRequired | string · header | Unique, nonblank key of at most 200 characters. |
Response202 · PageSpeedQueuedRun
{
"runId": "run-example",
"jobId": "job-example",
"status": "QUEUED"
}GET/api/monitors/{monitorId}/page-speed/exportExport page-speed measurements
Downloads page-speed.csv as text/csv. Generic uptime and latency reports are not page-speed measurements.
| Name | Type | Description |
|---|---|---|
monitorIdRequired | integer · path | Monitor ID in the authenticated workspace. |
range | string · query | 1h, 6h, 24h, 7d, 30d, 90d or 365d. Default 30d. |
series | string · query | An opaque seriesKey returned by the API. Omit to use the current configuration series. |
Response200 · CSV download
Analytics, usage and audit
4 endpointsInspect reliability, export reports, and check the current workspace’s plan limits and usage.
GET/api/analyticsRead reliability analytics
Returns uptime, latency, incident and operational rollups for the report window. Custom ranges are bounded by retained history.
| Name | Type | Description |
|---|---|---|
range | string · query | 24h, 7d, 30d, 90d or custom. Default 7d. |
since | timestamp · query | Start of a custom range; ISO 8601 UTC or YYYY-MM-DD. Subject to retained history. |
until | timestamp · query | End of the report window. Default now; future values are capped at now. |
Response200 · AnalyticsResponse
GET/api/analytics/exportExport a reliability report
Downloads a report as CSV, JSON or PDF with an attachment filename.
| Name | Type | Description |
|---|---|---|
range | string · query | 24h, 7d, 30d, 90d or custom. Default 7d. |
since | timestamp · query | Start of a custom range; ISO 8601 UTC or YYYY-MM-DD. Subject to retained history. |
until | timestamp · query | End of the report window. Default now; future values are capped at now. |
format | string · query | csv (default), json or pdf. |
Response200 · CSV, JSON or PDF download
GET/api/billing/usageRead plan limits and usage
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
Returns workspace audit events. Requires an Owner or Admin session.
| Name | Type | Description |
|---|---|---|
limit | integer · query | Default 80; bounded to 10–200. |
Response200 · AuditEventView[]
API-key management
3 endpointsCreate and revoke integration keys with an Owner or Admin session. Give each automation only the scopes it needs.
GET/api/integrations/keysList API keys
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
Returns {apiKey, rawKey}; save rawKey when it is created. Omitted or empty scopes default to monitors:read. Active-key plan limits apply.
| Name | Type | Description |
|---|---|---|
nameRequired | string · body | Key name, 1–120 characters. |
scopes | string[] · body | monitors:read, monitors:write and/or monitors:run. Default monitors:read. |
expiresAt | timestamp · body | Optional expiry as an ISO 8601 UTC timestamp. |
{
"name": "Read-only reporting",
"scopes": [
"monitors:read"
]
}Response200 · ApiKeyCreateResponse
DELETE/api/integrations/keys/{keyId}Revoke an API key
Revokes the key and returns its updated metadata, rather than an empty 204 response.
| Name | Type | Description |
|---|---|---|
keyIdRequired | integer · path | API-key ID, not the raw secret. |
Response200 · ApiKeyView
Heartbeat pings
2 endpointsThe 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
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.
| Name | Type | Description |
|---|---|---|
tokenRequired | string · path | Secret heartbeat token. Keep the entire ping URL private. |
durationMs | integer · query | Optional job duration; default 0 and bounded to 0–86400000 milliseconds. |
Response200 · ProbeResultView
POST/api/heartbeat/{token}Post a successful heartbeat
The same behavior as GET, with no request body. Only ping after the monitored job succeeds.
| Name | Type | Description |
|---|---|---|
tokenRequired | string · path | Secret heartbeat token. Keep the entire ping URL private. |
durationMs | integer · query | Optional 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.
{
"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.
{
"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.
{
"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.
#!/bin/sh
set -e
/usr/local/bin/nightly-backup.sh
curl -fsS -m 10 --retry 3 "$PAGELANTERN_HEARTBEAT_URL" > /dev/nullBuilding an integration?
Start with a scoped key and a monitor you can safely test.
