palbaseDocs

Palbase Auth API · API

GET/admin/roles

List roles

Returns every application role with its permissions and the number of users holding it.

Called by your server, with the project's secret key.

curl
curl -X GET "https://<your-ref>.palbase.studio/admin/roles" \
  -H "apikey: $PALBASE_SECRET_KEY"

Responses

200The roles

400Validation failed or required field missing

401Missing, invalid, or expired credentials

403Authenticated but not permitted (banned, hook denial, role mismatch)

503Downstream dependency unavailable (typically HIBP / breach service)

defaultAn error: the envelope names it (`error`) and explains it (`error_description`).

Operation AdminListRoles of auth's contract.