How can we get list of users and roles using API endpoint?

we created a token with API access, attempting to get list of users and their role. However, some endpoint works and most don't.

Apologies if this is not the right place to ask, but if anyone has any insights feel free to share

API Key Works on endpoint

base url /api/health

API Key Doesnt work on endpoint

/api/version", /api/health", /api/session", /api/user/current", /api/dashboard", /api/card", /api/database", /api/collection", /api/permissions", /api/setting", /api/table", /api/alert"

/api/health is public

/api/session is to get a user session

it should work on any other endpoint