Update the authenticated user's email (OTP-gated, requires confirmation link click)

Two-call flow with the same payload (only code differs). Empty code issues the OTP challenge to the current email. Populated code verifies the OTP and stages the email change — the new address is stored in email_confirmations with a 1-day expiry and a confirmation link is sent to it. The user's email is only swapped when the link is clicked.

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Body Params

Update-email payload (same shape for both calls; only code differs)

data
object
Responses

Language
Credentials
Bearer
JWT
URL
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json