How do I Call Authentication API from Pre User Registration Hook with a Certain User or scope

From a hook I am calling the Authentication API to get a Bearer Token so I can all another C# Web.API to get a UserID from my system. This is all fine and dandy, but I want to put a certain scope on this endpoint so it can only be called this way. I don’t want any authenticated user to be able to call this endpoint, just the hook through a claim or a certain user. So my question is how do I use the Authentication API to get a token for only a specific user (I will set up an admin user with a certain scope or claim)? This may me a basic question, but I have only played with Auth0 for a week now, so I am a newbie. I will keep looking in the documentation for the answer.

Hey there!

Sorry for such delay in response! We’re doing our best in providing the best developer support experience out there, but sometimes the number of incoming questions is just too big for our bandwidth. Sorry for such inconvenience!

Do you still require further assistance from us?