AgentConnect
Computers

Register a computer

Called by the desktop daemon: exchanges a one-time registration token for an API key bound to one new Computer in the token’s organization, and names the Computer channel URL to dial with it. The key authenticates only the Computer channel. An unknown, spent or expired token is refused with 401.

POST
/v1/computers/register

请求主体

application/json

TypeScript 定义

在 TypeScript 中使用 request body 类型。

响应主体

application/json

application/json

curl -X POST "https://example.com/v1/computers/register" \  -H "Content-Type: application/json" \  -d '{    "token": "string",    "name": "string",    "os": "macos",    "osVersion": "string",    "session": "aqua",    "desktopDaemonVersion": "string",    "driverVersion": "string"  }'
{  "computerId": "string",  "orgId": "string",  "apiKeyId": "string",  "apiKey": "string",  "displayTail": "string",  "channelUrl": "string"}