Auth0 Home Blog Docs

Setting an email verification server callback using Webhooks in Auth0



Here what we are currently trying to implement:

  1. User registers
  2. App requires that user validated his email to have full access
  3. User validates his email
  4. Auth0 triggers a callback to our server API

So for the step 4, we want to set up a callback to our own server API when a user verifies his email clicking on the link provided by the Auth0 default email: 

It will call our API: 

We tried to set up a hook but we cannot define a hook following an email verification. So my question is: is there a way to implement this on top of the Auth0 existing features? We don’t want to do this functionality using redirect URL.


There is no hook specific to that scenario; you may be able to consider if one of these extensions (Auth0 Management API Webhooks or Auth0 Authentication API Webhooks) can serve your needs. The extensions go through the audit logs and trigger webhooks upon finding certain log entries so it may be possible to detect the email verification action from the audit logs and react accordingly.

Have in mind that the above is not synchronous and I’m even unsure how the verification email gets surfaced to the audit logs so it may not be feasible.