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

# List Receipts

> Returns receipts for the authenticated tenant ordered by seq DESC, with optional AND-combined filters. Does NOT verify ED25519 signatures per row — call GET /v1/receipts/:id to verify a specific receipt. Use `cursor` (seq from the previous page) for cursor pagination; filters compose with the cursor. For control-scoped queries (e.g. all receipts proving eu_ai_act:art_12) use GET /v1/compliance/coverage/{framework}/controls/{controlId}/receipts. Receipts live in the hot analytics window (typically 7–30 days) until the WORM cold tier ships.



## OpenAPI

````yaml GET /v1/receipts
openapi: 3.0.0
info:
  title: Wardin API
  description: AI governance & observability platform — external REST API
  version: '1.0'
  contact: {}
servers: []
security: []
tags: []
paths:
  /v1/receipts:
    get:
      tags:
        - receipts
      summary: Query receipts (newest first, filterable)
      description: >-
        Returns receipts for the authenticated tenant ordered by seq DESC, with
        optional AND-combined filters. Does NOT verify ED25519 signatures per
        row — call GET /v1/receipts/:id to verify a specific receipt. Use
        `cursor` (seq from the previous page) for cursor pagination; filters
        compose with the cursor. For control-scoped queries (e.g. all receipts
        proving eu_ai_act:art_12) use GET
        /v1/compliance/coverage/{framework}/controls/{controlId}/receipts.
        Receipts live in the hot analytics window (typically 7–30 days) until
        the WORM cold tier ships.
      operationId: ReceiptsController_listReceipts
      parameters:
        - name: limit
          required: false
          in: query
          schema:
            example: 25
            type: number
        - name: cursor
          required: false
          in: query
          description: Exclusive seq upper bound for the next page
          schema:
            type: number
        - name: from
          required: false
          in: query
          description: RFC3339 lower ts bound (inclusive)
          schema:
            type: string
        - name: to
          required: false
          in: query
          description: RFC3339 upper ts bound (inclusive)
          schema:
            type: string
        - name: actor
          required: false
          in: query
          schema:
            type: string
        - name: provider
          required: false
          in: query
          schema:
            type: string
            example: anthropic
        - name: model
          required: false
          in: query
          schema:
            type: string
        - name: check
          required: false
          in: query
          description: A check name present on the receipt (e.g. GUARDRAIL)
          schema:
            type: string
        - name: upstreamStatus
          required: false
          in: query
          schema:
            example: ok
            type: string
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/RecentReceiptListDto'
        '400':
          description: Malformed from/to timestamp
      security:
        - bearer: []
components:
  schemas:
    RecentReceiptListDto:
      type: object
      properties:
        receipts:
          type: array
          items:
            $ref: '#/components/schemas/RecentReceiptEntryDto'
        nextCursor:
          type: number
          example: 40
          nullable: true
          description: >-
            Seq of the last returned receipt — pass as `cursor` to fetch the
            next page. null when this is the last page.
      required:
        - receipts
        - nextCursor
    RecentReceiptEntryDto:
      type: object
      properties:
        seq:
          type: number
          example: 42
        receiptId:
          type: string
          example: 018f1234-5678-7abc-def0-123456789abc
        requestId:
          type: string
          example: req-abc-123
        actor:
          type: string
          example: user@example.com
        provider:
          type: string
          example: anthropic
        model:
          type: string
          example: claude-3-5-sonnet-20241022
        promptTokens:
          type: number
          example: 1000
        completionTokens:
          type: number
          example: 250
        costUsd:
          type: number
          example: 0.00375
        checks:
          type: array
          items:
            $ref: '#/components/schemas/ReceiptCheckDto'
        ts:
          type: string
          example: '2026-07-02 12:00:00.000'
        kind:
          type: string
          enum:
            - model_call
            - tool_call
          example: model_call
          description: >-
            COMPLY-4: distinguishes an agent tool-call receipt (gateway
            /mcp/tool-call or /mcp/servers — provider = MCP server, model = tool
            name) from a model-inference receipt. NOT part of the signed
            canonical receipt — an unsigned, queryable side channel. Rows
            written before this column existed read back as model_call.
      required:
        - seq
        - receiptId
        - requestId
        - actor
        - provider
        - model
        - promptTokens
        - completionTokens
        - costUsd
        - checks
        - ts
        - kind
    ReceiptCheckDto:
      type: object
      properties:
        name:
          type: string
          example: policy
        result:
          type: string
          example: allow
      required:
        - name
        - result
  securitySchemes:
    bearer:
      scheme: bearer
      bearerFormat: JWT
      type: http

````