Skip to main content
GET
Retrieve the current user

Authorizations

Authorization
string
header
required

Default authentication mechanism

Response

200 - application/json

Retrieve the current user for the authenticated team.

id
string<uuid>
required

Unique identifier of the user

Example:

"123e4567-e89b-12d3-a456-426614174000"

fullName
string
required

Full name of the user

Example:

"Jane Doe"

email
string<email>
required

Email address of the user

Example:

"jane.doe@acme.com"

avatarUrl
string<uri> | null
required

URL to the user's avatar image

Example:

"https://example.supabase.co/storage/v1/object/public/avatars/user.jpg"

locale
string | null
required

User's preferred locale for internationalization (language and region)

Example:

"en-US"

weekStartsOnMonday
boolean | null
required

Whether the user's calendar week starts on Monday (true) or Sunday (false)

Example:

true

timezone
string | null
required

User's timezone identifier in IANA Time Zone Database format

Example:

"America/New_York"

timezoneAutoSync
boolean | null
required

Whether to automatically sync timezone with browser timezone

Example:

true

timeFormat
number | null
required

User's preferred time format: 12 for 12-hour format, 24 for 24-hour format

Example:

24

dateFormat
enum<string> | null
required

User's preferred date format. Available options: 'dd/MM/yyyy', 'MM/dd/yyyy', 'yyyy-MM-dd', 'dd.MM.yyyy'

Available options:
dd/MM/yyyy,
MM/dd/yyyy,
yyyy-MM-dd,
dd.MM.yyyy,
null
Example:

"yyyy-MM-dd"

fileKey
string | null
required

Team file key (JWT token) for proxy/download access to team files. This compact JWT token contains the team ID and is shared by all team members. Use this token as the fk query parameter when accessing file endpoints (proxy, download). The token is team-scoped and provides access to files belonging to the user's team. Returns null if the user has no team.

Example:

"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ0ZWFtSWQiOiIxMjM0NTY3OC05YWJjLWRlZmctMTIzNC01Njc4OTBhYmNkZWYifQ.signature"

team
object | null
required

Team information that the user belongs to