The verification link sent to your new email address expires after 24 hours. If it expires before you confirm it, restart the process by calling
POST /users/me/email again.Email Change Flow
1
Initiate the Email Change
Call Response — 202 AcceptedNo response body is returned. A verification email has been queued to the new address.Error Responses
POST /users/me/email with your desired new email and your current password. The API verifies your password, checks that the new address is not already in use, and dispatches a verification email.POST /users/me/emailBefore sending this request, call GET /auth/csrf-token and include the returned token in the x-csrf-token header.Request Bodystring
required
The email address you want to switch to. Must be a valid email format and must not already be registered to another account.
string
required
Your current account password, used to re-authenticate the request.
2
Verify the New Email Address
Open the verification email that arrives at your new address and extract the token from the link, or copy it directly. Then call Response — 200 OKYour account email address is now updated to the new address. Future logins must use the new email.Error Responses
POST /users/me/email/verify with that token while still authenticated.POST /users/me/email/verifyYou must still be authenticated with the same session that initiated the change. Obtain a fresh CSRF token before this call.Request Bodystring
required
The opaque verification token from the email link. Single-use and expires after 24 hours.