Get list of available roles for the organization.
GET/v1/organizations/{organization_id}/roles
organization_id string required
Organization ID
Returns a list of available roles.
- Includes both base roles and organization-specific roles
- Only returns active roles
Requires Admin or Owner role.
Bash
- Bash
- Python
- JavaScript
curl https://api.aitronos.com/v1/organizations/org_abc123/roles \
-H "X-API-Key: $FREDDY_API_KEY"Response:
{
"roles": [
{
"id": "role_abc123",
"name": "Owner"
},
{
"id": "role_def456",
"name": "Admin"
},
{
"id": "role_xyz789",
"name": "Member"
}
]
}