> ## Documentation Index
> Fetch the complete documentation index at: https://docs.finzaria.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Transacciones que coincidirían con un filtro aún no guardado (10-reglas §5)



## OpenAPI

````yaml /openapi/v1.json get /v1/rules/preview
openapi: 3.0.0
info:
  title: Finzaria API
  description: >-
    API REST de Finzaria — finanzas personales para México, dev-first y
    agent-first. Autentícate con tu API key bxm_ (o un token OAuth).
  version: 1.0.0
  contact: {}
servers:
  - url: https://api.finzaria.com/v1
    description: Producción
security: []
tags: []
paths:
  /v1/rules/preview:
    get:
      tags:
        - rules
      summary: >-
        Transacciones que coincidirían con un filtro aún no guardado (10-reglas
        §5)
      operationId: RulesController_preview
      parameters:
        - name: matchType
          required: true
          in: query
          schema:
            type: string
            enum:
              - contains_phrase
              - contains_words
        - name: pattern
          required: true
          in: query
          schema:
            example: Oxxo
            type: string
        - name: limit
          required: false
          in: query
          schema:
            maximum: 200
            default: 50
            type: number
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/RuleMatchesDto'
      security:
        - bearer: []
components:
  schemas:
    RuleMatchesDto:
      type: object
      properties:
        items:
          type: array
          items:
            $ref: '#/components/schemas/RuleMatchDto'
        total:
          type: number
      required:
        - items
        - total
    RuleMatchDto:
      type: object
      properties:
        id:
          type: string
        date:
          type: string
        description:
          type: string
        amount:
          type: string
        currency:
          type: string
        type:
          type: string
      required:
        - id
        - date
        - description
        - amount
        - currency
        - type
  securitySchemes:
    bearer:
      scheme: bearer
      bearerFormat: JWT (Supabase Auth)
      type: http

````