Organization API › Roles
List the permission catalog
GET/api/v1/permissions
Every permission a role or a key can carry, split into service, resource and
action, with grantable saying whether the caller holds it.
org_id naming another organization is for a person signed in to the
console choosing which organization a new key is for; an API key answers
only for its own organization and gets 403 for any other.
Permission: none — any valid API key of the organization.
Authorization
Parameters
Query parameters
org_idstringThe key's own organization (org_…); any other is 403 for an API key.
Responses
200
The catalog.
dataarray of Permission requiredShow Permission properties
permissionstringservicestringresourcestringactionstringdeprecatedbooleanAn older name still accepted, no longer offered.grantablebooleanWhether the caller holds it, and so may put it in a role or on a key.
successboolean required
401
No API key was sent, or it is unknown, revoked or expired (UNAUTHORIZED).
errorobject requiredcodestring requiredMachine-readable code. Branch on this.messagestring requiredHuman-readable explanation.request_idstringThe response'sX-Request-ID; quote it to support.
403
org_id is not the key's own organization (FORBIDDEN).
errorobject requiredcodestring requiredMachine-readable code. Branch on this.messagestring requiredHuman-readable explanation.request_idstringThe response'sX-Request-ID; quote it to support.
429
Too many requests (RATE_LIMITED). Wait Retry-After seconds.
Retry-AfterintegerSeconds to wait.
errorobject requiredcodestring requiredMachine-readable code. Branch on this.messagestring requiredHuman-readable explanation.request_idstringThe response'sX-Request-ID; quote it to support.
500
Something went wrong on EvoHub's side (INTERNAL_ERROR). Retry later.
errorobject requiredcodestring requiredMachine-readable code. Branch on this.messagestring requiredHuman-readable explanation.request_idstringThe response'sX-Request-ID; quote it to support.
Example request
curl -X GET 'https://evohub.io/api/v1/permissions' \
-H 'Authorization: Bearer <TOKEN>'