跳轉到主要內容
GET
cURL
使用此端點可列出屬於已驗證 CometAPI 帳戶的 API 金鑰。最新的金鑰會優先傳回。
請在以下位置產生具有 api_key:read 權限的個人存取 Token: Console → 個人設定。將 Token 作為原始 Authorization 標頭值傳送。請勿加上 Bearer 前綴。
為了安全起見,key 欄位包含無法用於驗證模型請求的遮罩 API 金鑰。 當您建立 API 金鑰時,請從 data.key 儲存完整的 API 金鑰 建立 API 金鑰. 如果您未儲存,請開啟 Console → 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日