Skip to main content

Current User

GET/admin/meOpen in the API playground →
Info

Returns details of the currently authenticated user.

Request

Authorizationstringheaderrequired

Bearer <token> - JWT access token


Response

idstring

User ID

emailstring

Email address

first_namestring

First name

last_namestring

Last name

rolestring

User role

statusstring

Account status (active, inactive, suspended)

phone_numberstring

Phone number

last_login_atstring

Last login timestamp (ISO 8601)

created_atstring

Account creation timestamp

pep_access_authorizedboolean

Whether user has PEP account access


Examples

Request
cURL
curl -X GET "https://demo.api.vultlocal.com/api/v1/admin/me" \
-H "Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9..."
Response
200 Success
{
"id": "123",
"email": "admin@smartpay.sl",
"first_name": "Admin",
"last_name": "User",
"role": "system_admin",
"status": "active",
"phone_number": "+23277123456",
"last_login_at": "2025-01-15T09:30:00Z",
"created_at": "2024-12-01T10:00:00Z",
"agent_id": null,
"pep_access_authorized": true
}
401 Unauthorized
{
"success": false,
"error": "Invalid or expired token",
"code": "UNAUTHORIZED"
}

Use Cases

  • Validate session on page load
  • Display user info in dashboard header
  • Check user permissions

Errors

StatusCodeDescription
401UNAUTHORIZEDNot authenticated or token expired
404NOT_FOUNDUser not found