curl -X GET "https://demo.api.vultlocal.com/api/v1/admin/me" \
-H "Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9..."
{
"id": "123",
"email": "admin@olive.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
}
{
"success": false,
"error": "Invalid or expired token",
"code": "UNAUTHORIZED"
}
Admin
Current User
Get current logged-in user details
GET
/
admin
/
me
curl -X GET "https://demo.api.vultlocal.com/api/v1/admin/me" \
-H "Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9..."
{
"id": "123",
"email": "admin@olive.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
}
{
"success": false,
"error": "Invalid or expired token",
"code": "UNAUTHORIZED"
}
Returns details of the currently authenticated user.
Request
string
required
Bearer <token> - JWT access tokenResponse
string
User ID
string
Email address
string
First name
string
Last name
string
User role
string
Account status (
active, inactive, suspended)string
Phone number
string
Last login timestamp (ISO 8601)
string
Account creation timestamp
boolean
Whether user has PEP account access
Examples
curl -X GET "https://demo.api.vultlocal.com/api/v1/admin/me" \
-H "Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9..."
{
"id": "123",
"email": "admin@olive.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
}
{
"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
| Status | Code | Description |
|---|---|---|
| 401 | UNAUTHORIZED | Not authenticated or token expired |
| 404 | NOT_FOUND | User not found |
Authorizations
API Key for third-party integrations (WhatsApp, Smart PAY, VULT). Format: 'Bearer olive_live_xxxxxxxxxxxxx'
Response
OK
For processors
For processors
"admin" or "processor"
⌘I