Hive Civilization Governance API

The governance API from Hive Civilization — 9 operation(s) for governance.

Operations 10

GET /v1/governance/health Health #
GET /v1/governance/sample-receipt Public sample Ed25519-signed AI-use receipt #
POST /v1/governance/sample-receipt Post Sample Receipt #
GET /v1/governance/sample-receipt/{receipt_id}.pdf Get Sample Pdf #
GET /v1/governance/sample-receipt/{receipt_id}.json Get Sample Json #
POST /v1/governance/lead Post Lead #
GET /v1/governance/leads Get Leads #
GET /v1/governance/leads/summary Free aggregate lead counts (no PII) #
GET /v1/governance/leads/health Get Leads Health #
GET /leads/health Lead-pipeline health probe #

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-governance-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-governance-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: HiveMorph v0.1 Governance API
  description: 'Polymorphic agent runtime — single shape (Merchant), single supermodel (W2 MERCHANT). Three gates: NEED + YIELD + CLEAN-MONEY.'
  version: 0.1.0
tags:
- name: Governance
paths:
  /v1/governance/health:
    get:
      tags:
      - Governance
      summary: Health
      description: Liveness + sample-signer fingerprint.
      operationId: health_v1_governance_health_get
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                additionalProperties: true
                type: object
                title: Response Health V1 Governance Health Get
  /v1/governance/sample-receipt:
    get:
      tags:
      - Governance
      summary: Public sample Ed25519-signed AI-use receipt
      description: 'Free public sample of the AI-use receipt shape governance pilots receive.

        This is a static reference example — not a live signing event.

        Use POST /v1/governance/lead and the pilot enrollment to receive real receipts.'
      operationId: get_sample_receipt_example_v1_governance_sample_receipt_get
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                additionalProperties: true
                type: object
                title: Response Get Sample Receipt Example V1 Governance Sample Receipt Get
    post:
      tags:
      - Governance
      summary: Post Sample Receipt
      description: Issue a signed sample receipt for the supplied AI use case.
      operationId: post_sample_receipt_v1_governance_sample_receipt_post
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/SampleReceiptBody'
        required: true
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SampleReceiptResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /v1/governance/sample-receipt/{receipt_id}.pdf:
    get:
      tags:
      - Governance
      summary: Get Sample Pdf
      operationId: get_sample_pdf_v1_governance_sample_receipt__receipt_id__pdf_get
      parameters:
      - name: receipt_id
        in: path
        required: true
        schema:
          type: string
          minLength: 64
          maxLength: 64
          pattern: ^[a-f0-9]{64}$
          title: Receipt Id
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /v1/governance/sample-receipt/{receipt_id}.json:
    get:
      tags:
      - Governance
      summary: Get Sample Json
      operationId: get_sample_json_v1_governance_sample_receipt__receipt_id__json_get
      parameters:
      - name: receipt_id
        in: path
        required: true
        schema:
          type: string
          minLength: 64
          maxLength: 64
          pattern: ^[a-f0-9]{64}$
          title: Receipt Id
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                type: object
                additionalProperties: true
                title: Response Get Sample Json V1 Governance Sample Receipt  Receipt Id  Json Get
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /v1/governance/lead:
    post:
      tags:
      - Governance
      summary: Post Lead
      description: 'Capture a governance pilot lead. Accepts optional email + company + use-case.

        Always 200 — never blocks the form. Persisted to JSONL on /var/data.'
      operationId: post_lead_v1_governance_lead_post
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/LeadBody'
        required: true
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                additionalProperties: true
                type: object
                title: Response Post Lead V1 Governance Lead Post
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /v1/governance/leads:
    get:
      tags:
      - Governance
      summary: Get Leads
      description: 'Token-gated read of recent governance leads.

        Auth: query ?token=... or header X-Admin-Token, compared against ADMIN_TOKEN env.'
      operationId: get_leads_v1_governance_leads_get
      parameters:
      - name: limit
        in: query
        required: false
        schema:
          type: integer
          default: 200
          title: Limit
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                type: object
                additionalProperties: true
                title: Response Get Leads V1 Governance Leads Get
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /v1/governance/leads/summary:
    get:
      tags:
      - Governance
      summary: Free aggregate lead counts (no PII)
      description: 'Free aggregate counts of governance pilot leads.

        No PII. For sensitive list, use authenticated GET /v1/governance/leads.'
      operationId: get_leads_summary_v1_governance_leads_summary_get
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                additionalProperties: true
                type: object
                title: Response Get Leads Summary V1 Governance Leads Summary Get
  /v1/governance/leads/health:
    get:
      tags:
      - Governance
      summary: Get Leads Health
      description: Liveness for the leads log. Does not require auth.
      operationId: get_leads_health_v1_governance_leads_health_get
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                additionalProperties: true
                type: object
                title: Response Get Leads Health V1 Governance Leads Health Get
  /leads/health:
    get:
      tags:
      - Governance
      summary: Lead-pipeline health probe
      description: Free top-level health probe for the governance lead-capture pipeline.
      operationId: leads_health_leads_health_get
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                additionalProperties: true
                type: object
                title: Response Leads Health Leads Health Get
components:
  schemas:
    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
    LeadBody:
      properties:
        email:
          anyOf:
          - type: string
            maxLength: 200
          - type: 'null'
          title: Email
        company:
          anyOf:
          - type: string
            maxLength: 200
          - type: 'null'
          title: Company
        use_case:
          anyOf:
          - type: string
            maxLength: 4000
          - type: 'null'
          title: Use Case
        enterprise_label:
          anyOf:
          - type: string
            maxLength: 200
          - type: 'null'
          title: Enterprise Label
        model_family:
          anyOf:
          - type: string
            maxLength: 200
          - type: 'null'
          title: Model Family
        source:
          anyOf:
          - type: string
            maxLength: 120
          - type: 'null'
          title: Source
        path:
          anyOf:
          - type: string
            maxLength: 300
          - type: 'null'
          title: Path
        ref:
          anyOf:
          - type: string
            maxLength: 500
          - type: 'null'
          title: Ref
      type: object
      title: LeadBody
    SampleReceiptResponse:
      properties:
        receipt_id:
          type: string
          title: Receipt Id
        issued_at:
          type: string
          title: Issued At
        use_case_hash:
          type: string
          title: Use Case Hash
        signer_label:
          type: string
          title: Signer Label
        signer_pubkey:
          type: string
          title: Signer Pubkey
        signature_b64:
          type: string
          title: Signature B64
        anchor_chain:
          type: string
          title: Anchor Chain
        anchor_chain_id:
          type: integer
          title: Anchor Chain Id
        anchor_tx_hash:
          type: string
          title: Anchor Tx Hash
        anchor_status:
          type: string
          title: Anchor Status
        anchor_url:
          type: string
          title: Anchor Url
        pdf_url:
          type: string
          title: Pdf Url
        json_url:
          type: string
          title: Json Url
        sample_notice:
          anyOf:
          - type: string
          - type: 'null'
          title: Sample Notice
      type: object
      required:
      - receipt_id
      - issued_at
      - use_case_hash
      - signer_label
      - signer_pubkey
      - signature_b64
      - anchor_chain
      - anchor_chain_id
      - anchor_tx_hash
      - anchor_status
      - anchor_url
      - pdf_url
      - json_url
      title: SampleReceiptResponse
    SampleReceiptBody:
      properties:
        use_case:
          type: string
          maxLength: 4000
          minLength: 8
          title: Use Case
          description: Describe the AI use case (e.g. 'GPT-4o reviews vendor NDAs and drafts redlines for Legal review').
        enterprise_label:
          anyOf:
          - type: string
            maxLength: 120
          - type: 'null'
          title: Enterprise Label
          description: How your company shows up on the receipt. Defaults to 'Sample Enterprise'.
        model_family:
          anyOf:
          - type: string
            maxLength: 80
          - type: 'null'
          title: Model Family
          description: Which model family. Defaults to 'vendor-llm/unspecified'.
        routing_policy:
          anyOf:
          - type: string
            maxLength: 80
          - type: 'null'
          title: Routing Policy
          description: Routing/policy name. Defaults to 'default-strict'.
      type: object
      required:
      - use_case
      title: SampleReceiptBody
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError