当前为2.0版本。官方API后端仅供内部使用!©2026 P.C.T.G All Rights Reserved.
注意:无法通过此方式查询token原文(raw)
Authorization: Bearer ********************
curl --location 'http://127.0.0.1:8000/api/admin/tokens/' \ --header 'Authorization: Bearer <token>'
{ "code": 200, "status": "success", "total": 2, "tokens": [ { "id": 1, "sha256hash": "50fe822a90fdd7f5cb7718dc87ec0547fa5cc8bda0016479d73171c5d66a5af2", "create_time": "2026-07-18T12:49:55", "creator_ip": "127.0.0.1", "valid_until": "2026-12-31T23:59:59", "whitelist_ips": [ "10.0.0.0/8", "192.168.1.10" ], "last_call_time": null }, { "id": 2, "sha256hash": "4c5dc9b7708905f77f5e5d16316b5dfb425e68cb326dcd55a860e90a7707031e", "create_time": "2026-07-18T12:49:55", "creator_ip": "127.0.0.1", "valid_until": null, "whitelist_ips": [], "last_call_time": "2026-07-18T12:59:08" } ] }