Confirm an email-address change
/v1/auth/confirm-email-changeCompletes an email change using the token from the confirmation link. No sign-in is needed, because the token itself proves the request. The pending address becomes the account's email immediately and is marked verified, the token is used up, and existing sessions stay signed in. Refuses an unknown or already used token with 400 (auth.invalid_verification_token), an expired one with 400 (auth.verification_token_expired), and with 409 (auth.email_change_in_use) when another user took the address after the request was made.
Request body
application/json
tokenstring Required The confirmation token from the email link
Responses
application/json
data *MessageResponseDto
application/json
error *ApiErrorBodyDto
application/json
error *ApiErrorBodyDto
Returned object
curl -X POST "https://auth.canopy-io.com/v1/auth/confirm-email-change" \ -H "Content-Type: application/json" \ -d '{ "token": "string" }'
{ "data": { "message": "string" } }
Tell us how we can improve this guide.