Skip to content
Last updated

Get list of available roles for the organization.

GET/v1/organizations/{organization_id}/roles

organization_id string required

Organization ID

Returns

Returns a list of available roles.

Notes

  • Includes both base roles and organization-specific roles
  • Only returns active roles

Authorization

Requires Admin or Owner role.

Bash
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"
    }
  ]
}