Handle email confirmation

I have a question about email confirmation.
We have a workflow where we need to run action on our backend side when user confirm his email.
I thought we can do it by using Redirect Url in email templates but the request to our API do not contain user id or email. Is here any way how to include it, or what is a typical workaround?

Thank you