OpenapiAuth
Request to change the email address for the authenticated user
Sends a confirmation link to the new email address. The link points to the first-party frontend confirm page, which the user must open in their logged-in browser so the frontend can call the confirm endpoint with the current session. Returns 400 when the realm has no usable email channel.
POST
Sends a confirmation link to the new email address. The link points to the first-party frontend confirm page, which the user must open in their logged-in browser so the frontend can call the confirm endpoint with the current session. Returns 400 when the realm has no usable email channel.
realmId*stringRealm ID
application/json- body
newEmail*stringreauthToken*stringFresh re-authentication ticket obtained from /api/user/reauth/verify.
Change email request accepted.
application/json- response
message*stringcurl -X POST 'https://example.com/api/auth/string/change_email/request' \
-H 'Content-Type: application/json' \
-d '{
"newEmail": "string",
"reauthToken": "string"
}'Example Response
{
"message": "string"
}