跳转到主要内容
GET
cURL
使用此端点可列出属于已认证 CometAPI 账户的 API 密钥。最新创建的密钥会优先返回。
在以下位置生成具有 api_key:read 权限的个人访问令牌: 控制台 → 个人设置。将该令牌作为原始 Authorization 请求头值发送。请勿添加 Bearer 前缀。
出于安全考虑,key 字段包含无法用于认证模型请求的掩码 API 密钥。 请在您创建 API 密钥时保存来自 data.key 的完整 API 密钥。 创建 API 密钥. 如果未保存,请打开 控制台 → API 密钥. 找到您创建的 API 密钥,选择 复制,然后完成身份验证。

分页

API 密钥状态

返回字段

授权

Authorization
string
header
必填

Personal access token with the api_key:read permission, generated in CometAPI Console > Personal Settings. Send the raw token value; do not prefix it with Bearer.

查询参数

p
integer
默认值:1

Page number to return. Defaults to 1.

必填范围: x >= 1
page_size
integer
默认值:20

Number of keys per page. Values above 100 are capped at 100 by the backend.

必填范围: 1 <= x <= 100

响应

200 - application/json

Paginated API key list.

success
boolean
必填

Whether the operation succeeded.

message
string
必填

Status message. Empty on success.

data
object
必填

API key records and pagination details.

最后修改于 2026年10月26日