List rules
Returns complete company automation rules, including rules created in the UI, newest first with a descending internal-ID tie-breaker. Requires Accounting setup: View and API access: Manage. Global, internal/system, category-owned, and department-owned rules are excluded. For a company without departments, a department action is left out, and a rule whose only action sets a department is excluded. Conditions are a flat AND list; all must match. Only configured actions are returned. Legacy account and card_name text conditions retain their original case-insensitive matching; they are never guessed or converted to account_id/card_id. Optional category_id, department_id and tag_id filters return rules whose actions set that exact category, department or tag; account_id and card_id return rules with an account_id or card_id equals condition on that identity. Filters combine with AND and work with limit and starting_after. An empty filter value is ignored, as if omitted. There is no text or merchant search. This read does not assign IDs, run rules, or modify transactions. During an incomplete ID rollout or if a stored definition cannot be represented faithfully, returns 503 rules_not_ready rather than hiding a rule or changing its meaning. Retry later with backoff; persistent failures require operator attention. No public job or polling endpoint is involved.
Authorizations
Query Parameters
Pass next_cursor unchanged from the previous page. Omit for the first page. An unknown, deleted, invalid, or inaccessible cursor returns 404 resource_missing. Pagination is live, not a snapshot; rules inserted ahead of the cursor appear on a new traversal. The cursor is a position in the unfiltered list, so it stays valid if filters change between pages.
Only rules whose actions set this exact department, a dept_ ID from GET /departments; a parent department does not include its sub-departments. An unknown, foreign or malformed department returns 404 resource_missing. A company without departments gets 403 feature_disabled or plan_upgrade_required instead. See "Early access endpoints" under Errors.
^dept_[A-Za-z0-9]+$Response
A page of complete rules. Empty results have data [], has_more false, and next_cursor null.