Skip to content
Skip to Content

A server's live status

GET
/servers/{serverId}/status

Whether its agent is online, and what it last reported running against what OpenPanel wants it to run.

Authorization

bearer
headerAuthorizationBearer <token>

An API key (opk_…) or a CLI token (opc_…).

Path parameters

serverId*string

Response body

A server's live status

application/json
  1. response
serverId*string
Formatuuid
status*string
Value in"connecting""ready""failed""disconnecting""released"
agent*|

The OpenPanel agent on the server, once it is installed.

desiredRevision*|

The latest state OpenPanel wants the server to run.

observed*|

What the agent last reported.

Example request
curl "https://openpanel.sh/api/v1/servers/$SERVER_ID/status" \  -H "Authorization: Bearer $OPENPANEL_TOKEN"
Example response
{  "serverId": "10d2345a-e43d-463d-830e-4f5b19b60d41",  "status": "connecting",  "agent": {    "online": true,    "version": "string",    "lastSeenAt": "2019-08-24T14:15:22Z",    "enrolledAt": "2019-08-24T14:15:22Z"  },  "desiredRevision": 0,  "observed": {    "desiredRevision": 0,    "observedAt": "2019-08-24T14:15:22Z",    "state": null,    "metrics": null  }}