Skip to content
ClickHouse Docs
ClickHouse DocsClickHouse Docs

ClickStack: List Roles

Beta
GET/v1/organizations/{organizationId}/services/{serviceId}/clickstack/roles

This endpoint is in beta. API contract is stable, and no breaking changes are expected in the future.

ClickStack: Retrieves all roles for the authenticated team, including predefined roles.

Authorizations

Path parameters

  • organizationIdstringrequired

    ID of the organization that owns the service.

    format: uuid
  • serviceIdstringrequired

    ID of the ClickStack service.

    format: uuid

Response

JSON

200

Successful response

JSON
  • statusoptionalnumber

    HTTP status code.

    Example: 200
  • requestIdoptionalstring

    Unique id assigned to every request. UUIDv4

    format: uuid
  • resultoptionalarray ofobject
    7 properties
    • idstringrequired

      Role ID.

      Example: "507f1f77bcf86cd799439011"
    • namestringrequired

      Role name.

      Example: "Read Only"
    • permissionsarray ofobjectrequired

      The CASL permissions granted by this role.

      5 properties
      • actionstringrequired

        The action this permission grants or denies.

        Example: "read"
      • subjectstringrequired

        The resource the action applies to.

        Example: "dashboard"
      • invertedoptionalboolean

        When true, the rule denies rather than grants the action.

        Example: false
      • integrationoptionalstring

        The integration the permission is scoped to.

        Example: "mongodb"
      • conditionsoptionalobject
    • isPredefinedbooleanrequired

      Whether this is an immutable predefined/system role.

      Example: false
    • descriptionoptionalstring

      Human-readable role description.

      Example: "Read-only access to all resources"
    • createdAtoptionalstring

      Creation timestamp.

      format: date-time
      Example: "2025-01-01T00:00:00.000Z"
    • updatedAtoptionalstring

      Last update timestamp.

      format: date-time
      Example: "2025-06-15T10:30:00.000Z"
Navigation