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 or null
messagestring or null
expiresIndouble or null
OTP expiration time in seconds
otpstring or null

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

Errors