import os
from syllable_sdk import SyllableSDK
with SyllableSDK(
api_key_header=os.getenv("SYLLABLESDK_API_KEY_HEADER", ""),
) as ss_client:
res = ss_client.permissions.list()
# Handle response
print(res)
[
{
"name": "Agents",
"description": "View agents, create and edit agent configurations, and delete agents.",
"permissions": [
{
"name": "agents_read",
"display_name": "View",
"description": "Fetch agent information"
}
]
}
]
Get all available permissions in the system.
import os
from syllable_sdk import SyllableSDK
with SyllableSDK(
api_key_header=os.getenv("SYLLABLESDK_API_KEY_HEADER", ""),
) as ss_client:
res = ss_client.permissions.list()
# Handle response
print(res)
[
{
"name": "Agents",
"description": "View agents, create and edit agent configurations, and delete agents.",
"permissions": [
{
"name": "agents_read",
"display_name": "View",
"description": "Fetch agent information"
}
]
}
]
Successful Response
The response is of type PermissionGroupResponse · object[]
.