Revoke API Key
撤销指定 API Key。
/api/open/v1/keys/{key_id}/revokeEndpoint Overview
撤销指定 API Key。
Authentication
Authorization: Bearer <token>api_keys:writePath Parameters
要撤销的 API Key ID。
Response
固定为 open_api.key.revoke。
API key information after revocation.
API Key ID。
API Key 名称。
所属环境。
当前 Key 具备的 scopes。
Key 状态。
Token 前缀。
Token 后四位。
掩码后的 Token 展示值。
Creation time.
Updated time.
最近使用时间。
最近使用 IP。
最近使用的 User-Agent。
撤销时间。
Always true.
Common Errors
Missing or invalid Bearer token.
The current token hit a rate limit.
当前 API Key 不存在,或已被清理。
Notes
- 撤销后该 Key 立即不可用,适合停用集成、撤回共享环境访问,或清理废弃自动化。