Requests, pagination and idempotency
Use JSON request bodies with Content-Type: application/json. Check writes
use {"check":{...}}; dashboard writes use {"dashboard":{...}}.
Unknown body/query fields are rejected, not silently ignored.
Identifiers and lists
Section titled “Identifiers and lists”Treat IDs as opaque strings. Check/dashboard IDs are prefixed identifiers; some other resources and history-source IDs are numeric strings. Use values returned by the API rather than converting or constructing IDs. Prefixed IDs can’t be decoded or worked out from another ID.
Every prefixed ID changed once, when IDs stopped being decodable. IDs you stored before that, including ones in older webhook payloads, alert emails and Slack messages, no longer match. List the resources again to get their current IDs. PagerDuty dedup keys, Jira labels and Jira Service Management aliases didn’t change, so incidents already open in those tools still resolve.
List responses use:
{ "items": [], "next_cursor": null}| Parameter | Default | Accepted |
|---|---|---|
limit |
20 | Integer 1-100 |
cursor |
0 | Nonnegative integer returned as next_cursor |
Results are paged in increasing underlying ID order, except incidents, which
come newest first, and a dashboard’s checks, which follow display order. A
cursor is the opaque value a response returned, not a timestamp or prefixed
resource ID. Continue until next_cursor is null. Dashboard detail nests this
envelope under checks.
Results
Section titled “Results”Single-resource results are direct JSON objects, not wrapped in data.
Successful creates return 201; ordinary reads/updates/assignment operations
return JSON on success. A saved pending check is not verified target health.
Timestamps use ISO 8601. Measurement absence is null, not zero. Check reads return a website’s address without its query string or sign-in credentials, because those can hold tokens. Incident reads include the cause but not notes or delivery details. Heartbeat URL access is explicitly sensitive.
Creation retries
Section titled “Creation retries”Check and dashboard creates require an Idempotency-Key header: a nonempty
string of at most 100 characters. Use a unique key per intended creation.
Identical canonical creation arguments under the same grant/key reuse the
created resource while the request record is retained. Different arguments
produce idempotency_conflict. Keys share the grant’s creation-request
namespace, so use different keys for different resource creations.
Request records older than seven days are removed; do not rely on a key
forever. Replaying a key whose check or dashboard has since been deleted
returns idempotency_conflict and doesn’t recreate it; use a new key to
create it again. Replaying a dashboard that is no longer private can be
forbidden. Replays return the current
serialized resource, not an immutable copy of its original response.
MCP uses an idempotency_key argument, not an HTTP header.
For transport failures, retry the same intended create with the same key;
do not automatically issue a new create key.
See errors and rate limits before implementing retries.