curl --request POST \
--url https://api.example.com/cabinet/auth/email/change \
--header 'Authorization: Bearer <token>' \
--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 https://api.example.com/cabinet/auth/email/change \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"new_email": "jsmith@example.com"
}
'{
"message": "<string>",
"new_email": "<string>",
"expires_in_minutes": 123
}Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Request to initiate email change.
New email address