Get a device's latest inventory snapshot
GET
/admin/devices/{id}/inventory
const url = 'https://example.com/v1/admin/devices/example/inventory';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://example.com/v1/admin/devices/example/inventory \ --header 'Authorization: Bearer <token>'Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”id
required
string
Responses
Section titled “Responses”The device’s agents and their MCPs
Media typeapplication/json
object
certificate
required
PEM-encoded device certificate
string
clientTimestamp
required
string format: date-time
agents
required
Array<object>
object
agentType
string
displayName
string
mcps
Array<object>
object
name
string
enabled
boolean
transport
string
Example
{ "agents": [ { "agentType": "claude-code", "displayName": "Claude Code", "mcps": [ { "name": "github", "transport": "stdio" } ] } ]}