Skip to main content
PATCH
Update current user

Body

application/json
display_name
enum<string> | null

Human-readable user display name. This is not a unique identifier.

Available options:
null
Example:

"John Doe"

profile_image_url
enum<string> | null

URL of the profile image for user. Can be a Base64 encoded image. Must be smaller than 100KB. Please compress and crop to a square before passing in.

Available options:
null
Example:

"https://example.com/image.jpg"

client_metadata
object | null

Client metadata. Used as a data store, accessible from the client side. Do not store information that should not be exposed to the client.

Example:
selected_team_id
enum<string> | null

ID of the team currently selected by the user

Available options:
null
Example:

"team-id"

totp_secret_base64
enum<string> | null

Enables 2FA and sets a TOTP secret for the user. Set to null to disable 2FA.

Available options:
null
Example:

"dG90cC1zZWNyZXQ="

primary_email
enum<string> | null

Primary email

Available options:
null
Example:

"johndoe@example.com"

Response

200 - application/json

Successful response

id
string
required

The unique identifier of the user

Example:

"3241a285-8329-4d69-8f3d-316e08cf140c"

primary_email_verified
boolean
required

Whether the primary email has been verified to belong to this user

Example:

true

signed_up_at_millis
number
required

The time the user signed up (identify) => (the number of milliseconds since epoch, January 1, 1970, UTC)

Example:

1630000000000

is_anonymous
boolean
required
is_restricted
boolean
required

Whether the user is in restricted state (has signed up but not completed onboarding requirements)

Example:

false

restricted_by_admin
boolean
required

Whether the user is restricted by an administrator. Can be set manually or by sign-up rules.

Example:

false

selected_team
object | null
primary_email
enum<string> | null

Primary email

Available options:
null
Example:

"johndoe@example.com"

display_name
enum<string> | null

Human-readable user display name. This is not a unique identifier.

Available options:
null
Example:

"John Doe"

client_metadata
object | null

Client metadata. Used as a data store, accessible from the client side. Do not store information that should not be exposed to the client.

Example:
client_read_only_metadata
object | null

Client read-only, server-writable metadata. Used as a data store, accessible from the client side. Do not store information that should not be exposed to the client. The client can read this data, but cannot modify it. This is useful for things like subscription status.

Example:
profile_image_url
enum<string> | null

URL of the profile image for user. Can be a Base64 encoded image. Must be smaller than 100KB. Please compress and crop to a square before passing in.

Available options:
null
Example:

"https://example.com/image.jpg"

selected_team_id
enum<string> | null

ID of the team currently selected by the user

Available options:
null
Example:

"team-id"

restricted_reason
object | null

The reason why the user is restricted (e.g., type: "email_not_verified", "anonymous", or "restricted_by_administrator"), null if not restricted

Example:

null

restricted_by_admin_reason
enum<string> | null

Public reason shown to the user explaining why they are restricted. Optional.

Available options:
null
Example:

null