GitDealFlow Rules API

Create, list, and delete spend-policy rules

Operations 3

GET /api/rules List all spend rules #
POST /api/rules Add a spend rule #
DELETE /api/rules/{rule_id} Delete a spend rule #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/sipi:sipi-rules-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

sipi-rules-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: sipi.bot — Spend Firewall for AI Agents Rules API
  description: 'sipi.bot sits in front of every transaction an autonomous AI agent attempts and evaluates it against your spend rules — per-transaction caps, daily totals, velocity (runaway-loop protection), merchant allow/block, category limits, time windows, and approval thresholds. It returns APPROVED, BLOCKED, or FLAGGED with a deterministic rules check, before a single dollar moves. Every decision is written to a queryable audit log.


    **The core call an agent makes before spending:** `POST /v1/transactions/evaluate`.


    Auth is optional only for the public evaluation sandbox. Pass `Authorization: Bearer ` for an isolated paid or operator-created workspace. Dashboard and control-plane routes require authentication.'
  version: 0.1.0
  contact:
    name: sipi.bot
    url: https://sipi.bot
    email: sales@sipiteno.com
  license:
    name: MIT
    url: https://github.com/kindrat86/sipi-bot/blob/main/LICENSE
  termsOfService: https://sipi.bot/terms
servers:
- url: https://sipi.bot
  description: Production
security:
- BearerAuth: []
tags:
- name: Rules
  description: Create, list, and delete spend-policy rules
paths:
  /api/rules:
    get:
      tags:
      - Rules
      summary: List all spend rules
      operationId: listRules
      responses:
        '200':
          description: Rules list.
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/Rule'
    post:
      tags:
      - Rules
      summary: Add a spend rule
      operationId: addRule
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/RuleCreate'
      responses:
        '200':
          description: Created rule.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Rule'
  /api/rules/{rule_id}:
    delete:
      tags:
      - Rules
      summary: Delete a spend rule
      operationId: deleteRule
      parameters:
      - name: rule_id
        in: path
        required: true
        schema:
          type: string
      responses:
        '200':
          description: Deletion result.
          content:
            application/json:
              schema:
                type: object
                properties:
                  deleted:
                    type: boolean
components:
  schemas:
    Rule:
      type: object
      properties:
        id:
          type: string
          example: r_per_transaction_500
        rule_type:
          type: string
          enum:
          - per_transaction
          - daily_total
          - velocity
          - merchant_block
          - merchant_allow
          - category_limit
          - time_window
          - approval_threshold
          description: The rule check to apply.
        params:
          type: object
          description: Rule-type-specific parameters.
          example:
            max_amount: 500
        action:
          $ref: '#/components/schemas/Decision'
        priority:
          type: integer
          default: 100
          description: Higher priority rules are evaluated first. First BLOCK wins.
        enabled:
          type: boolean
          default: true
        label:
          type: string
          description: Optional human label used as the reason when the rule trips.
        agent_id:
          type:
          - string
          - 'null'
          description: Scope this rule to a specific agent. null = global.
    Decision:
      type: string
      enum:
      - APPROVED
      - BLOCKED
      - FLAGGED
      description: APPROVED = pass all rules. BLOCKED = violates a hard rule, no money moves. FLAGGED = allowed but crosses an approval threshold, routed to the human queue.
    RuleCreate:
      type: object
      required:
      - rule_type
      properties:
        rule_type:
          type: string
          enum:
          - per_transaction
          - daily_total
          - velocity
          - merchant_block
          - merchant_allow
          - category_limit
          - time_window
          - approval_threshold
        params:
          type: object
          description: Rule-type-specific parameters.
          example:
            max_amount: 500
        action:
          $ref: '#/components/schemas/Decision'
          default: BLOCKED
        priority:
          type: integer
          default: 100
        label:
          type: string
          default: ''
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer
      description: A checkout-issued or operator-created API key. ADMIN_TOKEN is accepted only for operator control-plane access.
externalDocs:
  description: Agent card (A2A discovery)
  url: https://sipi.bot/.well-known/agent-card.json