List API Keys
List the API keys for the current account.
/api/open/v1/keysEndpoint Overview
List the API keys for the current account.
Authentication
Authorization: Bearer <token>api_keys:readQuery Parameters
Number of records to return; the server enforces a safe maximum.
Response
List response that always returns object=list and a data array.
Resource array.
固定为 open_api.key。
API Key ID。
API Key 名称。
所属环境。
当前 Key 具备的 scopes。
Key 状态。
Token 前缀。
Token 后四位。
掩码后的 Token 展示值。
Creation time.
Updated time.
最近使用时间。
最近使用 IP。
最近使用的 User-Agent。
撤销时间。
Whether more results are available.
Common Errors
Missing or invalid Bearer token.
The current token hit a rate limit.
当前 API Key 不存在,或已被清理。
Notes
- 适合在 Agent 启动前读取当前账户已有的 Keys、它们所在环境、具备的 scopes 和最近使用信息。