🎉 TJUClaw 0.1 已发布:智能体可接入 MCP 服务与技能,查看更新日志 →
TJUClaw 2026
POST/cli/device

无需登录。返回只给 CLI 的 device_code,以及给人在网页上确认的 user_code(10 分钟内有效)。

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

curl -X POST "https://example.com/cli/device" \  -H "Content-Type: application/json" \  -d '{}'
{  "device_code": "string",  "user_code": "string",  "verification_uri": "http://example.com",  "verification_uri_complete": "http://example.com",  "expires_in": 0,  "interval": 0}