Skip to main content
GET
Get User Profile

Endpoints

GET /api/auth/me

Retrieves the authenticated user’s profile including service access information.

Request

Requires authentication via Bearer token.

Response

object
User profile object

PATCH /api/auth/me

Updates user profile information. Only provided fields are updated.

Request

string
New display name (1-100 characters). Optional.
string
Avatar URL or empty string to remove avatar. Must be valid URL if provided. Optional.
At least one field must be provided. Empty string for avatar removes the avatar.

Response

object
Updated user object (same structure as GET response)

Implementation Details

Code Reference

Status Codes

OK
Success
Bad Request
Validation error or no fields to update (PATCH only)
Unauthorized
Missing or invalid authentication token
Not Found
User not found (GET only)

Example Requests

GET Profile

PATCH Profile

Remove Avatar

Audit Events

  • USER_UPDATE: Profile updated (includes list of updated fields)

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Response

User profile

id
string
email
string<email>
username
string | null
displayName
string | null
avatar
string | null
twoFactorEnabled
boolean
createdAt
string<date-time>
serviceAccess
object[]