Skip to main content
GET
Get current user

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

Pattern: ^[a-f0-9]{24}$

Response

User retrieved successfully

id
string
required

MongoDB ObjectId of the user

Pattern: ^[a-f0-9]{24}$
Example:

"64f0c51e7fb3fc001234a001"

email
string<email>
required
Example:

"john.doe@example.com"

portfolios
object[]
required

Array of user's portfolios with holdings and target allocation

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
nationalities
string[]

Array of two-letter ISO country codes for user's nationality (citizenship)

Pattern: ^[A-Z]{2}$
Example:
employmentInfo
object

Employment and source of wealth information (optional)