How can i create an api key for 1 routes?

hello people, how can i create an api key for 1 specific route
and continue answering the normal password login??

is not working login and password…
“TypeError: strapi.plugins.users-permissions.services.user.fetchAuthenticatedUser is not a function”
how can create token “api key” for specific route ???