Hive Civilization Receipt Ledger API

The receipt-ledger API from Hive Civilization — 4 operation(s) for receipt-ledger.

Operations 5

POST /v1/receipts Append To Ledger #
GET /v1/receipts Query Ledger #
GET /v1/receipts/summary Ledger Summary #
GET /v1/receipts/pubkey Ledger Pubkey #
GET /v1/receipts/verify/{seq} Ledger Verify #

Documentation

Specifications

Other Resources

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

Discovery needs no key. Ratings and market analysis are Pro.

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. See our Privacy Policy and Terms.

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

OpenAPI Specification

thehiveryiq-com-receipt-ledger-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: HiveMorph v0.1 Receipt Ledger API
  description: 'Polymorphic agent runtime — single shape (Merchant), single supermodel (W2 MERCHANT). Three gates: NEED + YIELD + CLEAN-MONEY.'
  version: 0.1.0
tags:
- name: receipt-ledger
paths:
  /v1/receipts:
    post:
      tags:
      - receipt-ledger
      summary: Append To Ledger
      description: Append a new entry to the append-only receipt ledger (mock-signed).
      operationId: append_to_ledger_v1_receipts_post
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/LedgerAppendBody'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                type: object
                additionalProperties: true
                title: Response Append To Ledger V1 Receipts Post
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
    get:
      tags:
      - receipt-ledger
      summary: Query Ledger
      description: Query the receipt ledger with optional filters. Sorted newest-first.
      operationId: query_ledger_v1_receipts_get
      parameters:
      - name: event_type
        in: query
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: Event Type
      - name: supermodel_id
        in: query
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: Supermodel Id
      - name: direction
        in: query
        required: false
        schema:
          anyOf:
          - type: string
          - type: 'null'
          title: Direction
      - name: min_amount
        in: query
        required: false
        schema:
          anyOf:
          - type: number
            minimum: 0
          - type: 'null'
          title: Min Amount
      - name: limit
        in: query
        required: false
        schema:
          type: integer
          maximum: 1000
          minimum: 1
          default: 100
          title: Limit
      - name: offset
        in: query
        required: false
        schema:
          type: integer
          minimum: 0
          default: 0
          title: Offset
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                type: object
                additionalProperties: true
                title: Response Query Ledger V1 Receipts Get
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /v1/receipts/summary:
    get:
      tags:
      - receipt-ledger
      summary: Ledger Summary
      description: Aggregate stats over the full receipt ledger.
      operationId: ledger_summary_v1_receipts_summary_get
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                additionalProperties: true
                type: object
                title: Response Ledger Summary V1 Receipts Summary Get
  /v1/receipts/pubkey:
    get:
      tags:
      - receipt-ledger
      summary: Ledger Pubkey
      description: 'Return the Ed25519 public key used to sign every ledger entry.

        Any client can fetch this once and verify all subsequent receipts offline.'
      operationId: ledger_pubkey_v1_receipts_pubkey_get
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                additionalProperties: true
                type: object
                title: Response Ledger Pubkey V1 Receipts Pubkey Get
  /v1/receipts/verify/{seq}:
    get:
      tags:
      - receipt-ledger
      summary: Ledger Verify
      description: 'Offline-style verification: pulls entry {seq}, re-canonicalises the body,

        and verifies the Ed25519 signature against the published pubkey.

        Returns a JSON proof an auditor can replay.'
      operationId: ledger_verify_v1_receipts_verify__seq__get
      parameters:
      - name: seq
        in: path
        required: true
        schema:
          type: integer
          title: Seq
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                type: object
                additionalProperties: true
                title: Response Ledger Verify V1 Receipts Verify  Seq  Get
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    LedgerAppendBody:
      properties:
        event_type:
          type: string
          title: Event Type
          description: affordance | bus_offer | bus_pickup | chain_run | manual
        supermodel_id:
          anyOf:
          - type: string
          - type: 'null'
          title: Supermodel Id
        supermodel_name:
          anyOf:
          - type: string
          - type: 'null'
          title: Supermodel Name
        amount_usdc:
          type: number
          minimum: 0.0
          title: Amount Usdc
          default: 0.0
        direction:
          type: string
          title: Direction
          description: INBOUND | OUTBOUND | INTERNAL
        ref_id:
          anyOf:
          - type: string
          - type: 'null'
          title: Ref Id
        ref_type:
          anyOf:
          - type: string
          - type: 'null'
          title: Ref Type
        parent_receipt_hash:
          anyOf:
          - type: string
          - type: 'null'
          title: Parent Receipt Hash
        metadata:
          additionalProperties: true
          type: object
          title: Metadata
      type: object
      required:
      - event_type
      - direction
      title: LedgerAppendBody
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
            - type: string
            - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
        input:
          title: Input
        ctx:
          type: object
          title: Context
      type: object
      required:
      - loc
      - msg
      - type
      title: ValidationError