How can I call an external API from registration flow?

I have two questions :

  1. I need to call an external API with API keys after user registration occurs in Keycloak. How can I do it ? Can I use the registration flow and how

  2. I must include an external API response in the Keycloak registration API response. how can I do it?