Developers

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 as 01J9ZP4M3K8Q5R6S7T8V9W0X1Y. Paths take the ULID only. Numeric ids are never returned and are refused with 400 (INVALID_MONITOR_ID on 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: PATCH and DELETE), PLAN_LIMIT_REACHED (403, details carries 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

MethodPathPermissionPurpose
GET/api/v1/monitorsmonitors:readMonitors you own or that a team shares with you, summary form. Query: ?page&limit (default 20, max 100), ?managedBySource=terraform.
POST/api/v1/monitorsmonitors:createCreate a monitor. Same validation, defaults and plan limits as the dashboard.
GET/api/v1/monitors/:publicIdmonitors:readEvery field of one monitor.
PATCH/api/v1/monitors/:publicIdmonitors:createChange the fields you send. Needs edit access (owner or an edit-level team share).
DELETE/api/v1/monitors/:publicIdmonitors:deletePermanently delete a monitor and its history. Needs edit access.
GET/api/v1/monitors/:publicId/resultsmonitors:results:readCheck 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/statsmonitors:results:readUptime / 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/maintenancemonitors:maintenance:readList active maintenance windows: { windows: [...] }.
POST/api/v1/monitors/:publicId/maintenancemonitors:maintenance:writeOpen 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/:windowIdmonitors:maintenance:writeClose 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).

GroupFields
Basicsname, 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 fromregion (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 / DNSmethod, 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})
ThresholdsretryCount, 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 routingalertTypes, 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)
HeartbeatheartbeatIntervalSeconds (60 s to 30 days; defaults to interval), heartbeatGraceSeconds (default 60)
Read onlypublicId, 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.

MethodPathReturns
GET/api/v1/escalation-policiesPolicies you created (the ones escalationPolicyId accepts): publicId, name, stepCount, createdAt, updatedAt.
GET/api/v1/webhooksYour webhook configs (the ones selectedWebhookIds accepts): publicId, name, description, messageFormat, isActive, enabledAlertTypes, enabledMonitorTypes, createdAt. No URL or secrets.
GET/api/v1/regionsActive 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.

MethodPathPurpose
GET POST HEAD/api/heartbeat/:token/pingThe job ran. A body {"state":"failure","message":"..."} (or ?state=failure) records a failure instead.
GET POST HEAD/api/heartbeat/:token/failThe 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

MethodPathPermissionRatePurpose
GET/api/v1/incidentsincidents:read120/minIncidents 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/:idincidents:update60/minUpdate 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/commentsincidents:comment60/minAppend 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

MethodPathPermissionRatePurpose
GET/api/v1/ssl/statusssl:status:read60/minPortfolio-wide SSL certificate summary for every monitor owned by the token user.
GET/api/v1/ssl/monitors/:idssl:status:read60/minPer-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

MethodPathPermissionRatePurpose
GET/api/v1/security/monitors/:id/analysissecurity:analysis:read30/minLatest security analysis result for an owned monitor. Needs the plan's security-headers feature.
POST/api/v1/security/monitors/:id/analyzesecurity:analysis:monitor10/minAnswers 501 for now.
POST/api/v1/security/analyzesecurity:analysis:website10/minAnswers 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

MethodPathPermissionRatePurpose
GET/api/v1/health/monitors/:id/predictionshealth:predictions:read60/minAnomaly, 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.

MethodPathPermissionPurpose
GET/api/v1/deploysdeploys:readList your deploys. Query: ?monitor=<publicId>, ?environment, ?since (RFC 3339), ?limit=1..200 (default 50).
POST/api/v1/deploysdeploys:writeRecord a deploy marker; returns 201.
GET/api/v1/deploys/:publicIddeploys:readOne deploy.
PATCH/api/v1/deploys/:publicIddeploys:writeUpdate 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

MethodPathPermissionPurpose
GET/api/v1/status/overallmonitors:readA 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

ParamWhereNotes
pageList endpoints1-indexed, default 1.
limitList endpointsDefault 20, max 100 (monitors/incidents); default 100, max 1000 (monitor results).
timeRangeResults / stats / incidents24h, 7d, 30d, or any Nh / Nd. Supported reach: 7 days (results, stats) or 30 days (incidents).
startDate + endDateResults / stats / incidentsRFC 3339; endDate is exclusive and optional. Same supported reach.
sinceResults / stats / incidentsRFC 3339. Same supported reach.
daysResults / stats / incidentsA number of days within the same reach.
statusIncidentsactive, resolved, all (default all).

OpenAPI document

The schema is at /api/docs/v1-openapi.json and can feed code generators (openapi-generator, oazapfts, etc.).

Bu sayfayı Türkçe okuyun