Skip to main content

User

Endpoints for retrieving user profile data. All endpoints require authentication.

GET /v1/user/me

Returns the currently authenticated user's profile.

Headers

Authorization: Bearer <access_token>

Response

{
"status": 200,
"data": {
"id": "1234567890123456789",
"username": "a3f8k2m9x1b4",
"display_name": "John",
"email": "john@example.com",
"avatar_url": "",
"referral_code": "A1B2C3",
"preferences": {
"currency": "USD"
}
}
}

User Object

FieldTypeDescription
idstringSnowflake ID
usernamestringAuto-generated 12-character alphanumeric username
display_namestringName from the OAuth provider (or provided during Apple sign-in)
emailstringEmail from the OAuth provider
avatar_urlstringProfile image URL (empty string if not set)
referral_codestringUnique referral code for this user
preferencesobjectUser preferences (see below)

Preferences Object

FieldTypeDefaultDescription
currencystring"USD"Preferred display currency

Error Responses

StatusErrorCause
401UNAUTHORIZEDMissing or invalid access token
404NOT_FOUNDUser account no longer exists