Hệ thống
Kiểm tra sống, thông tin key, thông tin máy chủ. · 4 endpoint
Kiểm tra API còn sống
GET
/api/v1/healthKhông cần API keyKhông cần key. Dùng cho uptime monitor.
Lệnh mẫu
bash
curl "http://127.0.0.1:9900/api/v1/health"Thông tin key đang dùng (scope, tài khoản được phép)
GET
/api/v1/meAPI key bất kỳLệnh mẫu
bash
curl "http://127.0.0.1:9900/api/v1/me" \
-H "Authorization: Bearer dpk_xxx"Phản hồi mẫu
json
{
"success": true,
"data": {
"kind": "apikey",
"id": "6f1c…",
"name": "Bot CSKH",
"scopes": [
"chat:read",
"chat:send"
],
"account_ids": [
"0501234567"
],
"rate_limit_per_min": 0,
"erp_role": "manager",
"allowed_ips": null
},
"request_id": "3f0c0b6e-6d0a-4b8e-9d1a-1d2f3a4b5c6d"
}Phiên bản, chế độ, workspace, trạng thái server/tunnel
GET
/api/v1/system/infoScope: settings:readLệnh mẫu
bash
curl "http://127.0.0.1:9900/api/v1/system/info" \
-H "Authorization: Bearer dpk_xxx"Danh mục scope và preset
GET
/api/v1/scopesKhông cần API keyLệnh mẫu
bash
curl "http://127.0.0.1:9900/api/v1/scopes"