---
title: "List pool rules"
method: GET
path: "/api/pool_rules"
tags: ["Pool"]
---

# List pool rules

`GET /api/pool_rules`

List pool rules.

## Response `200`

List of pool rules

- RestPoolRuleCollection
  - `poolRules` RestPoolRule[], required — List of pool rules.
    - `conditions` RestPoolRuleCondition[], required — Conditions that must be met for the rule to assign an attempt to a pool. If multiple conditions are specified, all conditions must be met.
      - union
        - object
          - `type` 'invocation_type' | 'project_name' | 'workflow_name' | 'workflow_type', required — Type of the condition.
          - `values` string[], required — Invocation types to match against. If multiple values are provided, the condition is met if the invocation type is one of the provided invocation types.
        - object
          - `operator` 'starts_with', required — Operator to use for matching the project name.
          - `type` 'invocation_type' | 'project_name' | 'workflow_name' | 'workflow_type', required — Type of the condition.
          - `values` string[], required — Values to match against the project name. If multiple values are provided, the condition is met if the project name matches one of the provided values.
        - object
          - `operator` 'starts_with', required — Operator to use for matching the workflow name.
          - `type` 'invocation_type' | 'project_name' | 'workflow_name' | 'workflow_type', required — Type of the condition.
          - `values` string[], required — Values to match against the workflow name. If multiple values are provided, the condition is met if the workflow name matches one of the provided values.
        - object
          - `type` 'invocation_type' | 'project_name' | 'workflow_name' | 'workflow_type', required — Type of the condition.
          - `values` string[], required — Workflow types to match against. If multiple values are provided, the condition is met if the workflow type is one of the provided workflow types.
    - `id` string, required — ID of the pool rule.
    - `poolId` string, required — ID of the pool that this rule assigns attempts to.
    - `priority` integer, required — Priority of the rule. Rules are evaluated in priority order, from the lowest value to the highest value. Multiple rules cannot have the same priority.

---

[API](https://skmtc.net/treasure/apis/treasure-workflow.md) · [All operations](https://skmtc.net/treasure/apis/treasure-workflow/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/treasure/treasure-workflow/revisions/4eedf1838ef4/schema)
