GET
/
api
/
v1
/
permissions
/
import { SyllableSDK } from "syllable-sdk";

const syllableSDK = new SyllableSDK({
  apiKeyHeader: process.env["SYLLABLESDK_API_KEY_HEADER"] ?? "",
});

async function run() {
  const result = await syllableSDK.permissions.list();

  // Handle the result
  console.log(result);
}

run();
[
  {
    "name": "Agents",
    "description": "View agents, create and edit agent configurations, and delete agents.",
    "permissions": [
      {
        "name": "agents_read",
        "display_name": "View",
        "description": "Fetch agent information"
      }
    ]
  }
]

Authorizations

Syllable-API-Key
string
header
required

Response

200 - application/json

Successful Response

The response is of type PermissionGroupResponse · object[].