curl --request POST \
--url http://localhost:8080/cabinet/auth/email/change \
--header 'Content-Type: application/json' \
--data '
{
"new_email": "jsmith@example.com"
}
'{
"message": "<string>",
"new_email": "<string>",
"expires_in_minutes": 123
}Request email change.
For verified emails: sends a 6-digit verification code to the new email. For unverified emails: replaces the email directly and sends verification to the new address.
curl --request POST \
--url http://localhost:8080/cabinet/auth/email/change \
--header 'Content-Type: application/json' \
--data '
{
"new_email": "jsmith@example.com"
}
'{
"message": "<string>",
"new_email": "<string>",
"expires_in_minutes": 123
}Request to initiate email change.
New email address