billions-translator-90566
12/10/2025, 2:49 PMmagnificent-energy-493
traits.email.
◦ Sends a verification code/link to that new email.
4. You can configure “show verification UI after address change” so the user is immediately redirected to the verification screen instead of just seeing a success message.
5. You can use Ory Actions (webhooks) on the after verification trigger to call your backend once the email has been verified - your backend can then update its own user record and/or use the admin api to revoke sessions.
If you want to use a "custom" way with APIs you can create a new verification flow and submit it
# Create verification flow (native)
curl -H 'Content-Type: application/json' \
-H 'Accept: application/json' \
"https://$PROJECT_SLUG.projects.oryapis.com/self-service/verification/api"
Then:
# Submit verification flow to send code to the new email
curl -X POST \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-d '{"method":"code","email":"[email protected]"}' \
"https://$PROJECT_SLUG.projects.oryapis.com/self-service/verification?flow=<flow-id>"
and then use a after verification webhook Action to notify your backend and/or revoke sessions as described abovebillions-translator-90566
12/11/2025, 1:04 PMctx.identity.traits.email, correct?