Version 2.1.1792967583 · latest Download OpenAPI Markdown

Current user

The signed-in user views or edits their own profile, real-name verification and UI preferences.

meUser accountsAuthentication: User6 endpoints

Get current user

GET/api/v2/me
Authentication: User

Update profile

PUT/api/v2/me
Authentication: User

Request body application/json

FieldTypeRequiredDescription
emailstring— Email
email_codestring— Code sent to the new email (POST /verify-codes, purpose=bind); required when changing the email
login_ip_allowstring[]— Login IP allowlist (IPs or CIDRs); empty means no restriction
login_verifyLoginVerify— Second-factor login: none means not required; email / sms also require an email/SMS code at login (the platform must allow it and the address must be bound)
Values ["none","email","sms"]
phonestring— Phone number
phone_codestring— Code sent to the new phone number (POST /verify-codes, purpose=bind); required when changing the phone number

Get real-name verification status

GET/api/v2/me/certification
Authentication: User

Submit real-name verification

POST/api/v2/me/certification
Authentication: User

Request body application/json

FieldTypeRequiredDescription
id_numberstringRequired Masked ID number
real_namestringRequired Masked real name

Get preferences

GET/api/v2/me/preferences
Authentication: User

Update preferences

PUT/api/v2/me/preferences
Authentication: User

Current user object

FieldTypeRequiredDescription
balance_centsinteger— Account balance in cents, same as balance_cents of GET /users/{user_id}/account (0 when there is no account). Only present in the GET /users list, not in single-user responses
read-only
certifiedboolean— Whether real-name verification has passed
client_ipstring— Source IP of this request, derived the same way as the login IP allowlist check (what the allowlist compares is what is shown). Only present in GET /me and PUT /me
read-only
created_atstring— Created at
read-only
delegated_sessionboolean— Whether the current session was issued by superadmin sign-in or switch-to-user (if so, password, email, phone, login allowlist, login verification and real-name are read-only). Only present in GET /me and PUT /me
read-only
emailstring— Email
email_codestring— Code sent to the new email (POST /verify-codes, purpose=bind); required when changing the email
enabledboolean— Whether enabled
idinteger— Record ID
read-only
id_numberstring— Masked ID number
login_ip_allowstring[]— Login IP allowlist (IPs or CIDRs); empty means no restriction
login_verifyLoginVerify— Second-factor login: none means not required; email / sms also require an email/SMS code at login (the platform must allow it and the address must be bound)
Values ["none","email","sms"]
phonestring— Phone number
phone_codestring— Code sent to the new phone number (POST /verify-codes, purpose=bind); required when changing the phone number
providerstring— Real-name verification provider
real_namestring— Masked real name
reasonstring— Reason for failure
rolestring— Account role: admin or tenant
Values ["admin","tenant"]
statusstring— Verification status: none, pending, verified or failed
Values ["none","pending","verified","failed"]
totp_enabledboolean— Whether TOTP is enabled
totp_recovery_leftinteger— Number of unused TOTP recovery codes. Only present in GET /me and PUT /me when TOTP is enabled
read-only
updated_atstring— Updated at
read-only
urlstring— Verification URL the user must visit while pending (returned only on submission)
usernamestring— Username