cURL
curl --request POST \ --url https://local.auth.nhost.run/v1/user/email/change \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "newEmail": "john.smith@nhost.io", "options": { "redirectTo": "https://my-app.com/catch-redirection" } }'
"<string>"
JSON Web Token to authorize requests.
The body is of type object.
object
A verification email has been sent to the new email
The response is of type string.
string