Skip to content
Docs

Uptime monitoring

"Watch the site you just deployed and email me if it goes down" is three API calls. Your agent tests the settings, creates an alert channel, and creates a check that runs from several locations. When you ask whether something is down, it reads the failing locations and the latest error.

Why use Pulse through the Agent API

  • Monitoring belongs to the deploy: the agent that put a site live is the one that knows its address, its health endpoint and what a good response looks like.
  • Cost before commitment: a dry run returns the runs a check uses in a month and what that adds to the bill. The first 150,000 runs a month are free.
  • Test before saving: the agent runs the settings once from a real location and sees the result before it creates anything.
  • Answers, not dashboards: every response carries a tell_user sentence, such as which locations are failing and why.

What it needs

An agent access code with the Pulse product. Reading needs no further permission. Creating, changing, pausing, running and testing need manage. Deleting needs delete.

A new access code starts with Pulse ticked. A code made before Pulse existed does not have it: edit the code in Account → Agent Access and tick Pulse.

Note

Pulse is not available to a self-signed-up account until a human claims it. A check fetches an address the caller names, so the explore tier does not include it. See Agent self-signup.

API endpoints

Output
GET    /agent/pulse/overview                        # Checks by status, open incidents, runs this month, prices
GET    /agent/pulse/locations                       # Where checks can run from

GET    /agent/pulse/checks                          # List checks
POST   /agent/pulse/checks                          # Create a check (returns runs and cost a month)
POST   /agent/pulse/checks/test                     # Run settings once, without saving them
GET    /agent/pulse/checks/{id}                     # One check, with the state of each location
PATCH  /agent/pulse/checks/{id}                     # Change a check
DELETE /agent/pulse/checks/{id}                     # Delete a check and its results
POST   /agent/pulse/checks/{id}/pause               # Stop it running; no alerts until resumed
POST   /agent/pulse/checks/{id}/resume              # Start it again
POST   /agent/pulse/checks/{id}/run                 # Run it now from each location
GET    /agent/pulse/checks/{id}/results             # Single runs from the last 48 hours
GET    /agent/pulse/checks/{id}/metrics             # Uptime and response times over a period

GET    /agent/pulse/incidents                       # List incidents
GET    /agent/pulse/incidents/{id}                  # One incident and its timeline
PATCH  /agent/pulse/incidents/{id}                  # Set the public note status pages show

GET    /agent/pulse/channels                        # List alert channels
POST   /agent/pulse/channels                        # Create an alert channel
PATCH  /agent/pulse/channels/{id}                   # Change an alert channel
DELETE /agent/pulse/channels/{id}                   # Delete an alert channel
POST   /agent/pulse/channels/{id}/test              # Send a test alert
GET    /agent/pulse/alerts                          # Alerts sent in the last 30 days

GET    /agent/pulse/status-pages                    # List status pages
POST   /agent/pulse/status-pages                    # Create a status page
GET    /agent/pulse/status-pages/{id}               # One status page
PATCH  /agent/pulse/status-pages/{id}               # Change a status page
DELETE /agent/pulse/status-pages/{id}               # Delete a status page and its subscribers
POST   /agent/pulse/status-pages/{id}/verify-domain # Connect a custom domain

Every endpoint that changes something accepts X-Dry-Run: true. Requests take snake_case fields. A check, incident, channel or status page comes back as the REST API returns it.

Testing settings

Run the settings once before saving them. The call waits for the result and is not billed.

HTTP
POST /agent/pulse/checks/test
Authorization: Bearer ea_live_...

{
  "type": "http",
  "target": "https://example.com/health"
}

# Response:
{
  "result": { "ok": true, "durationMs": 84.2 },
  "location": { "id": "ldn1", "name": "London" },
  "tell_user": "Passed from London in 84 ms."
}

What to watch

target says what to watch in one line. config carries any further settings and is merged over it.

TypetargetChecks that
httphttps://example.com/healthA URL answers as expected
apinone: send config.stepsA workflow of up to 10 requests passes
sslexample.com or example.com:8443A certificate is valid and not about to expire
dnsexample.com or example.com MXA record resolves
tcp, udpdb.example.com:5432A port answers
pingexample.comA host answers
browserhttps://example.comPage speed in a real browser. Paid, never free

The settings each type takes are on Check types.

Creating a check

Dry-run first. The plan says how many runs the check uses in a month and what it adds to the bill:

HTTP
POST /agent/pulse/checks
Authorization: Bearer ea_live_...
X-Dry-Run: true

{
  "name": "Website",
  "type": "http",
  "target": "https://example.com",
  "interval_sec": 60,
  "locations": 3,
  "channel_ids": ["chn_abc123"]
}

# Response:
{
  "dry_run": true,
  "would_create": { "type": "pulse_check", "check": { ... } },
  "estimate": {
    "runs_per_month": 129600,
    "page_speed": false,
    "account_runs_per_month": 129600,
    "free_runs_per_month": 150000,
    "estimated_monthly_usd": 0,
    "added_monthly_usd": 0
  },
  "tell_user": "Would create the http check \"Website\". About 129,600 runs
    a month. The account's 129,600 runs stay within the 150,000 free each month."
}

Send the same request without X-Dry-Run to create it. The response carries the check, the same estimate and a link to it in the console. Add an Idempotency-Key header to make a retry safe.

FieldMeaning
name, typeRequired. The type cannot be changed later
target, configWhat to watch, as above
interval_sec30, 60, 120, 300, 600, 900, 1800, 3600, 21600 or 86400. Default 60. The shortest is 300 for browser and 3600 for ssl
locationsA number of locations for Pulse to choose (1 to 20, default 3), or a list of location ids
timeout_ms1000 to 30000, default 10000
alert_afterFailures in a row, from one location, that open an incident. Default 2
recover_afterPasses in a row before a location counts as recovered. Default 2
degraded_msA passing run slower than this is marked slow
channel_idsThe alert channels to tell. Without one, nobody is told
enabledfalse creates the check paused

Warning

A check with no alert channel tells nobody. Create a channel first and pass its id in channel_ids, or add it afterwards with PATCH.

Alert channels

Alerts are free. A channel is email, a webhook, Slack or PagerDuty:

HTTP
POST /agent/pulse/channels
Authorization: Bearer ea_live_...

{
  "type": "email",
  "name": "Ops team",
  "config": { "emails": ["ops@example.com"] }
}
Typeconfig
email{ "emails": [...] }, 1 to 10 addresses
webhook{ "url": "...", "secret": "..." }. The secret is optional and signs each delivery
slack{ "url": "..." }, a Slack incoming webhook
pagerduty{ "routingKey": "..." }, an Events API v2 integration key

POST /agent/pulse/channels/{id}/test sends a test alert, so the agent can confirm it arrives before relying on it.

Is it down?

GET /agent/pulse/checks/{id} returns the check with the latest state of each location. The tell_user sentence names the locations that are failing and the latest error:

Output
"Website" (http, https://example.com) is down. It runs every 60 seconds
from 3 locations. Failing from London, Frankfurt: connection timed out.

For more, read the single runs and the figures over a period:

Output
GET /agent/pulse/checks/{id}/results?failed=true&limit=20
GET /agent/pulse/checks/{id}/metrics?hours=168

Results cover the last 48 hours. Metrics give uptime, the average and the p50, p95 and p99 response times for up to 90 days. Add ?series=true for the figures per location in time steps.

Changing, pausing and deleting

PATCH changes only the fields sent. A new target changes what is watched and keeps the other settings. config on its own replaces the settings whole. A dry run of a change says how the bill moves from now.

Pause a check for planned maintenance and resume it afterwards. A paused check watches nothing, sends no alerts and uses no runs.

Deleting a check removes its results and incidents, needs the delete permission and must be confirmed:

HTTP
DELETE /agent/pulse/checks/{id}
Authorization: Bearer ea_live_...
X-Confirm: delete

Without the header the request is refused with CONFIRMATION_REQUIRED and nothing is deleted. A status page is deleted the same way.

Status pages

A status page shows the checks you choose, under the names you choose, at pulse.edge.network/{slug}. It is free and public as soon as it is created.

HTTP
POST /agent/pulse/status-pages
Authorization: Bearer ea_live_...

{
  "title": "Example status",
  "slug": "example",
  "components": [
    { "check_id": "chk_abc123", "name": "Website" },
    { "check_id": "chk_def456", "name": "API" }
  ]
}

To serve the page on a domain of your own, set custom_domain, point a CNAME at the cnameTarget in the response, then call verify-domain. A custom domain is $2 a month and needs a card on file.

During an incident, PATCH /agent/pulse/incidents/{id} with a note sets the public text the page shows for it. It is published at once, so the agent should agree the wording with you first.

Budgets

WhatPrice
Check runs150,000 a month free, then $0.01 per 1,000. A run is one scheduled test from one location
Page speed (browser) runs$1.00 per 1,000, never free
Status page on your own domain$2 a month
Alerts, tests, runs on demand, status pages on pulse.edge.networkFree

An access code with a hard budget of $0 can create checks that stay within the free runs. Three things are refused with BUDGET_EXCEEDED: a page speed check, a status page on its own domain, and a check that would take an account with a card on file past its free runs. An account with no card is never charged: at the limit its checks pause instead.

Typical agent workflow

  1. Test the settings: POST /agent/pulse/checks/test against the address just deployed.
  2. Find or create an alert channel: list the channels, and create one if there is none.
  3. Dry-run the check: report the runs and cost a month.
  4. Create the check: with the channel's id in channel_ids.
  5. Report back: the check's name, what it watches, how often, and who is told when it fails.

With MCP

The MCP server has 18 Pulse tools that call these endpoints, from edge_get_pulse_overview and edge_create_pulse_check to edge_create_pulse_status_page. Each is listed with its parameters in the MCP tool reference.

See also

Next steps

Something unclear or out of date? Tell us, or read this page as Markdown.