---
title: "List all conditional logic rules"
method: GET
path: "/workflows/{workflowId}/revisions/{revisionId}/logic-rules"
tags: ["Workflow Logic Rules"]
---

# List all conditional logic rules

`GET /workflows/{workflowId}/revisions/{revisionId}/logic-rules`

Returns a paginated list of conditional logic rules for a workflow revision, sorted by order tree.

## Path parameters

- `workflowId` string, required
- `revisionId` string, required

## Query parameters

- `_` string

## Response `200`

- PublicApiLogicRuleListResponse
  - `data` object[] — The list of resources returned by this request.
    - `id` string, required — The resource's ID.
    - `condition` object, required
      - `or` object[] — List of AND-groups; the OR-condition matches if any group matches.
        - `and` object[] — List of conditions that must all match (AND combined within a group).
          - `widgetId` string, required — The ID of the widget.
          - `operator` string, required — Comparison operator (e.g. `Is`, `IsNot`, `Contains`, `IsEmpty`).
          - `value` string — The option's stored value.
    - `action` 'Show' | 'Hide', required — What the rule does to its targets when conditions match. `Show` reveals tasks/widgets that are hidden by default. `Hide` conceals tasks/widgets that are visible by default.
    - `targets` object, required
      - `taskIds` string[] — IDs of the tasks this rule applies to.
      - `widgetIds` string[] — IDs of the widgets (form fields) this rule applies to.
    - `description` string — Optional human-readable description of what this rule does.
    - `links` object[] — Navigable HATEOAS links to related resources. Each entry has a `name` (RFC-5988 link relation like `self`, `edit`, `related`), an `href` URL, and a `type` (`Api` for callable endpoints, `App` for browser-facing URLs). Prefer following these `href` values over constructing URLs by hand.
      - `name` string, required — Standard link relation name (RFC 5988) indicating this link's role. Common values include `self`, `edit`, `related`, `previous`, `next`.
      - `href` string, required — URL of the linked resource.
      - `rel` 'Approval Task' | 'Approvals' | 'Assignees' | 'Comment' | 'Data Set Records' | 'Data Sets' | 'Form Field Values' | 'Subject Task' | 'Task' | 'Tasks' | 'Users' | 'Webhook' | 'Workflow' | 'Workflow Run' — Optional. The kind of resource this link points to (e.g. `Workflow`, `Task`, `Comment`).
      - `type` 'Api' | 'App', required — Whether this link targets an API endpoint or a Process Street app URL. `Api` — a callable API endpoint you can fetch directly. `App` — a browser-facing URL in the Process Street UI.
  - `links` object[] — Pagination links. When the result has more pages, look for an entry with `name: "next"` — its `href` is the URL to fetch the next page. Absence of `next` means there are no more pages. For single-resource responses this array is typically empty.
    - `name` string, required — Standard link relation name (RFC 5988) indicating this link's role. Common values include `self`, `edit`, `related`, `previous`, `next`.
    - `href` string, required — URL of the linked resource.
    - `rel` 'Approval Task' | 'Approvals' | 'Assignees' | 'Comment' | 'Data Set Records' | 'Data Sets' | 'Form Field Values' | 'Subject Task' | 'Task' | 'Tasks' | 'Users' | 'Webhook' | 'Workflow' | 'Workflow Run' — Optional. The kind of resource this link points to (e.g. `Workflow`, `Task`, `Comment`).
    - `type` 'Api' | 'App', required — Whether this link targets an API endpoint or a Process Street app URL. `Api` — a callable API endpoint you can fetch directly. `App` — a browser-facing URL in the Process Street UI.

## Other responses

- `default`

---

[API](https://skmtc.net/process/apis/process-street-public-api.md) · [All operations](https://skmtc.net/process/apis/process-street-public-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/process/process-street-public-api/revisions/6199a9464227/schema)
