Welcome, @gilice.
You don’t mean that you’re consuming the API to get api keys, but that you’re trying to do something with users?
This might help Reverse engineer the Discourse API.
But if you’re trying to get a user’s username, one way to do it is search the email address on the admin/users route.
It would help if you say what you’re trying to do.