# API objects

> Every field of the monitor, incident, status page and account objects the Uptenna API returns, with types, allowed values and a full example.

Source: https://uptenna.com/docs/api-objects  
Markdown: https://uptenna.com/docs/api-objects.md

## Monitor

An HTTP check (a URL requested on a schedule) or a heartbeat (a URL your cron job pings). Fields that don't apply to the monitor's kind are null.

| Field | Type | Description |
| --- | --- | --- |
| `id` | string | Starts with `mon_`. |
| `kind` | string | Fixed at creation. One of `http`, `heartbeat`. |
| `name` | string | Up to 80 characters. HTTP monitors default to the URL's hostname. |
| `status` | string | `pending` until the first check (or ping). One of `pending`, `up`, `degraded`, `down`. |
| `paused` | boolean | Paused monitors aren't checked and don't alert. |
| `over_limit` | boolean | Past your plan's monitor limit (the newest ones): kept, shown, not checked. |
| `url` | string or null | The URL checked. HTTP monitors only; null for heartbeats. |
| `method` | string or null | HTTP monitors only; null for heartbeats. One of `GET`, `HEAD`, `POST`. |
| `expect_status` | string or null | Accepted status codes, like `200-399` or `200,204`. HTTP monitors only; null for heartbeats. |
| `keyword` | string or null | Text the body must contain (case-sensitive). |
| `keyword_absent` | string or null | Text the body must not contain. |
| `timeout_ms` | integer or null | 1000 to 30000. HTTP monitors only; null for heartbeats. |
| `interval_s` | integer or null | Requested check interval: 30, 60, 180, 300, 600. HTTP monitors only; null for heartbeats. |
| `effective_interval_s` | integer or null | The interval actually used: `interval_s`, or your plan's fastest interval if that is slower. |
| `ssl_check` | boolean or null | Warn before the TLS certificate expires (Pro and Team). |
| `heartbeat_url` | string or null | The URL your job pings. Keep it secret. Heartbeats only; null for HTTP monitors. |
| `period_s` | integer or null | How often the job runs, 60 to 2678400 seconds. Heartbeats only; null for HTTP monitors. |
| `grace_s` | integer or null | How late a ping may be before an incident opens, 0 to 604800 seconds. Heartbeats only; null for HTTP monitors. |
| `last_ping_at` | timestamp (ISO 8601) or null | Heartbeats only; null for HTTP monitors. |
| `last_checked_at` | timestamp (ISO 8601) or null | When the last check ran. |
| `last_latency_ms` | integer or null | Response time of the last check. |
| `last_status_code` | integer or null | HTTP status of the last check (null when there was no response). |
| `last_reason` | string or null | Machine reason of the last failure, like `status_503`, `timeout`, `keyword_missing`. |
| `reason_text` | string or null | The same in words, while the monitor is degraded or down. |
| `cert_expires_at` | timestamp (ISO 8601) or null | TLS certificate expiry, when known. |
| `cert_issuer` | string or null | TLS certificate issuer, when known. |
| `open_incident_id` | string or null | The incident open right now, if any. |
| `uptime_24h` | number or null | Share of checks not down in the last 24 hours, 0 to 1. |
| `uptime_30d` | number or null | The same over the last 30 days. |
| `created_at` | timestamp (ISO 8601) |   |
| `updated_at` | timestamp (ISO 8601) | Last change to the monitor's settings. |

```json monitor.json
{
  "id": "mon_Xk3v9QmT2bLp",
  "kind": "http",
  "name": "API",
  "status": "up",
  "paused": false,
  "over_limit": false,
  "url": "https://api.example.com/health",
  "method": "GET",
  "expect_status": "200-399",
  "keyword": null,
  "keyword_absent": null,
  "timeout_ms": 10000,
  "interval_s": 60,
  "effective_interval_s": 60,
  "ssl_check": true,
  "heartbeat_url": null,
  "period_s": null,
  "grace_s": null,
  "last_ping_at": null,
  "last_checked_at": "2026-12-01T09:41:00.000Z",
  "last_latency_ms": 182,
  "last_status_code": 200,
  "last_reason": null,
  "reason_text": null,
  "cert_expires_at": "2027-02-14T23:59:59.000Z",
  "cert_issuer": "Let's Encrypt",
  "open_incident_id": null,
  "uptime_24h": 1,
  "uptime_30d": 0.9993,
  "created_at": "2026-11-02T14:03:11.000Z",
  "updated_at": "2026-11-20T08:15:42.000Z"
}
```

## Incident

Opened after two consecutive failed checks (heartbeats: when a ping is late), resolved on the first success.

| Field | Type | Description |
| --- | --- | --- |
| `id` | string | Starts with `inc_`. |
| `monitor_id` | string |   |
| `monitor_name` | string | The monitor's current name. |
| `kind` | string | One of `http`, `heartbeat`. |
| `status` | string | One of `open`, `resolved`. |
| `severity` | string | The worst seen while open. One of `degraded`, `down`. |
| `reason` | string or null | Machine reason, like `status_503`, `timeout` or `late` (heartbeats). |
| `reason_text` | string or null | The same in words. |
| `status_code` | integer or null | HTTP status that opened it, when there was one. |
| `started_at` | timestamp (ISO 8601) |   |
| `resolved_at` | timestamp (ISO 8601) or null | Null while open. |

```json incident.json
{
  "id": "inc_b8Q2mXz4LkTe",
  "monitor_id": "mon_Xk3v9QmT2bLp",
  "monitor_name": "API",
  "kind": "http",
  "status": "resolved",
  "severity": "down",
  "reason": "status_503",
  "reason_text": "Got HTTP 503 (expected 2xx or 3xx)",
  "status_code": 503,
  "started_at": "2026-11-28T03:12:00.000Z",
  "resolved_at": "2026-11-28T03:16:00.000Z"
}
```

## Status page

A public page showing some of your monitors under public names.

| Field | Type | Description |
| --- | --- | --- |
| `id` | string | Starts with `sp_`. |
| `slug` | string | The page lives at `<slug>.uptenna.com` and `uptenna.com/status/<slug>`. |
| `title` | string |   |
| `description` | string or null |   |
| `website_url` | string or null | The page's “Back to” link. |
| `url` | string | The page's public address. |
| `published` | boolean | False when the page is past your plan's status page limit (the newest ones go offline). |
| `monitors` | array of objects | The monitors shown, in order. |
| `monitors[].id` | string | Monitor id. |
| `monitors[].name` | string | The monitor's own name. |
| `monitors[].display_name` | string or null | Public name on the page (null: the monitor's name). |
| `custom_domain` | object or null | The page's own domain, if one is set up. |
| `custom_domain.hostname` | string | Like `status.acme.com`. |
| `custom_domain.status` | string | One of `pending_dns`, `issuing_certificate`, `active`, `error`, `paused`. |
| `custom_domain.url` | string |   |
| `created_at` | timestamp (ISO 8601) |   |
| `updated_at` | timestamp (ISO 8601) |   |

```json status_page.json
{
  "id": "sp_Hn4c7VtQ1wXa",
  "slug": "acme",
  "title": "Acme status",
  "description": "Live status of the Acme API and dashboard.",
  "website_url": "https://acme.com/",
  "url": "https://acme.uptenna.com",
  "published": true,
  "monitors": [
    {
      "id": "mon_Xk3v9QmT2bLp",
      "name": "API",
      "display_name": "Public API"
    }
  ],
  "custom_domain": {
    "hostname": "status.acme.com",
    "status": "active",
    "url": "https://status.acme.com"
  },
  "created_at": "2026-11-02T14:10:40.000Z",
  "updated_at": "2026-11-15T10:02:13.000Z"
}
```

## Account

The account the key belongs to: plan, limits and what is used.

| Field | Type | Description |
| --- | --- | --- |
| `id` | string |   |
| `email` | string |   |
| `name` | string or null |   |
| `created_at` | timestamp (ISO 8601) |   |
| `plan` | object | The plan in effect right now. |
| `plan.tier` | string | One of `free`, `trial`, `pro`, `team`, `early_access`. |
| `plan.name` | string |   |
| `plan.subscription_status` | string or null | Stripe's status for paid plans, like `active` or `past_due`. |
| `plan.interval` | string or null | One of `month`, `year`. |
| `plan.current_period_end` | timestamp (ISO 8601) or null |   |
| `plan.cancel_at` | timestamp (ISO 8601) or null | Set when the plan is cancelled and ends then. |
| `plan.trial_ends_at` | timestamp (ISO 8601) or null |   |
| `limits` | object | What the plan allows. |
| `limits.monitors` | integer | Monitors that are checked. |
| `limits.min_interval_s` | integer | Fastest check interval. |
| `limits.status_pages` | integer | Published status pages. |
| `limits.alert_channel_types` | array of strings | Alert channel types that deliver. |
| `limits.ssl_checks` | boolean | SSL expiry warnings. |
| `limits.custom_domains` | boolean | Custom domains for status pages. |
| `usage` | object | What the account has now. |
| `usage.monitors` | integer |   |
| `usage.status_pages` | integer |   |
| `usage.alert_channels` | integer |   |
| `usage.open_incidents` | integer |   |
| `usage.api_keys` | integer | Active API keys. |

```json account.json
{
  "id": "acc_r2Lq8XvB4nTk",
  "email": "ana@acme.com",
  "name": "Ana",
  "created_at": "2026-11-02T13:58:20.000Z",
  "plan": {
    "tier": "pro",
    "name": "Pro",
    "subscription_status": "active",
    "interval": "month",
    "current_period_end": "2026-12-02T13:58:20.000Z",
    "cancel_at": null,
    "trial_ends_at": "2026-11-16T13:58:20.000Z"
  },
  "limits": {
    "monitors": 50,
    "min_interval_s": 60,
    "status_pages": 5,
    "alert_channel_types": [
      "email",
      "slack",
      "discord",
      "telegram",
      "webhook"
    ],
    "ssl_checks": true,
    "custom_domains": true
  },
  "usage": {
    "monitors": 12,
    "status_pages": 2,
    "alert_channels": 3,
    "open_incidents": 0,
    "api_keys": 1
  }
}
```
