API Reference

current-user

1 endpoint

GET/api/v1/users/me

Get Current User

Get the currently authenticated user.

Query parameters

default_backendstring

default: "primary"

Responses

200Successful Response
FieldTypeDescription
uuid*string

User UUID

usernamestring | null

Username (set during onboarding)

first_namestring | null

First name (set during onboarding)

last_namestring | null

Last name

phone_numberstring | null

Phone number

avatar_image_file_urlstring | null

Avatar image URL

created_at*string (date-time)

Account creation timestamp

iam_user_idstring | null

IAM user ID (without 'iam:' prefix)

emailstring | null

Email address from auth provider

email_verifiedboolean | null

Whether email is verified

scopesstring[]

Granted permission scopes

wallet_addressstring | null

Primary wallet address

primary_card_identifierstring | null

Primary card identifier (e.g., NFC serial number)

profile_complete*boolean

Whether user has completed their profile setup

onboarding_requiredboolean

Whether user needs to complete onboarding

default: false

subscription*CurrentSubscriptionResponse

The user's subscription tier and entitlements

object · CurrentSubscriptionResponse

FieldTypeDescription
tier*string
display_name*string
status*string
started_at*string (date-time)
valid_untilstring (date-time) | null
entitlements*Entitlements

object · Entitlements

FieldTypeDescription
custom_backgroundsboolean

default: false

max_profilesinteger

default: 1

extrasobject
401Authentication failed
FieldTypeDescription
errors*object

Map of field names to error messages. Use '_root' for form-level errors.

message*string

Human-readable error summary

codestring | null

Machine-readable error code

403Insufficient permissions
FieldTypeDescription
errors*object

Map of field names to error messages. Use '_root' for form-level errors.

message*string

Human-readable error summary

codestring | null

Machine-readable error code

404Resource not found
FieldTypeDescription
errors*object

Map of field names to error messages. Use '_root' for form-level errors.

message*string

Human-readable error summary

codestring | null

Machine-readable error code

422Validation error
FieldTypeDescription
errors*object

Map of field names to error messages. Use '_root' for form-level errors.

message*string

Human-readable error summary

codestring | null

Machine-readable error code

Example request

curl -X GET "https://api.davi.social/api/v1/users/me" \
  -H "Authorization: Bearer <token>"