Rotate Current API Key
轮转当前 Bearer Token 对应的 API Key,并返回新的明文 Token。
/api/open/v1/auth/rotateEndpoint Overview
轮转当前 Bearer Token 对应的 API Key,并返回新的明文 Token。
Authentication
Authorization: Bearer <token>access:writeResponse
固定为 open_api.auth.rotate。
API key information for the current Bearer token.
API Key ID。
API Key 名称。
所属环境。
当前 Key 具备的 scopes。
Key 状态。
Token 前缀。
Token 后四位。
掩码后的 Token 展示值。
Creation time.
Updated time.
最近使用时间。
最近使用 IP。
最近使用的 User-Agent。
撤销时间。
New raw token issued after rotation; returned only once.
Common Errors
Missing or invalid Bearer token.
The current token hit a rate limit.
当前 API Key 不存在,或已被清理。
Notes
- After rotation, the old token becomes invalid immediately. Persist the new token right away.