Get Admin (v1)
Get a single admin by ID.
Method & Path
GET /v1/admin/admins/:adminId
Description
Retrieves detailed information about a specific admin account.
Authentication
Required: Admin authentication with admins.manage permission.
Path Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
adminId | string | Yes | The admin ID |
Response 200 OK
{
"admin": {
"id": "507f1f77bcf86cd799439011",
"email": "admin@example.com",
"role": "admin",
"status": "active",
"name": "Admin Name"
},
"meta": {
"roles": ["super_admin", "admin", "support"],
"permissions": []
}
}
Common Errors
- 401 Unauthorized: Missing or invalid admin authentication token
- 403 Forbidden: Insufficient permissions
- 404 Not Found: Admin not found
- 500 Internal Server Error: Server error