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

# Test All Rules

> Testa todas as regras ativas da instância sem executar ações reais.



## OpenAPI

````yaml openapi-v2 POST /router/test/{instance}
openapi: 3.0.3
info:
  title: ZapThinker API
  version: 2.1.1
servers:
  - url: https://api.zapthinker.com
security: []
paths:
  /router/test/{instance}:
    post:
      tags:
        - Router Controller
      summary: Test all routing rules (dry-run)
      description: Testa todas as regras ativas da instância sem executar ações reais.
      operationId: testAllRouterRules
      parameters:
        - name: instance
          in: path
          required: true
          description: Nome da instância
          schema:
            type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                content:
                  type: string
                remoteJid:
                  type: string
                fromMe:
                  type: boolean
                timestamp:
                  type: integer
              required:
                - content
                - remoteJid
      responses:
        '200':
          description: Resultado do teste com todas as regras avaliadas
          content:
            application/json:
              schema:
                type: object
                properties:
                  matched:
                    type: boolean
                  decision:
                    type: object
                  evaluatedRules:
                    type: array
                    items:
                      type: object
                      properties:
                        ruleId:
                          type: string
                        ruleName:
                          type: string
                        priority:
                          type: integer
                        matched:
                          type: boolean
                        failedConditions:
                          type: array
                          items:
                            type: string
      security:
        - ApiKeyAuth: []
components:
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: apikey
      description: Your authorization key header

````