Hive Civilization Receipt Ledger API

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

Operations 5

Each operation below carries the questions people ask an LLM about it and the instructions they give an agent to run it. Generated by API Evangelist overlay

POST /v1/receipts Append an entry to the receipt ledger · Append To Ledger #
Ask an LLM
“How do I add a new signed entry to the append-only receipt ledger?”
“What event types and directions can a ledger entry have?”
Tell an agent
Append a {direction} {event_type} entry to the ledger.
Record a {direction} {event_type} of {amount_usdc} USDC for supermodel {supermodel_id} in the ledger.
GET /v1/receipts Search the receipt ledger · Query Ledger #
Ask an LLM
“Which ledger entries were recorded for a particular supermodel?”
“Can I filter the receipt ledger by event type, direction or minimum amount?”
Tell an agent
Show the latest receipt ledger entries.
List {direction} ledger entries of type {event_type} for supermodel {supermodel_id} over {min_amount} USDC.
GET /v1/receipts/summary Summarize the receipt ledger · Ledger Summary #
Ask an LLM
“What are the aggregate totals across the entire receipt ledger?”
“How much has flowed in and out overall according to the ledger?”
Tell an agent
Summarize the receipt ledger.
Give me aggregate stats for all ledger entries.
GET /v1/receipts/pubkey Get the ledger's signing public key · Ledger Pubkey #
Ask an LLM
“Which Ed25519 public key signs the receipt ledger entries?”
“Can I fetch the ledger key once and verify receipts offline?”
Tell an agent
Fetch the receipt ledger's public key.
Get the Ed25519 key I need to verify ledger entries offline.
GET /v1/receipts/verify/{seq} Verify one ledger entry's signature · Ledger Verify #
Ask an LLM
“How do I prove a specific ledger entry hasn't been tampered with?”
“Does ledger verification give me a proof an auditor can replay?”
Tell an agent
Verify ledger entry {seq}.
Produce a replayable signature proof for ledger sequence {seq}.

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: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:
    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
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    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
x-provenance:
  method: harvested
  publisher: Hive Civilization
  source: https://receipts.thehiveryiq.com/openapi.json
  note: split by refine-openapis from the provider's own published document, verified by fetch (openapi/_original/*.fetch.json);
    stamped by stamp-openapi-provenance.py (roadmap#793)