Send OTP to new email for change

Sends OTP to a new email address for email change verification. Requires Authorization header.

Request

This endpoint expects an object.
emailstringRequiredformat: "email"
Email address for the user

Response

OTP sent successfully
successboolean
messagestring
expiresIndouble
OTP expiration time in seconds
otpstring

OTP code (only included in development mode for testing purposes)

Errors

400
Bad Request Error
429
Too Many Requests Error