Skip to main content
GET
/
users
/
me
Get current user
curl --request GET \
  --url https://{host}/users/me \
  --header 'Authorization: Bearer <token>' \
  --header 'x-user-id: <x-user-id>'
{
  "id": "64f0c51e7fb3fc001234a001",
  "email": "john.doe@example.com",
  "firstName": "John",
  "lastName": "Doe",
  "dateOfBirth": "1990-05-15",
  "residencyCountry": "GR",
  "language": "en",
  "portfolios": [
    {
      "id": "64f0c51e7fb3fc001234def0",
      "currency": "EUR",
      "holdings": [
        {
          "isin": "US0378331005",
          "assetCommonId": "equities_apple",
          "quantity": 12.5
        }
      ],
      "createdAt": "2024-03-01T10:00:00.000Z",
      "updatedAt": "2024-07-10T12:00:00.000Z"
    }
  ],
  "address": {
    "line1": "15 Ermou Street",
    "line2": "Apartment 4B",
    "city": "Athens",
    "postalCode": 10563,
    "countryCode": "GR"
  },
  "taxResidency": {
    "countryCode": "GR",
    "proofType": "TIN",
    "value": "123456789"
  },
  "createdAt": "2024-10-03T10:30:00Z",
  "updatedAt": "2024-10-03T10:30:00Z"
}

Authorizations

Authorization
string
header
required

Auth0-issued access token that includes the scopes listed for the endpoint.

Headers

x-user-id
string
required

MongoDB ObjectId of the authenticated user

Response

User retrieved successfully

id
string
required

MongoDB ObjectId of the user

Example:

"64f0c51e7fb3fc001234a001"

email
string<email>
required
Example:

"john.doe@example.com"

portfolios
object[]
required

Array of user's portfolios with holdings

createdAt
string<date-time>
required

Timestamp when the user was created

Example:

"2024-10-03T10:30:00Z"

updatedAt
string<date-time>
required

Timestamp when the user was last updated

Example:

"2024-10-03T10:30:00Z"

firstName
string
Example:

"John"

lastName
string
Example:

"Doe"

dateOfBirth
string<date>
Example:

"1990-05-15"

residencyCountry
string
Example:

"GR"

language
enum<string>

User's preferred language. Valid values are "en" (English) or "el" (Greek).

Available options:
en,
el
Example:

"en"

address
object
taxResidency
object