---
title: "Get Count of Pipelines Accessible Via Access Rule"
method: POST
path: "/v1/pipeline/rules-check"
tags: ["Pipelines"]
---

# Get Count of Pipelines Accessible Via Access Rule

`POST /v1/pipeline/rules-check`

## Request

- Base URL: `https://api.tetrascience.com`
- URL: `https://api.tetrascience.com/v1/pipeline/rules-check`
- Auth: API key in header `ts-auth-token` and API key in header `x-org-slug`

## Request body

- PipelineAttributeRule
  - `filters` union, required
    - PipelineFilterLogicalConfig
      - `id` string
      - `value` PipelineFilterConfig[]
        - union
          - PipelineFilterLogicalConfig (recursive)
          - PipelineLabelFilter
            - `id` string
            - `operator` 'contains' | 'is' | 'is not' | 'exists' | 'does not exist', required
            - `value` union
              - …
            - `type` 'label', required
            - `label` string, required
      - `type` 'and' | 'or', required
    - FilterAllowAllConfig
      - `type` 'allow-all', required

## Response `200`

Success

- object
  - `pipelinesCount` integer, required

## Other responses

- `400`: Incorrect input provided
- `401`: Unauthorized

---

[API](https://skmtc.dev/tetrascience/apis/pipelines.md) - [All operations](https://skmtc.dev/tetrascience/apis/pipelines/llms.txt) - [OpenAPI document](https://skmtc.dev/tetrascience/apis/pipelines/revisions/e1d7d5790587?raw)
