删除 API Key

DELETE/v1/keys/{hash}

删除当前认证用户拥有的 API Key。

当某个 Key 不应再被使用时调用此接口。操作范围限制为当前认证用户自己的 Keys。

身份验证

Authorization Bearer

使用 Token360 API Key(sk-token360-...)或已登录用户 JWT。

路径参数

hashstringrequired

API Key hash 标识。

响应

deletedboolean

API Key 删除成功时为 true。

请求

Shell
1curl -X DELETE https://api.token360.ai/v1/keys/f01d52606dc8f0a8303a7b5cc3fa07109c2e346cec7c0a16b40de462992ce943 \
2  -H "Authorization: Bearer sk-token360-inf-..."

响应

JSON
1{
2  "deleted": true
3}
此页面对您有帮助吗?