Skip to content

委托授权 API ​

由 scripts/generate-api-docs.ts 自动生成 —— 请勿手改 共 3 个端点

GET /grants ​

列出我的委托授权(含已用额度)

响应 ​

状态码说明
200

POST /grants ​

创建委托授权(额度 / 单笔上限 / Skill 白名单 / 自动验收阈值)

请求体 ​

json
{
  "$ref": "#/components/schemas/CreateGrantDto"
}

响应 ​

状态码说明
201

DELETE /grants/{grantId} ​

吊销委托授权(立即生效)

请求参数 ​

参数名位置类型必填说明
grantIdpathstring✅

响应 ​

状态码说明
200

Released under the MIT License.