Hmm, I don't know enough to give you a confident answer yet. However, Ory does support customization of scopes and claims. You can set up a custom consent UI to adjust your identity management process to fit your needs. For more information, you can check out the [Ory Consent UI Documentation](
https://www.ory.sh/docs/oauth2-oidc/custom-login-consent/flow). As for calling an API with the user's email to determine custom claims, the provided extracts do not contain specific information on how to achieve this. I recommend checking the Ory documentation or reaching out to the Ory community for more specific guidance.