List all roles available for an organization, including both global and organization-specific roles.
GEThttps://api.aitronos.com/v1/organizations/{organization_id}/roles
- organization_id
stringRequired- Organization ID (org_ prefixed string)
- include_global
booleanOptional- Include global roles in the response
- Default:
true
Array of Role objects.
Bash
- Bash
- Python
- JavaScript
curl "https://api.aitronos.com/v1/organizations/org_abc123/roles" \
-H "X-API-Key: $FREDDY_API_KEY"Response:
[
{
"id": "role_member",
"name": "Member",
"description": "Standard member with basic access",
"permissions": {},
"is_base_role": true,
"is_custom": false,
"organization_id": null
},
{
"id": "role_admin",
"name": "Admin",
"description": "Administrator with full access",
"permissions": {},
"is_base_role": true,
"is_custom": false,
"organization_id": null
},
{
"id": "role_owner",
"name": "Owner",
"description": "Organization owner with complete control",
"permissions": {},
"is_base_role": true,
"is_custom": false,
"organization_id": null
}
]{
"id": "role_abc123",
"name": "Admin",
"description": "Administrator with full access",
"permissions": {},
"is_base_role": true,
"is_custom": false,
"organization_id": null
}