Inline hook for disallowing certain type of user creation

We have an API that contains a lot of user information and domains that are whitelisted. We wanted to create an Inline hook or some other method through which we tell Okta whether or not we need to create that user or not.