---
title: "List all spend rules"
method: GET
path: "/api/rules"
tags: ["Rules"]
---

# List all spend rules

`GET /api/rules`

## Request

- Base URL: `https://sipi.bot`
- URL: `https://sipi.bot/api/rules`
- Auth: HTTP bearer

## Response `200`

Rules list.

- Rule[]
  - `id` string
  - `rule_type` 'per_transaction' | 'daily_total' | 'velocity' | 'merchant_block' | 'merchant_allow' | 'category_limit' | 'time_window' | 'approval_threshold': The rule check to apply.
  - `params` object: Rule-type-specific parameters.
  - `action` 'APPROVED' | 'BLOCKED' | 'FLAGGED': APPROVED = pass all rules. BLOCKED = violates a hard rule, no money moves. FLAGGED = allowed but crosses an approval threshold, routed to the human queue.
  - `priority` integer: Higher priority rules are evaluated first. First BLOCK wins.
  - `enabled` boolean
  - `label` string: Optional human label used as the reason when the rule trips.
  - `agent_id` string, nullable: Scope this rule to a specific agent. null = global.

---

[API](https://skmtc.dev/sipi/apis/sipi-bot-spend-firewall-for-ai-agents.md) · [All operations](https://skmtc.dev/sipi/apis/sipi-bot-spend-firewall-for-ai-agents/llms.txt) · [OpenAPI document](https://skmtc.dev/sipi/apis/sipi-bot-spend-firewall-for-ai-agents/revisions/fe7b88ac5722?raw)
