Get Admin Info
3/10/26Less than 1 minute
Overview
Retrieve basic information about the administrator currently authenticated via a valid dynamic secret.
- Category: User Authentication → User Info
- Related APIs:
/user/login_admin_info/verify/get_secret_admin_password
HTTP Request
- Method:
GET - URL:
/user/info/get_admin_info
Authentication & Headers
This endpoint requires login and a valid dynamic admin secret:
- Headers:
Authorization: Bearer <token>
For the standard request header format, see API Reference → General Info → Status Codes & Conventions.
Request Parameters
This endpoint does not accept any query or body parameters.
All identity verification is done via:
- The
Authorizationtoken (current user) - The internal dynamic secret check (current admin)
Response
- Response Model:
AegisSpeed_server_responses_model_get_admin_info
Success Response
- HTTP Status:
200 OK - Body:
{
"status": 200,
"code": "10000",
"result": "获取成功",
"data": {
"admin_AegisSpeed_id": "AS000000",
"admin_nickname": "Admin"
}
}Response Fields
- status
int
Mirrors the HTTP status code. - code
string
Business status code."10000"means success. - result
string
Human‑readable message. - data
object- admin_AegisSpeed_id
string– Administrator's AegisSpeed ID. - admin_nickname
string– Administrator's nickname.
- admin_AegisSpeed_id
Error Codes
The following errors are returned directly by the backend:
| HTTP Status | Code | Description |
|---|---|---|
| 403 | 10002 | Server has not opened this API. |
| 401 | 10001 | Token has expired or is invalid. |
| 401 | 10004 | Dynamic secret has expired or is invalid. |
| 500 | 10003 | Failed to get admin info due to server error. |
Error Examples
1. API not enabled
{
"status": 403,
"code": "10002",
"result": "服务器未开放此接口",
"data": {}
}2. Invalid or expired token
{
"status": 401,
"code": "10001",
"result": "token 已过期或无效",
"data": {}
}3. Invalid or expired dynamic secret
{
"status": 401,
"code": "10004",
"result": "动态密令已过期或无效",
"data": {}
}4. Internal server error
{
"status": 500,
"code": "10003",
"result": "获取管理员信息失败,服务器内部错误",
"data": {}
}