Skip to content
Endpoint ManagementMarkdown

Endpoint Management API

Every endpoint Endpoint Management serves on your realm's host, by area, with the page that explains each.

AvailableAPI

Every call here is made on your realm’s own host with a realm administrator’s session, sent as the x-cvyuh-token cookie; Call the API shows how to get one.

Terminal window
curl https://foobar.cvyuh.com/api/v0/endpoint/ppm/v1 \
-H "Cookie: x-cvyuh-token=$CVYUH_SESSION"

Endpoint Management is administered through the realm’s endpoint settings. Reads need READ on them, and every change (a token, an action, a revoke, a removal) needs MODIFY:

PrivilegeHoldsCan
RealmOwnerREAD, MODIFYEverything on this page
RealmViewerREADList and read devices, and read the system inventory and settings; none of the changes on this page

Both reach the realm they’re held in and every realm beneath it. Realm administrators hold RealmOwner. To let someone else run the realm’s devices, put them in a group and grant the group RealmOwner, or RealmViewer to let them only look; see Delegated administration. A narrower privilege of your own can grant READ and MODIFY on the realm’s endpoint settings alone (Roles of your own). Only an administrator of the root realm can change the device cap.

A call without a session is answered 401; one without the privilege, 403.

MethodEndpointWhat it doesPage
POSThttps://foobar.cvyuh.com/api/v0/endpoint/ppm/v1/enrolment-tokensMake a one-time enrollment tokenDevice enrollment
GEThttps://foobar.cvyuh.com/api/v0/am/objects/v1/endpointSettings/endpointSettingsRead the device cap and the token lifetimeDevice limits
PATCHhttps://foobar.cvyuh.com/api/v0/am/objects/v1/endpointSettings/endpointSettingsChange the token lifetime (and, from the root realm, the device cap)Device limits

POST .../enrolment-tokens (spelled that way) takes { "ttlHours": <hours> }, optional, and answers 201 with { "token", "expiresAt" }, or 400 for a lifetime outside 1 hour to the realm’s setting.

MethodEndpointWhat it doesPage
GEThttps://foobar.cvyuh.com/api/v0/endpoint/ppm/v1List the realm’s devices, each with connectedDevice records
GEThttps://foobar.cvyuh.com/api/v0/endpoint/ppm/v1/{device}Read one device’s record, with its ETagDevice records
GEThttps://foobar.cvyuh.com/api/v0/endpoint/ppm/v1/{device}/connectedWhether the device’s session is live nowDevice records
POSThttps://foobar.cvyuh.com/api/v0/endpoint/ppm/v1/{device}/doRun an action on the device: report, status or restart-darHealth and actions
PUThttps://foobar.cvyuh.com/api/v0/endpoint/ppm/v1/{device}/agents/{agent}Record that an agent runs on the deviceDevice records
DELETEhttps://foobar.cvyuh.com/api/v0/endpoint/ppm/v1/{device}/agents/{agent}Take the agent off the deviceDevice records
PUThttps://foobar.cvyuh.com/api/v0/endpoint/ppm/v1/{device}/users/{user}Add a user to the device; made by the realm’s AI fleet when a user approves the device, not by administratorsAI governance sign-in
DELETEhttps://foobar.cvyuh.com/api/v0/endpoint/ppm/v1/{device}/users/{user}Take a user off the device; reserved for the AI fleet, which doesn’t call it yet, so a user once added stays listedAI governance sign-in

{device} is the device id, the record’s id. POST .../do takes { "kind": "report" } and answers { "id", "ok", "detail" } within 30 seconds; 503 when the device isn’t connected, and 504 when it didn’t answer in time.

The device’s System inventory is read through the security log’s API; see Detection & Response API.

MethodEndpointWhat it doesPage
PUThttps://foobar.cvyuh.com/api/v0/endpoint/ppm/v1/{device}/revocationRevoke the device: every stream it holds closesDevice revocation
DELETEhttps://foobar.cvyuh.com/api/v0/endpoint/ppm/v1/{device}/revocationRestore the deviceDevice revocation
DELETEhttps://foobar.cvyuh.com/api/v0/endpoint/ppm/v1/{device}Remove the device for good; answers 202Device removal

PUT .../revocation takes { "reason": "<text>" }, optional. All three take an optional If-Match with the record’s ETag, and answer 412 when the record changed since.

  • Your session is the only credential. Calls to the security log and the AI fleet are made on your own session. The short-lived credentials the realm uses behind them never leave the realm, and are revoked when your session ends.
  • Every change is on the audit trail. Changes to device records and to the endpoint settings are recorded with who made them; actions and reads are not. See What is recorded.
  • One device per call. Each call here acts on one device.