A server's live status
GET
Whether its agent is online, and what it last reported running against what OpenPanel wants it to run.
bearerheader
AuthorizationBearer <token>An API key (opk_…) or a CLI token (opc_…).
serverId*stringA server's live status
application/json- response
serverId*stringFormat
uuidstatus*stringValue 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.
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 }}