API endpoints
Reference for the v1 endpoints: method, path, required permission, query parameters, and response shape.
The Public API lives under /api/v1/, plus the two token-in-the-URL heartbeat pings. This page is a quick reference card; the canonical schema is published at /api/docs/v1-openapi.json.
Make sure you have read API Getting Started and have a token before continuing.
Conventions
- Base URL:
https://app.uptimewarden.online - Auth:
Authorization: Bearer <token>(every v1 endpoint requires it). - Ids are public ids only. A monitor, incident, escalation policy or webhook is named by its
publicId, a 26-character ULID such as01J9ZP4M3K8Q5R6S7T8V9W0X1Y. Paths take the ULID only. Numeric ids are never returned and are refused with400(INVALID_MONITOR_IDon monitor paths). - Successful responses follow
{ success: true, data, pagination?, meta? }. - Error responses follow
{ success: false, error: { code, message, details? } }. Codes:VALIDATION_ERROR(400, the message names the field),FORBIDDEN(403, the token lacks the required permission),ACCESS_DENIED(403, a team shares the monitor with you but you cannot edit it:PATCHandDELETE),PLAN_LIMIT_REACHED(403,detailscarries the plan's reason),MONITOR_NOT_FOUND(404, the monitor does not exist, or you neither own it nor have it through a team; the two cases look the same),INTERNAL_ERROR(500).
Monitors
| Method | Path | Permission | Purpose |
|---|---|---|---|
GET | /api/v1/monitors | monitors:read | Monitors you own or that a team shares with you, summary form. Query: ?page&limit (default 20, max 100), ?managedBySource=terraform. |
POST | /api/v1/monitors | monitors:create | Create a monitor. Same validation, defaults and plan limits as the dashboard. |
GET | /api/v1/monitors/:publicId | monitors:read | Every field of one monitor. |
PATCH | /api/v1/monitors/:publicId | monitors:create | Change the fields you send. Needs edit access (owner or an edit-level team share). |
DELETE | /api/v1/monitors/:publicId | monitors:delete | Permanently delete a monitor and its history. Needs edit access. |
GET | /api/v1/monitors/:publicId/results | monitors:results:read | Check results, at most 7 days back (default 24 hours). Query: ?timeRange (24h, 7d, 30d, or Nh / Nd), ?days=N, ?since, ?startDate&endDate (exclusive), ?limit=1..1000. A window past 7 days is 403 TIME_RANGE_EXCEEDED. |
GET | /api/v1/monitors/:publicId/stats | monitors:results:read | Uptime / response-time aggregates: uptime, avgResponseTime, totalChecks, latestResult. Same time-range options and the same 7-day reach as results; the default window is 7 days. |
GET | /api/v1/monitors/:publicId/maintenance | monitors:maintenance:read | List active maintenance windows: { windows: [...] }. |
POST | /api/v1/monitors/:publicId/maintenance | monitors:maintenance:write | Open a maintenance (mute) window. Body: { durationMinutes, reason?, source? }. durationMinutes is 1-240 minutes; reason at most 500 characters; source is ui, api, cli, github-actions or auto-fix (default api). A repeated call with the same Idempotency-Key header does not open a second window; it returns the existing one with 200 and deduplicated: true. A new window returns 201 and { windowId, start, end }. A monitor can hold at most 20 windows (409). Needs edit access. |
DELETE | /api/v1/monitors/:publicId/maintenance/:windowId | monitors:maintenance:write | Close a window (windowId is the value from the open response). Returns 204, also when the window does not exist. Needs edit access. |
curl -sS -X POST "https://app.uptimewarden.online/api/v1/monitors" \
-H "Authorization: Bearer $API_TOKEN" \
-H "Content-Type: application/json" \
-d '{"name":"Production API","type":"http","url":"https://api.example.com/health",
"interval":60,"timeout":10,"region":"gwc","verificationRegions":["sea"],
"expectedStatusCodes":"200,201,204","escalationPolicyId":"01J9ZP4M3K8Q5R6S7T8V9W0EP1",
"externalId":"tf.production_api","managedBySource":"terraform"}'
Monitor fields
Create and update take the dashboard's field names. Unknown fields are refused with a 400 that names them. On update, only the fields you send change, and plan limits judge only what changes (a monitor saved before a downgrade stays editable).
| Group | Fields |
|---|---|
| Basics | name, type (http tcp udp ssl websocket mcp grpc ping dns heartbeat; must be in your plan; cannot change to or from heartbeat), url (not for heartbeat), description, interval (seconds, at least 30 and your plan's minimum; default 300), timeout (5-300 s, default 30), isActive, tags, groups (update only), externalId (≤255 chars), managedBySource (default manual) |
| Where it is checked from | region (an active code from GET /api/v1/regions; choosing one needs region selection on your plan), verificationRegions (regions that recheck an outage; active codes, not the primary, at most your plan's maxVerificationRegions - 1; empty = nearest regions), minConfirmingRegions (a value other than the plan default needs allowConsensusOverride), agentId (one of your private agents) |
| HTTP / TCP / UDP / gRPC / DNS | method, customHeaders (object), requestBody, expectedStatusCodes (comma-separated list; each entry can be a code, a range or a class, e.g. "200,201,204", "200-299", "2xx"; when empty, any 2xx is accepted), expectedBody (keyword), contentValidation, followRedirects, verifySsl, enableSsl, basicAuthUsername, basicAuthPassword, bearerToken, hostname, port, grpcProtoFile, grpcMethod, dnsConfig ({recordType, resolver, expectedAnswers}) |
| Thresholds | retryCount, responseTimeThreshold (50-5000 ms; 0 or null = off), sslExpiryDays, sslAlerts ({thirtyDays, fifteenDays, sevenDays, oneDay}), domainMonitoringEnabled and domainExpiryThreshold (plan feature), securityAnalysisEnabled and securityAnalysisMode (plan feature) |
| Alert routing | alertTypes, notifications (channel × alert type, e.g. {"email":{"down":true,"recovery":true},"sms":{"down":true}}), emailAddresses, phoneNumbers, whatsappNumbers, voiceNumbers (comma-separated), voiceMode (sequential or all), escalationPolicyId (publicId of a policy you created; null on update detaches; on-call is a plan feature), selectedWebhookIds (publicIds of your webhooks; [] detaches all) |
| Heartbeat | heartbeatIntervalSeconds (60 s to 30 days; defaults to interval), heartbeatGraceSeconds (default 60) |
| Read only | publicId, heartbeatToken and heartbeatUrl (heartbeat monitors), heartbeatLastPingAt, createdAt, lastChecked |
Credentials (basicAuthPassword, bearerToken, heartbeatToken, heartbeatUrl) come back only to callers who may edit the monitor; a read-only team share sees null.
Reference lists
What a monitor can point at, so a client can resolve names to public ids. Read-only, monitors:read, scoped to the token owner.
| Method | Path | Returns |
|---|---|---|
GET | /api/v1/escalation-policies | Policies you created (the ones escalationPolicyId accepts): publicId, name, stepCount, createdAt, updatedAt. |
GET | /api/v1/webhooks | Your webhook configs (the ones selectedWebhookIds accepts): publicId, name, description, messageFormat, isActive, enabledAlertTypes, enabledMonitorTypes, createdAt. No URL or secrets. |
GET | /api/v1/regions | Active region codes (code, name, description, isDefault) and plan: regionSelection, maxRegions, maxVerificationRegions, defaultConfirmingRegions, allowConsensusOverride (-1 = unlimited). |
Webhooks, status pages, escalation policies and on-call schedules can also be managed with an API token: /api/v1/webhooks/configs, /api/v1/status-pages, /api/v1/on-call/policies and /api/v1/on-call/schedules. They need the webhooks:*, status_pages:* and on_call:* scopes. The Terraform provider uses these endpoints.
Heartbeat pings
The heartbeat token in the URL is the credential; no API token is needed. Get it from heartbeatToken / heartbeatUrl on the monitor. A new heartbeat token is a 43-character random string (base64url), not a ULID.
| Method | Path | Purpose |
|---|---|---|
GET POST HEAD | /api/heartbeat/:token/ping | The job ran. A body {"state":"failure","message":"..."} (or ?state=failure) records a failure instead. |
GET POST HEAD | /api/heartbeat/:token/fail | The job ran and failed. Optional {"message":"..."} (500 chars) becomes the incident's error message. |
A failure turns the monitor down at the next evaluation (within 30 seconds) instead of after interval + grace; the next successful ping recovers it. Answers: 204, 404 unknown token, 429 (120 per minute per token and IP, and 600 per minute per IP across tokens), 503 (retry).
Incidents
| Method | Path | Permission | Rate | Purpose |
|---|---|---|---|---|
GET | /api/v1/incidents | incidents:read | 120/min | Incidents for monitors owned by the token user, at most 30 days back (default 7 days); incidents still open are always listed, whatever their age. Query: ?timeRange (24h, 7d, 30d, or Nh / Nd), ?status=active|resolved|all, ?days=N, ?since, ?startDate&endDate (exclusive), ?page&limit. A window past 30 days is 403 TIME_RANGE_EXCEEDED; an unreadable value is 400 INVALID_TIME_RANGE. |
PATCH | /api/v1/incidents/:id | incidents:update | 60/min | Update an incident's status. Body: { status: "acknowledged"|"resolved" } (status is required). Setting status: "resolved" stamps resolvedAt. Reopening a resolved incident is not possible through the API and returns 400: An incident cannot be reopened through the API; it opens again when its monitor fails again. Status must be resolved or acknowledged. The incident opens again on its own when its monitor fails again. |
POST | /api/v1/incidents/:id/comments | incidents:comment | 60/min | Append a timeline comment. Body: { message: string } (required). |
curl -sS -X PATCH "https://app.uptimewarden.online/api/v1/incidents/$ID" \
-H "Authorization: Bearer $API_TOKEN" \
-H "Content-Type: application/json" \
-d '{"status":"resolved"}'
Each incident in the list carries: publicId, monitorPublicId, alarmType, title, description, status, severity (critical, major, minor or warning), priority, sslExpiryDate, sslDaysRemaining, responseTime, responseThreshold, autoCreated, lastNotificationSent, nextNotificationDue, suppressedByIncidentPublicId, cascadeDepth, cascadeSuppressedAt, startedAt, resolvedAt, acknowledgedAt, createdAt, updatedAt. pagination carries page, limit, total, totalPages.
SSL
| Method | Path | Permission | Rate | Purpose |
|---|---|---|---|---|
GET | /api/v1/ssl/status | ssl:status:read | 60/min | Portfolio-wide SSL certificate summary for every monitor owned by the token user. |
GET | /api/v1/ssl/monitors/:id | ssl:status:read | 60/min | Per-monitor certificate detail. |
The certificate object returned by both endpoints carries: monitorPublicId, url, certificateExpiry, certificateIssuer, certificateSubject, certificateSerial, daysUntilExpiry, isValid, isExpired, isExpiring, isTrusted, isHostnameMatch, errorMessage, errorCode, checkedAt.
There is no API endpoint for forced refresh; SSL data is refreshed automatically. To trigger a manual refresh, use the dashboard.
Security analysis
| Method | Path | Permission | Rate | Purpose |
|---|---|---|---|---|
GET | /api/v1/security/monitors/:id/analysis | security:analysis:read | 30/min | Latest security analysis result for an owned monitor. Needs the plan's security-headers feature. |
POST | /api/v1/security/monitors/:id/analyze | security:analysis:monitor | 10/min | Answers 501 for now. |
POST | /api/v1/security/analyze | security:analysis:website | 10/min | Answers 501 for now. |
Returned fields of the analysis: monitorPublicId, url, analysisMode, overallGrade, score, analysisData, latest, analyzedAt. Security analysis runs on a schedule; no API call starts a new one.
AI Health Predictions
| Method | Path | Permission | Rate | Purpose |
|---|---|---|---|---|
GET | /api/v1/health/monitors/:id/predictions | health:predictions:read | 60/min | Anomaly, trend, and forecast predictions for the monitor. data is an array of predictions; each row carries fields such as currentUptime, predictedTrend, nextDayUptime, nextWeekUptime, next30DayUptime, confidence, anomalies, recommendations, aiSummary, analyzedAt. Returns { success: true, data: null, message } when there is not yet enough history. |
Health predictions are generated every night by default, and monitors whose latest prediction is older than 12 hours are re-analyzed during the day. A prediction needs sufficient historical data. See Health Predictions for details on the prediction model.
Deploy markers
CI/CD pipelines record a marker for each deploy. The markers are listed here. A deploy recorded for a monitor shows on the incident detail timeline and is added to an alert when it started within the 2 hours before the alert: a recentDeploy object in the webhook payload, a deploy line in the Slack alert and {{recentDeploy}} in notification templates. These endpoints do not use the { success, data } envelope: a single deploy comes back as a plain object, the list as { deploys: [...] }, and errors as { error, message }. Only the owner can reach a deploy; someone else's deploy returns 404.
| Method | Path | Permission | Purpose |
|---|---|---|---|
GET | /api/v1/deploys | deploys:read | List your deploys. Query: ?monitor=<publicId>, ?environment, ?since (RFC 3339), ?limit=1..200 (default 50). |
POST | /api/v1/deploys | deploys:write | Record a deploy marker; returns 201. |
GET | /api/v1/deploys/:publicId | deploys:read | One deploy. |
PATCH | /api/v1/deploys/:publicId | deploys:write | Update status and metadata. Body: { status?, metadata? }. metadata is merged into the existing value. completedAt is stamped when the status leaves in_progress. |
POST body: service (required, at most 200 characters), version (at most 200), commitSha (at most 80), environment (at most 80, default production), monitorPublicIds (array of monitor publicIds; they must be your own monitors or ones a team shares with you), source (api, cli, github-actions or manual; default api), status (in_progress, success, failure or cancelled; default in_progress), metadata (JSON object).
Deploy object: deployId, service, version, commitSha, environment, monitorPublicIds, source, status, metadata, startedAt, completedAt.
curl -sS -X POST "https://app.uptimewarden.online/api/v1/deploys" \
-H "Authorization: Bearer $API_TOKEN" \
-H "Content-Type: application/json" \
-d '{"service":"api","version":"1.4.2","environment":"production","source":"cli"}'
Overall status
| Method | Path | Permission | Purpose |
|---|---|---|---|
GET | /api/v1/status/overall | monitors:read | A 24-hour summary of the token owner's monitors. |
Response (a plain object, no envelope): status (operational: no monitor is down; degraded: some are down; outage: every active monitor is down; paused monitors do not count), uptime and avgResponseTime (from checks in the last 24 hours; null when there were none), totalMonitors, upMonitors, downMonitors, pausedMonitors, unknownMonitors, activeIncidents, openIncidents, lastUpdated, window (24h).
Common parameters
| Param | Where | Notes |
|---|---|---|
page | List endpoints | 1-indexed, default 1. |
limit | List endpoints | Default 20, max 100 (monitors/incidents); default 100, max 1000 (monitor results). |
timeRange | Results / stats / incidents | 24h, 7d, 30d, or any Nh / Nd. Supported reach: 7 days (results, stats) or 30 days (incidents). |
startDate + endDate | Results / stats / incidents | RFC 3339; endDate is exclusive and optional. Same supported reach. |
since | Results / stats / incidents | RFC 3339. Same supported reach. |
days | Results / stats / incidents | A number of days within the same reach. |
status | Incidents | active, resolved, all (default all). |
OpenAPI document
The schema is at /api/docs/v1-openapi.json and can feed code generators (openapi-generator, oazapfts, etc.).
Related
- API Getting Started: onboarding, base URL, errors
- API Quick Start: five-minute curl walkthrough
- API Tokens: permission catalogue and rotation
- Subscription Plans: plan limits