GET /users/me

Get current user

Users

Description

Retrieve information about the currently authenticated user.

Authentication Required: User must be authenticated.

Responses

200 User retrieved successfully
application/json
statusstring
Example: success
messagestring
Example: User retrieved successfully
dataobject
Example:
{
  "status": "success",
  "message": "User retrieved successfully",
  "data": {
    "id": 1,
    "email": "[email protected]",
    "first_name": "John",
    "last_name": "Doe",
    "roles": [],
    "feature_flags": [
      "affiliate"
    ],
    "notifications": [
      "email_new_transaction",
      "push_new_transaction"
    ],
    "status": "active",
    "locale": "en",
    "created_at": "2024-01-15T10:30:00Z"
  }
}
401 Authentication required
application/json
Example:
{
  "status": "error",
  "message": "Not authenticated or insufficient permissions"
}