蜂桥AI蜂桥AI
API 参考
管理接口安全验证
⚠️合规提示:本项目仅用于合法授权的 API 网关、内部管理和私有化部署场景。请遵守上游服务条款、平台规则、监管要求和内容安全要求。

验证身份并申请操作证明

按 scope 采用严格的操作上下文。access_token.generate 必须恰好包含 scopes 与 expires_at,缺失、空对象或额外字段返回 SECURITY_CONTEXT_INVALID。

业务失败时 success=false。错误码可能位于顶层 code 或 data.code;HTTP 200 也可能表示验证未通过。

POST
/api/verify
AuthorizationBearer <token>

必须使用密码或 OAuth 登录后返回的会话 access_token;PAT 不能管理或创建 PAT。

位置:header

methodstring
允许值"password" | "2fa"
scopestring
context
password?string
password_encrypted?string
encryption_key_id?string
code?string

响应体

application/json

application/json

application/json

application/json

application/json

curl -X POST "https://api.beeaicloud.com/api/verify" \  -H "Content-Type: application/json" \  -d '{    "method": "password",    "scope": "access_token.generate",    "context": {      "scopes": [        "string"      ],      "expires_at": 0    }  }'
{
  "success": true,
  "message": "string",
  "data": {
    "proof_token": "string",
    "expires_at": 0,
    "method": "string",
    "scope": "string"
  }
}
{
  "success": false,
  "message": "string",
  "code": "string",
  "data": {
    "code": "string"
  }
}
{
  "success": false,
  "message": "string",
  "code": "string",
  "data": {
    "code": "string"
  }
}
{
  "success": false,
  "message": "string",
  "code": "string",
  "data": {
    "code": "string"
  }
}
{
  "success": false,
  "message": "string",
  "code": "string",
  "data": {
    "code": "string"
  }
}

这篇文档对您有帮助吗?

验证身份并申请操作证明 | 蜂桥AI