Pulse API
Manage Edge Pulse checks, incidents, alert channels and status pages under /api/pulse.
All endpoints require authentication. What each part of Edge Pulse does is described in its own docs; this page is the reference for /api/pulse. Every time in a response is in milliseconds since 1 January 1970 UTC.
Create a check
curl -X POST https://edge.network/api/pulse/checks \
-H "Authorization: Bearer ek_live_..." \
-H "Content-Type: application/json" \
-d '{
"name": "Production API",
"type": "http",
"config": {
"url": "https://api.example.com/health",
"expectStatus": [200],
"bodyContains": "\"status\":\"ok\""
},
"intervalSec": 60,
"locations": { "mode": "auto", "count": 3 },
"channelIds": ["chn_5d2e8a41c07b93f6"]
}'Response (201):
{
"check": {
"id": "chk_3f9a1c2b7d4e5a60",
"name": "Production API",
"type": "http",
"config": {
"url": "https://api.example.com/health",
"method": "GET",
"headers": {},
"body": "",
"followRedirects": true,
"expectStatus": [200],
"bodyContains": "\"status\":\"ok\"",
"expectHeaders": {},
"verifyTls": true
},
"intervalSec": 60,
"timeoutMs": 10000,
"locations": { "mode": "auto", "count": 3 },
"alertAfter": 2,
"recoverAfter": 2,
"degradedMs": null,
"channelIds": ["chn_5d2e8a41c07b93f6"],
"enabled": true,
"target": "https://api.example.com/health",
"status": "pending",
"pausedReason": null,
"assignedLocations": [],
"lastRunAt": null,
"openIncidentId": null,
"createdAt": 1795478417000,
"updatedAt": 1795478417000
}
}| Field | Required | Description |
|---|---|---|
name | Yes | Up to 100 characters |
type | Yes | http, api, ssl, dns, tcp, udp, ping or browser. It cannot be changed later. |
config | Yes | What to test. Its fields depend on the type: see below. |
intervalSec | No | One of 30, 60, 120, 300, 600, 900, 1800, 3600, 21600, 86400. Default 60 (browser: 300, ssl: 3600, which are also their shortest). |
timeoutMs | No | 1000 to 30000, default 10000 (browser: 5000 to 60000, default 30000). Must be shorter than the interval. |
locations | No | { "mode": "auto", "count": 3 } (the default; count 1 to 20), or { "mode": "manual", "nodes": ["..."] } with up to 20 ids from GET /api/pulse/locations |
alertAfter | No | Failures in a row, from one location, that open an incident. 1 to 10, default 2. See Incidents. |
recoverAfter | No | Passes in a row before a location counts as recovered. 1 to 10, default 2. |
degradedMs | No | Slow threshold: a passing run that takes longer is marked slow. 1 to 60000, or null for none. |
channelIds | No | The alert channels to tell, up to 20 |
enabled | No | false creates the check paused. Default true. |
In the response, status is pending, up, degraded (slow), down or paused. When it is paused, pausedReason is user, allowance, needs_card, spend_cap, no_locations or suspended: see When a check is not running.
The config of each type
A field in bold is required. What each field does is on Check types.
| Type | Fields |
|---|---|
http | url, method (default GET), headers (object), body, followRedirects (default true), expectStatus (list of codes; empty means any 2xx or 3xx), bodyContains, expectHeaders (object), verifyTls (default true) |
api | steps (1 to 10), variables (object). Each step: url, name, method, headers, body, expectStatus, bodyContains, assertJson (list of { path, op, value }; op is equals, not_equals, contains or exists), extract (list of { name, source, path }; source is json, header or regex) |
ssl | host, port (default 443), serverName |
dns | hostname, recordType (A, AAAA, CNAME, MX, TXT or NS; default A), resolver (a public IP address), expectValues (list) |
tcp | host, port, send, expect |
udp | host, port, send (text, or hex: and pairs of hexadecimal digits), expect |
ping | host, count (1 to 5, default 3) |
browser | url, viewport ({ width, height }, each 320 to 2560; default 1366 by 768). Needs a card on file. |
Checks
| Endpoint | Description |
|---|---|
GET /api/pulse/checks | List checks. Each has a summary of the last 24 hours: runs24h, uptime24h, avgMs24h. |
POST /api/pulse/checks | Create a check |
GET /api/pulse/checks/:id | One check, with the latest state of each of its locations |
PATCH /api/pulse/checks/:id | Change any of the fields above except type. Fields left out keep their values. Send config whole. |
DELETE /api/pulse/checks/:id | Delete a check and its results |
POST /api/pulse/checks/:id/pause | Pause a check. An open incident is closed as paused. |
POST /api/pulse/checks/:id/resume | Resume a paused check |
POST /api/pulse/checks/:id/run | Run a check now from each of its locations. Returns { "dispatched": 3 }; the results appear under results with kind: "test". |
POST /api/pulse/checks/test | Run settings once, without saving them |
GET /api/pulse/checks/:id/results | Single results from the last 48 hours, newest first |
GET /api/pulse/checks/:id/metrics?hours=24 | Uptime and response times over a period, for charts |
Testing settings
curl -X POST https://edge.network/api/pulse/checks/test \
-H "Authorization: Bearer ek_live_..." \
-H "Content-Type: application/json" \
-d '{ "type": "tcp", "config": { "host": "db.example.com", "port": 5432 } }'Send type and config, and optionally timeoutMs and a nodeId to choose the location. The request waits for the answer and returns { result, location }. Tests are not billed. An account can start 60 an hour, counting /run and channel tests.
Results
| Query | Description |
|---|---|
limit | 1 to 500, default 100 |
before | Only results older than this time. Pass the at of the last result to get the next page. |
nodeId | Only results from one location |
failed | 1 for failures only |
Each result has id, nodeId, location, kind (scheduled, confirm for a re-check, or test), at, durationMs, ok, slow, errorCode, error, timings and detail.
Metrics
hours is 1 to 2160 (90 days), default 24. The response has totals (runs, ok, uptimePct, avgMs, p50, p95, p99), a series of the same figures per location in steps of bucketSec seconds, and daily uptime by day. Only scheduled runs are counted, and response times are those of passing runs. How far back the figures go depends on the account: see Limits and billing.
Incidents
| Endpoint | Description |
|---|---|
GET /api/pulse/incidents | List incidents, newest first. Filter with status (open or resolved) and checkId; limit is 1 to 200, default 50. |
GET /api/pulse/incidents/:id | One incident and its timeline of events |
PATCH /api/pulse/incidents/:id | Set the public note shown on status pages, up to 2,000 characters. Send an empty string to remove it. |
An incident has id, checkId, checkName, status, scope (regional or global), cause, locations, note, resolution, startedAt, resolvedAt and durationSec. Once resolved, resolution is recovered, paused, edited, deleted or monitoring_stopped. Incidents cannot be opened or closed through the API: see Incidents.
Alert channels
curl -X POST https://edge.network/api/pulse/channels \
-H "Authorization: Bearer ek_live_..." \
-H "Content-Type: application/json" \
-d '{
"type": "webhook",
"name": "Ops webhook",
"config": { "url": "https://ops.example.com/hooks/pulse", "secret": "a-long-random-string" }
}'Response (201). The secret is never returned:
{
"channel": {
"id": "chn_5d2e8a41c07b93f6",
"type": "webhook",
"name": "Ops webhook",
"config": { "url": "https://ops.example.com/hooks/pulse", "hasSecret": true },
"enabled": true,
"createdAt": 1795478417000
}
}| Type | config to send | config returned |
|---|---|---|
email | emails: 1 to 10 addresses | emails |
webhook | url, and an optional secret for signing | url, hasSecret |
slack | url: a Slack incoming webhook, starting https:// | urlHint |
pagerduty | routingKey: an Events API v2 integration key | routingKeyHint |
| Endpoint | Description |
|---|---|
GET /api/pulse/channels | List channels |
POST /api/pulse/channels | Create a channel from type, name, config and an optional enabled |
PATCH /api/pulse/channels/:id | Change name, config or enabled. A secret, Slack URL or integration key left out or sent empty keeps its stored value. |
DELETE /api/pulse/channels/:id | Delete a channel and take it off every check that used it |
POST /api/pulse/channels/:id/test | Send a test alert. Returns { "ok": true, "error": "" }. |
GET /api/pulse/alerts | The log of alerts sent in the last 30 days. Filter with checkId and incidentId; limit is 1 to 500, default 100. |
What a channel receives, and how to check a webhook's signature, is on Alerts.
Status pages
curl -X POST https://edge.network/api/pulse/status-pages \
-H "Authorization: Bearer ek_live_..." \
-H "Content-Type: application/json" \
-d '{
"title": "Acme status",
"slug": "acme",
"components": [
{ "checkId": "chk_3f9a1c2b7d4e5a60", "name": "API" }
]
}'| Field | Required | Description |
|---|---|---|
title | Yes | Up to 100 characters |
slug | Yes | The address after pulse.edge.network/: 3 to 40 lowercase letters, numbers and hyphens |
description | No | Introduction under the title, up to 500 characters |
components | No | Up to 50 of { checkId, name }, in the order shown. name is the public name; empty uses the check's name. |
customDomain | No | Your own domain. Needs a card on file, and is served once verified. |
logoUrl | No | An https:// link to an image |
accent | No | A hex colour such as #0ea5e9 |
hideBranding | No | true removes "Monitored by Edge Pulse". Default false. |
published | No | false takes the page offline. Default true. |
| Endpoint | Description |
|---|---|
GET /api/pulse/status-pages | List status pages |
POST /api/pulse/status-pages | Create a status page |
GET /api/pulse/status-pages/:id | One status page |
PATCH /api/pulse/status-pages/:id | Change any of the fields above. Send components whole. Changing customDomain means verifying again. |
DELETE /api/pulse/status-pages/:id | Delete a status page and its subscribers |
POST /api/pulse/status-pages/:id/verify-domain | Look up the domain's DNS and connect it if it points at Pulse. Returns { "verified": true, "error": "" }. |
A status page is returned with url (where it is served now), sharedUrl, domainVerified, cnameTarget (the value for the CNAME record) and a count of confirmed subscribers. The public page has its own JSON and RSS, which need no key: see Status pages.
Locations and usage
| Endpoint | Description |
|---|---|
GET /api/pulse/locations | Every location: id, name, city, country, region, online, and capabilities (the check types it can run) |
GET /api/pulse/overview | Counts of checks by status, open incidents, this month's runs, the account's limits, and pricing |
GET /api/pulse/usage?month=2026-11 | Runs for a month, by day, with an estimate of the cost. Leave month out for the current month. |
Permissions and errors
An API key acts with the role of the person who made it. Reading works for every role. Creating and changing need a role that can create resources, and deleting needs one that can delete them. Creating a check, a channel or a status page also needs a verified email address on the account.
A request Pulse turns down returns a JSON body with a sentence in error that says what to change.
| Status | Meaning |
|---|---|
400 | A field is missing or not valid, or a limit on channels or status pages is reached |
402 | Needs a card on file: a page speed check, a domain of your own, or more checks than the account may have |
404 | No check, incident, channel or status page with that id on this account |
409 | Cannot be done as things stand: the address or domain is taken, the check is paused, or no location that can run it is online |
429 | More than 60 tests in an hour |
502 | Pulse is unavailable right now. Try again in a minute. |
504 | A test's location did not answer in time. Try again. |
The limits that apply to every part of the API are on Errors.
Something unclear or out of date? Tell us, or read this page as Markdown.