Change Email

This endpoint is used to request a confirmation link that contains the token to change email.

post
Change email

https://api.vaultoro.com/v1/user/changeEmail
This endpoint is used to request a confirmation link to change email. When the user requests a confirmation link, an email containing a confirmation link is sent to the user's current email. If the user has enabled 2FA, OTP will be optional in the request body.
Request
Response
Request
Headers
Authentication
required
string
Bearer token
Body Parameters
otp
optional
string
If the user has enabled 2FA, this will be sent in body
password
required
string
User's existing password
newEmail
required
string
The new email that the user wants to have
Response
200: OK
Cake successfully retrieved.
{ "name": "Cake's name", "recipe": "Cake's recipe name", "cake": "Binary cake"}
404: Not Found
Could not find a cake matching this query.
{ "message": "Ain't no cake like that."}

​