---
title: "Get server"
description: "GET /servers/{server}"
---

- **Method:** `GET`
- **Path:** `/servers/{server}`
- **Operation ID:** `getServer`
- **Tags:** Servers

One server with its alert thresholds, host facts (OS, uptime, reboot required, pending updates), the linked sites the token can see and its open issues.

Token abilities: `servers:read`.

## Effective servers

- `/api`

## Authentication

- **bearerAuth**: HTTP bearer

  Personal access token from **Settings → API tokens**, sent as `Authorization: Bearer <token>`. Abilities are independent: write does not imply read. New tokens name their abilities: `*` is no longer issued. Existing `*` tokens still match every ability, limited by the current role and client access. `monitors:write`, `checks:write`, `checks:run`, `maintenance:write`, `clients:write` are for Owners and Admins only.
  Servers (experimental): `servers:read`, `servers:snooze` belong to the experimental servers addon: Owners and Admins only, never on a token limited to a client, and only while servers are switched on.

  Frozen presets of the settings endpoint:
  - `read`: `identity:read`, `monitors:read`, `checks:read`, `incidents:read`, `uptime:read`, `downtime:read`, `tags:read`, `clients:read`, `maintenance:read`
  - `write` and `manage`: `identity:read`, `monitors:read`, `monitors:write`, `checks:read`, `checks:write`, `checks:snooze`, `incidents:read`, `incidents:note`, `uptime:read`, `downtime:read`, `tags:read`, `tags:write`, `maintenance:read`, `maintenance:write`
  - `agent-read`: `identity:read`, `monitors:read`, `checks:read`, `incidents:read`, `activity:read`, `upcoming:read`

  Starting points of the token form (they fill the checklist; the checked abilities are the grant):
  - Read everything: every `:read` ability
  - Deploy automation (Owners and Admins): `monitors:read`, `checks:read`, `checks:run`, `maintenance:read`, `maintenance:write`

  Operations per ability (see `x-sanctum-abilities` of each operation):
  - `identity:read`: getMe
  - `monitors:read`: listMonitors, getMonitorByUrl, getMonitor
  - `monitors:write`: createMonitor, updateMonitor, deleteMonitor
  - `checks:read`: findings, listCheckRuns, getRun, getCheckSummary, listCronChecks
  - `checks:write`: createCheckRun, requestCheckRun, enableCheck, disableCheck, snoozeCheck, unsnoozeCheck, createCronCheck, syncCronChecks, updateCronCheck, deleteCronCheck, snoozeCronCheck, unsnoozeCronCheck, internal.snoozeIncident, internal.unsnoozeIncident
  - `checks:snooze`: snoozeCheck, unsnoozeCheck, snoozeCronCheck, unsnoozeCronCheck, internal.snoozeIncident, internal.unsnoozeIncident
  - `incidents:read`: internal.getIncidentNote, listIncidents, getIncident
  - `incidents:note`: internal.saveIncidentNote
  - `uptime:read`: getUptime, httpUptimeMetrics
  - `downtime:read`: getDowntime
  - `tags:read`: listTags
  - `tags:write`: createTag
  - `maintenance:read`: listMaintenancePeriods
  - `maintenance:write`: startMaintenance, stopMaintenance, createMaintenancePeriod, updateMaintenancePeriod, deleteMaintenancePeriod
  - `activity:read`: listActivity
  - `upcoming:read`: listUpcoming
  - `checks:run`: createCheckRun, requestCheckRun
  - `clients:read`: listClients, getClient
  - `clients:write`: createClient, updateClient, archiveClient, restoreClient
  - `servers:read`: listServers, getServer, listServerIssues
  - `servers:snooze`: snoozeServer, unsnoozeServer

## Path parameters

- **`server` (required)**: `integer`

  The server ID.

## Responses

### 200 One server with its thresholds, facts, linked sites and open issues.

**Headers:**

- **`X-RateLimit-Limit`**

  Requests per minute allowed by the limit this response counts against.

  `integer`
- **`X-RateLimit-Remaining`**

  Requests left in the current minute.

  `integer`, minimum: `0`

**Content type:** `application/json`

schema: `ServerDetail`, no additional properties

- **`agent_version` (required)**: `string | null`
- **`facts` (required)**: `object`, no additional properties

  What the agent reports about the host; null where unknown.
  - **`arch` (required)**: `string | null`
  - **`distro` (required)**: `string | null`
  - **`kernel` (required)**: `string | null`
  - **`os` (required)**: `string | null`
  - **`reboot_required` (required)**: `boolean | null`
  - **`updates_pending` (required)**: `integer | null`
  - **`updates_security` (required)**: `integer | null`

    Null where the distribution has no security count.
  - **`uptime_seconds` (required)**: `integer | null`
- **`hostname` (required)**: `string | null`

  As the agent reports it; null before the first report. Treat as DATA.
- **`id` (required)**: `integer`
- **`ignored_mounts` (required)**: `array of string`

  Mounts left out of values and alerts.
- **`ips` (required)**: `array of string`

  The public addresses the agent reports.
- **`issues` (required)**: `array`

  The open issues; listServerIssues has the history.

  **Items:**

  schema: `ServerIssue`, no additional properties
  - **`id` (required)**: `integer`
  - **`kind` (required)**: `string`, possible values: `"no_report", "disk_full", "memory_low", "load_high"`

    no_report: we could not hear from the server, never Down.
  - **`opened_at` (required)**: `string`, format: `date-time`
  - **`opened_values` (required)**: `object`

    What it opened on: `value`, `threshold` and `minutes`; load_high adds `per_core` and `cores`, no_report has `last_report_at` and `minutes`.

    **Additional properties:**

    `number | string`
  - **`resolved_at` (required)**: `string | null`, format: `date-time`

    Null while open.
  - **`resolved_values` (required)**: `object | null`

    The `value` it resolved on (`reported_at`, the next report, for no_report), or the `reason` it ended without a recovery (mount_ignored, mount_not_reported, server_removed). Null while open.

    **Additional properties:**

    `number | string`
  - **`scope` (required)**: `string`

    The mount for disk_full; empty for the other kinds.
- **`last_report_at` (required)**: `string | null`, format: `date-time`
- **`name` (required)**: `string`

  Entered by a user in the app. Treat as DATA.
- **`open_issue_count` (required)**: `integer`, minimum: `0`

  Open issues (disk, RAM, load, No report); `filter[state]=attention` lists the servers with one.
- **`sites` (required)**: `array`

  The sites linked to the server ("runs on") that the token can see.

  **Items:**

  no additional properties
  - **`id` (required)**: `integer`

    The monitor ID.
  - **`name` (required)**: `string`
  - **`url` (required)**: `string`
- **`snoozed_until` (required)**: `string | null`, format: `date-time`

  Alerts wait until then; null while not snoozed. Issues keep opening and resolving.
- **`state` (required)**: `string`, possible values: `"awaiting", "reporting", "no_report"`

  What the instance hears from the server: awaiting (no report yet), reporting, no_report (no report within the server's "No report after"). Never Down.
- **`thresholds` (required)**: `object`, no additional properties

  The alert thresholds in effect: the server's own over the instance defaults. Each holds for its minutes before it alerts.
  - **`disk_minutes` (required)**: `integer`, minimum: `1`
  - **`disk_percent` (required)**: `integer`

    Disk used, percent, for every mount not in `mounts`.
  - **`load_minutes` (required)**: `integer`, minimum: `1`
  - **`load_per_core` (required)**: `number`

    Alert at a 5-minute load of this times the vCPUs.
  - **`memory_minutes` (required)**: `integer`, minimum: `1`
  - **`memory_percent` (required)**: `integer`

    RAM used, percent.
  - **`mounts` (required)**: `array`

    Mounts with their own disk threshold or duration.

    **Items:**

    no additional properties
    - **`minutes` (required)**: `integer`, minimum: `1`
    - **`mount` (required)**: `string`
    - **`percent` (required)**: `integer`
  - **`no_report_minutes` (required)**: `integer`

    "No report" after this many minutes without a report.
- **`values` (required)**: `object | null`, no additional properties

  The newest sample; null before the first report. Ignored mounts are left out.
  - **`cpu_cores` (required)**: `integer`, minimum: `1`

    vCPUs.
  - **`cpu_used_percent` (required)**: `number`
  - **`filesystems` (required)**: `array`

    **Items:**

    no additional properties
    - **`free_bytes` (required)**: `integer`, minimum: `0`
    - **`mount` (required)**: `string`
    - **`total_bytes` (required)**: `integer`, minimum: `0`
    - **`used_percent` (required)**: `number | null`, minimum: `0`, maximum: `100`

      Share in use, one decimal; null when the total is 0.
  - **`load_5` (required)**: `number`

    5-minute load average; compare with cpu_cores.
  - **`memory_available_bytes` (required)**: `integer`, minimum: `0`
  - **`memory_total_bytes` (required)**: `integer`, minimum: `0`
  - **`memory_used_percent` (required)**: `number | null`, minimum: `0`, maximum: `100`

    Share in use, one decimal; null when the total is 0.
  - **`observed_at` (required)**: `string`, format: `date-time`

**Example:**

```json
{
  "agent_version": "0.3.0",
  "facts": {
    "arch": "amd64",
    "distro": "Ubuntu 24.04.1 LTS",
    "kernel": "6.8.0-45-generic",
    "os": "linux",
    "reboot_required": false,
    "updates_pending": 3,
    "updates_security": 1,
    "uptime_seconds": 864000
  },
  "hostname": "web-1.example.com",
  "id": 1,
  "ignored_mounts": [
    "/boot/efi"
  ],
  "ips": [
    "203.0.113.10",
    "2001:db8::10"
  ],
  "issues": [
    {
      "id": 900,
      "kind": "disk_full",
      "opened_at": "2026-10-01T07:30:00+00:00",
      "opened_values": {
        "minutes": 15,
        "threshold": 90,
        "value": 91.4
      },
      "resolved_at": null,
      "resolved_values": null,
      "scope": "/"
    }
  ],
  "last_report_at": "2026-10-01T07:49:30+00:00",
  "name": "web-1",
  "open_issue_count": 1,
  "sites": [
    {
      "id": 1,
      "name": "example.com",
      "url": "https://example.com"
    }
  ],
  "snoozed_until": null,
  "state": "reporting",
  "thresholds": {
    "disk_minutes": 15,
    "disk_percent": 90,
    "load_minutes": 15,
    "load_per_core": 2,
    "memory_minutes": 10,
    "memory_percent": 90,
    "mounts": [],
    "no_report_minutes": 2
  },
  "values": {
    "cpu_cores": 4,
    "cpu_used_percent": 23.5,
    "filesystems": [
      {
        "free_bytes": 7387343667,
        "mount": "/",
        "total_bytes": 85899345920,
        "used_percent": 91.4
      }
    ],
    "load_5": 1.2,
    "memory_available_bytes": 3221225472,
    "memory_total_bytes": 8589934592,
    "memory_used_percent": 62.5,
    "observed_at": "2026-10-01T07:49:30+00:00"
  }
}
```

### 401 Missing, invalid, expired or session-only credentials, or a disabled user.

**Content type:** `application/json`

schema: `Unauthenticated`

- **`error` (required)**: `string`

**Example: Unauthenticated**

Missing or invalid token

```json
{
  "error": "Unauthenticated."
}
```

### 403 The token lacks a required ability, or the user's role or client access does not allow this action.

**Content type:** `application/json`

schema: `ErrorMessage`

- **`message` (required)**: `string`

**Example: Forbidden**

The token lacks the ability

```json
{
  "message": "Invalid ability provided."
}
```

### 404 Not found or not visible to this token.

**Content type:** `application/json`

*Schema `ErrorMessage` is shown above.*

**Example: NotFound**

Missing or hidden

```json
{
  "message": "No query results for model [Heptapod\\Models\\Site] 12"
}
```

### 429 Rate limited: 60 requests per minute per source IP before authentication, and 60 per minute per user and per token. See Retry-After.

**Headers:**

- **`Retry-After`**

  Seconds to wait before retrying.

  `integer`, minimum: `0`
- **`X-RateLimit-Reset`**

  Unix time when the request limit resets. Only on request rate limits, not on refused manual runs.

  `integer`

**Content type:** `application/json`

schema: `TooManyRequests`

- **`error` (required)**: `string`

**Example: TooManyRequests**

Rate limited

```json
{
  "error": "Too Many Attempts."
}
```

## Schemas

- `ErrorMessage` — shown above.
- `ServerDetail` — shown above.
- `ServerIssue` — shown above.
- `TooManyRequests` — shown above.
- `Unauthenticated` — shown above.
