Chuyển đến nội dung chính
GET
cURL
Sử dụng endpoint này để liệt kê các API key thuộc tài khoản CometAPI đã xác thực. Các key mới nhất được trả về trước.
Tạo personal access token có quyền api_key:read tại Console → Personal Settings. Gửi token dưới dạng giá trị thô của header Authorization. Không thêm tiền tố Bearer.
Để bảo mật, trường key chứa API key đã được che, không thể dùng để xác thực yêu cầu model. Lưu API key đầy đủ từ data.key khi bạn tạo API key. Nếu chưa lưu, hãy mở Console → API Keys. Tìm API key bạn đã tạo, chọn Copy, rồi hoàn tất xác minh danh tính.

Phân trang

Trạng thái API key

Các trường được trả về

Ủy quyền

Authorization
string
header
bắt buộc

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.

Tham số truy vấn

p
integer
mặc định:1

Page number to return. Defaults to 1.

Phạm vi bắt buộc: x >= 1
page_size
integer
mặc định:20

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

Phạm vi bắt buộc: 1 <= x <= 100

Phản hồi

200 - application/json

Paginated API key list.

success
boolean
bắt buộc

Whether the operation succeeded.

message
string
bắt buộc

Status message. Empty on success.

data
object
bắt buộc

API key records and pagination details.

Lần sửa đổi cuối 26 tháng 10, 2026