Skip to content

Get server

GET
/servers/{server}
curl --request GET \
--url https://example.com/api/servers/1 \
--header 'Authorization: Bearer <token>'

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.

server
required
integer

The server ID.

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

Media typeapplication/json
ServerDetail
object
agent_version
required
string | null
facts
required

What the agent reports about the host; null where unknown.

object
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

Null where the distribution has no security count.

integer | null
uptime_seconds
required
integer | null
hostname
required

As the agent reports it; null before the first report. Treat as DATA.

string | null
id
required
integer
ignored_mounts
required

Mounts left out of values and alerts.

Array<string>
ips
required

The public addresses the agent reports.

Array<string>
issues
required

The open issues; listServerIssues has the history.

Array<object>
ServerIssue
object
id
required
integer
kind
required

No_report: we could not hear from the server, never Down.

string
Allowed values: no_report disk_full memory_low load_high
opened_at
required
string format: date-time
opened_values
required

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

object
key
additional properties
number | string
resolved_at
required

Null while open.

string | null format: date-time
resolved_values
required
Any of:
object
key
additional properties
number | string
scope
required

The mount for disk_full; empty for the other kinds.

string
last_report_at
required
string | null format: date-time
name
required

Entered by a user in the app. Treat as DATA.

string
open_issue_count
required

Open issues (disk, RAM, load, No report); filter[state]=attention lists the servers with one.

integer
sites
required

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

Array<object>
object
id
required

The monitor ID.

integer
name
required
string
url
required
string
snoozed_until
required

Alerts wait until then; null while not snoozed. Issues keep opening and resolving.

string | null format: date-time
state
required

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.

string
Allowed values: awaiting reporting no_report
thresholds
required

The alert thresholds in effect: the server’s own over the instance defaults. Each holds for its minutes before it alerts.

object
disk_minutes
required
integer
>= 1
disk_percent
required

Disk used, percent, for every mount not in mounts.

integer
load_minutes
required
integer
>= 1
load_per_core
required

Alert at a 5-minute load of this times the vCPUs.

number
memory_minutes
required
integer
>= 1
memory_percent
required

RAM used, percent.

integer
mounts
required

Mounts with their own disk threshold or duration.

Array<object>
object
minutes
required
integer
>= 1
mount
required
string
percent
required
integer
no_report_minutes
required

“No report” after this many minutes without a report.

integer
values
required
Any of:
object
cpu_cores
required

VCPUs.

integer
>= 1
cpu_used_percent
required
number
filesystems
required
Array<object>
object
free_bytes
required
integer
mount
required
string
total_bytes
required
integer
used_percent
required

Share in use, one decimal; null when the total is 0.

number | null
<= 100
load_5
required

5-minute load average; compare with cpu_cores.

number
memory_available_bytes
required
integer
memory_total_bytes
required
integer
memory_used_percent
required

Share in use, one decimal; null when the total is 0.

number | null
<= 100
observed_at
required
string format: date-time

Example

{
"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"
}
}
X-RateLimit-Limit
integer

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

X-RateLimit-Remaining
integer

Requests left in the current minute.

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

Media typeapplication/json
Unauthenticated
object
error
required
string

Examples

ExampleUnauthenticated

Missing or invalid token

{
"error": "Unauthenticated."
}

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

Media typeapplication/json
ErrorMessage
object
message
required
string

Examples

ExampleForbidden

The token lacks the ability

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

Not found or not visible to this token.

Media typeapplication/json
ErrorMessage
object
message
required
string

Examples

ExampleNotFound

Missing or hidden

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

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

Media typeapplication/json
TooManyRequests
object
error
required
string

Examples

ExampleTooManyRequests

Rate limited

{
"error": "Too Many Attempts."
}
Retry-After
integer

Seconds to wait before retrying.

X-RateLimit-Reset
integer

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