email-change-otp code that was sent to the new email address when the change was requested. On success, the identity's email-password auth method is updated to the new address and marked verified, and the identity's primary_email is updated to match.400. Failed attempts are tracked per auth method; after too many failures within a rolling window, further attempts are blocked with a 429 until the window elapses, regardless of whether the code supplied is actually correct. There must be a pending email change in progress for the identity (i.e. a prior request-email-change flow must have set a pending_auth_id) or this returns a 404.curl --location --request PATCH '/current-identity-email' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"code": "482913"
}'{
"message": "Request successful",
"status": "success",
"data": {
"primary_email": "jane.doe@newdomain.com"
}
}