Report device inventory
POST
/devices/inventory
const url = 'https://example.com/v1/devices/inventory';const options = { method: 'POST', headers: {'X-Device-Signature': 'example', 'Content-Type': 'application/json'}, body: '{"certificate":"example","clientTimestamp":"2026-04-15T12:00:00Z","agents":[{"agentType":"claude-code","displayName":"Claude Code","mcps":[{"name":"github","enabled":true,"transport":"stdio"}]}]}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://example.com/v1/devices/inventory \ --header 'Content-Type: application/json' \ --header 'X-Device-Signature: example' \ --data '{ "certificate": "example", "clientTimestamp": "2026-04-15T12:00:00Z", "agents": [ { "agentType": "claude-code", "displayName": "Claude Code", "mcps": [ { "name": "github", "enabled": true, "transport": "stdio" } ] } ] }'Reports the agents installed on the device and the MCP servers each is configured with. MCP entries include only name, enabled, and transport — never command, args, or env. Signed via the X-Device-Signature header.
Parameters
Section titled “Parameters”Header Parameters
Section titled “Header Parameters”X-Device-Signature
required
string
Base64 signature over the canonical payload, made with the device key
Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
object
certificate
required
PEM-encoded device certificate
string
clientTimestamp
required
string format: date-time
agents
required
Array<object>
object
agentType
string
Example
claude-codedisplayName
string
Example
Claude Codemcps
Array<object>
object
name
string
Example
githubenabled
boolean
transport
string
Responses
Section titled “Responses”Inventory accepted
Media typeapplication/json
object
success
boolean
deviceId
string format: uuid
agentsIn
integer
mcpsIn
integer
receivedAt
string format: date-time
Example generated
{ "success": true, "deviceId": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "agentsIn": 1, "mcpsIn": 1, "receivedAt": "2026-04-15T12:00:00Z"}Invalid payload or signature