openapi: 3.0.3
info:
  title: Local ticket triage (Abe)
  version: "0.1.0"
  description: |
    First-pass CS/billing triage for agents: queue, urgency, charged-twice.
    Unpaid calls return HTTP 402 (x402 / Base USDC). Settlement receive-side.
  contact:
    email: abeai@proton.me
servers:
  - url: https://weft-lac.vercel.app
paths:
  /api/triage-pay:
    get:
      summary: Payment terms (unpaid → 402)
      operationId: triagePayTerms
      responses:
        "402":
          description: Payment Required — 0.05 USDC on Base (eip155:8453) to payTo
    post:
      summary: Paid triage batch (unpaid → 402)
      operationId: triagePayBatch
      requestBody:
        required: false
        content:
          application/json:
            schema:
              type: object
              properties:
                tickets:
                  type: array
                  items:
                    type: object
                    properties:
                      text:
                        type: string
      responses:
        "402":
          description: Payment Required — amount 50000 (0.05 USDC), network eip155:8453
        "200":
          description: Paid batch result (after settlement)
