Skip to content
GET /permission

Lists the permission names a role may hold, with display labels. This is the source of truth for validating `permissions` on `POST /role` and `PATCH /role/{id}`. The catalog is per organization: it lists the permissions this organization may grant. Paged with `limit` and `cursor`; read every page for the whole catalog.

Response Body

next_cursorstring,null
prev_cursorstring,null
resultobject[]
descriptionstring
groupstring

Display section for a role editor, e.g. Connectors.

high_trustboolean

True when granting this permission lets its holder create something the organization’s own governance rules cannot bind afterwards. Today that is only connector:create: a connector is governed by who may use it, not by the destination it calls. Always present; show it wherever the permission is granted.

labelstring

Short human label.

namestring

Permission name, e.g. member:manage. This is what goes on a role.

curl -X GET 'https://api.elaichi.ai/permission' \
  -H 'Authorization: Bearer $ELAICHI_API_TOKEN' \
  -H 'Content-Type: application/json'
const response = await fetch('https://api.elaichi.ai/permission', {
  method: 'GET',
  headers: {
    'Authorization': 'Bearer ' + process.env.ELAICHI_API_TOKEN,
    'Content-Type': 'application/json',
  },
});

const data = await response.json();
console.log(data);
import os
import requests

url = "https://api.elaichi.ai/permission"
headers = {
    "Authorization": f"Bearer {os.environ['ELAICHI_API_TOKEN']}",
    "Content-Type": "application/json",
}

response = requests.get(url, headers=headers)
print(response.json())