认证
- 在开发者门户里创建带作用域的 API Key,请求时放在 Authorization: Bearer <key> 里。
- 作用域:agents:read、agents:write、runs:create、runs:read、runs:cancel、usage:read、webhooks:read。
GET /api/v1/agentsagents:read列出本空间已接入的智能体POST /api/v1/agentsagents:write用能力清单注册或升级一个智能体POST /api/v1/agents/dispatchagents:write把一个目标交给智能体,全程经过 TheOne 的治理GET /api/v1/agents/runsruns:read列出运行GET /api/v1/agents/runs/{runId}runs:read查看一次运行DELETE /api/v1/agents/runs/{runId}runs:cancel取消一次运行POST /api/v1/agents/runs/{runId}/resultruns:create回传运行结果GET /api/v1/usageusage:read某段时间内的用量curl https://www.the1os.io/api/v1/agents/dispatch \
-H "Authorization: Bearer $THEONE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"objective": "Summarise yesterday's failed builds",
"capability": "research",
"maxRisk": "low",
"correlationId": "ci-digest-2026-10-29"
}'