Pipavia Audit API

The audit API from Pipavia — 4 operation(s) for audit.

GitHub OpenAPI

Operations 4

GET /v1/receipts/{id} One call's audit receipt + chain proof (owner-scoped) #
GET /v1/audit/anchor Latest persisted signed chain-head checkpoint (anchor) #
GET /v1/audit/anchors Published anchor history for independent verification #
POST /v1/audit/verify Verify a receipt record against the chain (public, rate-limited) #

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/pipavia-com:pipavia-com-audit-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

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. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

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

OpenAPI Specification

pipavia-com-audit-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Conduit Router Audit API
  version: 1.5.0
  description: Policy-first BYOK model router. OpenAI-compatible surface plus a native signed-config API, an MCP server, receipts you can verify, and standing per-key policy (mandates). Provider keys are the caller's own, envelope-encrypted at rest, never logged.
  contact:
    name: Pipavia
    email: info@pipavia.com
    url: https://pipavia.com
  license:
    name: Proprietary (API terms at /llms.txt)
    url: https://router.pipavia.com/llms.txt
servers:
- url: https://router.pipavia.com
tags:
- name: Audit
paths:
  /v1/receipts/{id}:
    get:
      summary: One call's audit receipt + chain proof (owner-scoped)
      tags:
      - Audit
      security:
      - bearerAuth: []
      responses:
        '200':
          description: OK (SSE streams answer text/event-stream where noted)
        '400':
          description: Bad request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GatewayError'
        '401':
          description: Missing or unknown Conduit key
        '402':
          description: Budget or quota block (fail-closed, before any provider call)
        '429':
          description: Rate limited by the provider or the gateway
      operationId: getV1ReceiptsById
      x-operation-id-source: derived
  /v1/audit/anchor:
    get:
      summary: Latest persisted signed chain-head checkpoint (anchor)
      tags:
      - Audit
      responses:
        '200':
          description: OK (SSE streams answer text/event-stream where noted)
        '400':
          description: Bad request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GatewayError'
        '401':
          description: Missing or unknown Conduit key
        '402':
          description: Budget or quota block (fail-closed, before any provider call)
        '429':
          description: Rate limited by the provider or the gateway
      operationId: getV1AuditAnchor
      x-operation-id-source: derived
  /v1/audit/anchors:
    get:
      summary: Published anchor history for independent verification
      tags:
      - Audit
      responses:
        '200':
          description: OK (SSE streams answer text/event-stream where noted)
        '400':
          description: Bad request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GatewayError'
        '401':
          description: Missing or unknown Conduit key
        '402':
          description: Budget or quota block (fail-closed, before any provider call)
        '429':
          description: Rate limited by the provider or the gateway
      operationId: getV1AuditAnchors
      x-operation-id-source: derived
  /v1/audit/verify:
    post:
      summary: Verify a receipt record against the chain (public, rate-limited)
      tags:
      - Audit
      requestBody:
        required: true
        content:
          application/json:
            schema:
              anyOf:
              - $ref: '#/components/schemas/ReceiptRecord'
              - type: object
                properties:
                  receipt:
                    $ref: '#/components/schemas/ReceiptRecord'
                required:
                - receipt
              - type: object
                properties:
                  record:
                    $ref: '#/components/schemas/ReceiptRecord'
                required:
                - record
            example:
              receipt:
                seq: 34
                ts: '2026-10-13T00:00:00.000Z'
                key_id: trial_000000000000
                config_hash: 9f86d081884c7d659a2feaa0c55ad015a3bf4f1b2b0b822cd15d6c15b0f00a08
                provider: google
                model_requested: gemini-2.5-flash-lite
                model_served: null
                fallback_declared: false
                task_profile: null
                tokens:
                  prompt_tokens: 0
                  completion_tokens: 0
                cost_usd: 0
                router_charge_usd: 0
                latency_ms: 0
                outcome: provider_error
                prev_hash: e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855
                hash: 2e5ddf1dad7e048fcca61717d81951467ab2006614314b8b65b2a23b601202ba
      responses:
        '200':
          description: OK (SSE streams answer text/event-stream where noted)
        '400':
          description: Bad request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GatewayError'
        '401':
          description: Missing or unknown Conduit key
        '402':
          description: Budget or quota block (fail-closed, before any provider call)
        '429':
          description: Rate limited by the provider or the gateway
      operationId: postV1AuditVerify
      x-operation-id-source: derived
components:
  schemas:
    Meta:
      type: object
      description: Gateway provenance carried on every routed response.
      properties:
        request_id:
          type: string
        key_id:
          type:
          - string
          - 'null'
        provider:
          type:
          - string
          - 'null'
        model_requested:
          type:
          - string
          - 'null'
        model_served:
          type:
          - string
          - 'null'
        fallback_taken:
          type: boolean
        fallback_declared:
          type: boolean
        usage:
          type: object
          properties:
            prompt_tokens:
              type: integer
            completion_tokens:
              type: integer
        latency_ms:
          type: number
        receipt_id:
          type:
          - string
          - 'null'
          description: rcpt_<seq> — fetch it at GET /v1/receipts/{id}
        outcome:
          type:
          - string
          - 'null'
    ReceiptRecord:
      type: object
      description: One audit-chain receipt record — the object returned by GET /v1/receipts/{id} (its "receipt" field). Verification recomputes the record hash and checks the stored chain entry at seq; a receipt id alone is not verifiable and is refused with 400 bad_verify_payload.
      required:
      - seq
      - ts
      - key_id
      - config_hash
      - prev_hash
      - hash
      properties:
        seq:
          type: integer
        ts:
          type: string
        key_id:
          type: string
        config_hash:
          type: string
        provider:
          type:
          - string
          - 'null'
        model_requested:
          type:
          - string
          - 'null'
        model_served:
          type:
          - string
          - 'null'
        fallback_declared:
          type: boolean
        task_profile:
          type:
          - string
          - 'null'
        tokens:
          type: object
          properties:
            prompt_tokens:
              type: number
            completion_tokens:
              type: number
        cost_usd:
          type: number
        router_charge_usd:
          type: number
        latency_ms:
          type: number
        outcome:
          type: string
        prev_hash:
          type: string
        hash:
          type: string
    GatewayError:
      type: object
      properties:
        ok:
          type: boolean
          const: false
        error:
          type: object
          properties:
            status:
              type: integer
            code:
              type: string
            detail:
              type: string
          required:
          - status
          - code
          - detail
        _meta:
          $ref: '#/components/schemas/Meta'
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: A Conduit key (trial_… self-serve, or a registered key). Admin routes take the admin secret instead.