Skip to main content

Get Current Admin (v1)

Method + Path

GET /v1/auth/admin/me

Actual backend path: /v1/auth/admin/me

Description

Get the current authenticated admin user's information.

Authentication

Required - JWT token in Authorization header

Headers

HeaderTypeRequiredDescription
AuthorizationstringYesBearer token: Bearer <token>

Response (200)

{
"admin": {
"id": "507f1f77bcf86cd799439011",
"email": "admin@example.com",
"roles": ["super-admin"],
"createdAt": "2024-01-15T10:00:00Z"
},
"meta": {
"accessTokenExpiresIn": "15m",
"refreshTokenExpiresIn": "7d"
}
}

Common Errors

  • 401 Unauthorized: Missing or invalid authentication token, or account no longer exists
  • 500 Internal Server Error: Server error