Skip to content

Depot live

Registers the live-metrics WebSocket.

This page is generated from the Depot route table. Every operation carries the permission it needs and the anchor an agent can link to.

GETendpoint:readtenant facehosteditmspremoteIdempotentWebSocket

From an MSP console, prefix the path with /api/v1/clients/{clientID} to reach one client.

Source: [object Object]

liveMetrics subscribes the browser to one endpoint’s live samples for the life of the socket.

Every rejection happens BEFORE the upgrade so the caller gets a JSON problem document it can act on, rather than a socket that closes with no explanation.

NameInTypeRequiredDescription
agentIDpathstringYes
allowMeteredquerystringNo
intervalMsquerystringNo
processesquerystringNo
topNquerystringNo
StatusBodyDescription
101NoneSwitching protocols. The connection continues as a websocket; see x-outpost-transport.
401application/problem+json, ProblemDetailsNo signed-in identity.
403application/problem+json, ProblemDetailsThe identity does not hold endpoint:read.
404application/problem+json, ProblemDetailsEndpoint not found.
409application/problem+json, ProblemDetailsEndpoint is not connected, so it cannot stream live metrics.
500application/problem+json, ProblemDetailsNo client context in request.
503application/problem+json, ProblemDetailsLive metrics are not available.
Terminal window
# Sign in first. outpost_console is a session cookie, so send it with every request.
# This endpoint upgrades to a WebSocket. The sample shows the handshake only.
# This operation is idempotent. Repeating it does not repeat its effect.
curl -X GET 'https://depot.example.com/api/v1/endpoints/<agentID>/live?allowMetered=<allowMetered>&intervalMs=<intervalMs>&processes=<processes>&topN=<topN>' \
-H 'X-CSRF-Token: <csrf-token>' \
-H 'Accept: application/json' \
-b 'outpost_console=<console-session>'

Content is licensed CC BY 4.0. Code samples are MIT. Outpost and the Outpost mark are trademarks of Outpost Business Solutions, PBC and are not covered by either license.