Hive Civilization Purity API

The purity API from Hive Civilization — 3 operation(s) for purity.

Operations 3

GET /v1/purity/health Health #
POST /v1/purity/cert/issue Cert Issue #
GET /v1/purity/cert/{cert_id} Cert Get #

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-purity-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-purity-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: HiveMorph v0.1 Purity API
  description: 'Polymorphic agent runtime — single shape (Merchant), single supermodel (W2 MERCHANT). Three gates: NEED + YIELD + CLEAN-MONEY.'
  version: 0.1.0
tags:
- name: purity
paths:
  /v1/purity/health:
    get:
      tags:
      - purity
      summary: Health
      operationId: health_v1_purity_health_get
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                additionalProperties: true
                type: object
                title: Response Health V1 Purity Health Get
  /v1/purity/cert/issue:
    post:
      tags:
      - purity
      summary: Cert Issue
      operationId: cert_issue_v1_purity_cert_issue_post
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/PurityCertIssueRequest'
        required: true
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PurityCertIssueResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /v1/purity/cert/{cert_id}:
    get:
      tags:
      - purity
      summary: Cert Get
      operationId: cert_get_v1_purity_cert__cert_id__get
      parameters:
      - name: cert_id
        in: path
        required: true
        schema:
          type: string
          title: Cert Id
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                type: object
                additionalProperties: true
                title: Response Cert Get V1 Purity Cert  Cert Id  Get
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    SubjectInfo:
      properties:
        name:
          type: string
          title: Name
          description: Product / crop name
        lot:
          type: string
          title: Lot
          description: Lot / batch identifier
        farm_id:
          type: string
          title: Farm Id
          description: Farm or growing-operation identifier
        growing_area:
          items:
            type: number
          type: array
          maxItems: 2
          minItems: 2
          title: Growing Area
          description: '[latitude, longitude] decimal degrees'
        harvest_date:
          type: string
          title: Harvest Date
          description: ISO-8601 harvest date
      type: object
      required:
      - name
      - lot
      - farm_id
      - growing_area
      - harvest_date
      title: SubjectInfo
      description: Subject (produce / farm lot) being certified.
    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
    AxesSummary:
      properties:
        count:
          type: integer
          title: Count
          description: Total axes provided
        wave_count:
          type: integer
          title: Wave Count
          description: Wave-Lattice axes provided (1-16)
        loess_count:
          type: integer
          title: Loess Count
          description: Loess-Lattice axes provided (17-24)
        missing:
          items:
            type: integer
          type: array
          title: Missing
          description: Missing axis IDs
      type: object
      required:
      - count
      - wave_count
      - loess_count
      title: AxesSummary
      description: Summary of axis coverage in the issued certificate.
    PurityCertIssueRequest:
      properties:
        issuer_did:
          type: string
          title: Issuer Did
          description: DID of the issuing entity (did:hive:...)
        subject:
          $ref: '#/components/schemas/SubjectInfo'
          description: Subject (produce / farm lot) details
        substrate:
          type: string
          enum:
          - wave
          - loess
          - purity-24
          title: Substrate
          description: 'Substrate mode: wave (axes 1-16), loess (axes 17-24), purity-24 (all)'
        axes:
          items:
            $ref: '#/components/schemas/AxisReading'
          type: array
          maxItems: 24
          minItems: 1
          title: Axes
          description: Up to 24 axis readings
        fsma_204:
          anyOf:
          - $ref: '#/components/schemas/Fsma204Info'
          - type: 'null'
          description: FSMA 204 KDEs (optional, present for produce/livestock)
      type: object
      required:
      - issuer_did
      - subject
      - substrate
      - axes
      title: PurityCertIssueRequest
      description: POST /v1/purity/cert/issue — issue a 24-axis Purity Receipt v3.0.
    Fsma204Info:
      properties:
        kde_lot_code:
          type: string
          title: Kde Lot Code
          description: 'KDE: traceability lot code'
        kde_cultivar:
          type: string
          title: Kde Cultivar
          description: 'KDE: cultivar / variety'
        kde_growing_area:
          items:
            type: number
          type: array
          maxItems: 2
          minItems: 2
          title: Kde Growing Area
          description: '[lat, lon] growing area from KDE'
        kde_production_date:
          type: string
          title: Kde Production Date
          description: 'KDE: production / harvest date'
      type: object
      required:
      - kde_lot_code
      - kde_cultivar
      - kde_growing_area
      - kde_production_date
      title: Fsma204Info
      description: FSMA 204 Key Data Elements (optional; present for produce / livestock).
    AxisReading:
      properties:
        axis_id:
          type: integer
          maximum: 24.0
          minimum: 1.0
          title: Axis Id
          description: Axis ID 1-16 (Wave-Lattice) or 17-24 (Loess-Lattice)
        reading_hash:
          type: string
          title: Reading Hash
          description: 'sha3-256 hex of the raw reading blob, format: sha3-256:<64 hex chars>'
        sample_count:
          type: integer
          minimum: 1.0
          title: Sample Count
          description: Number of samples in the reading
        probe_serial:
          type: string
          title: Probe Serial
          description: Serial number of the probe/instrument
        reading_timestamp:
          anyOf:
          - type: string
          - type: 'null'
          title: Reading Timestamp
          description: ISO-8601 timestamp of the reading (used for staleness check)
        confidence:
          anyOf:
          - type: number
            maximum: 1.0
            minimum: 0.0
          - type: 'null'
          title: Confidence
          description: Confidence score 0-1 (optional; <0.5 treated as low-confidence)
      type: object
      required:
      - axis_id
      - reading_hash
      - sample_count
      - probe_serial
      title: AxisReading
      description: One sensor-axis reading submitted with the purity certificate request.
    PurityCertIssueResponse:
      properties:
        cert_id:
          type: string
          title: Cert Id
          description: UUID of the issued certificate
        issued_at:
          type: string
          title: Issued At
          description: ISO-8601 issuance timestamp
        issuer_did:
          type: string
          title: Issuer Did
        subject:
          additionalProperties: true
          type: object
          title: Subject
        substrate:
          type: string
          title: Substrate
        axes_summary:
          $ref: '#/components/schemas/AxesSummary'
        fsma_204_status:
          type: string
          enum:
          - satisfied
          - partial
          - n/a
          title: Fsma 204 Status
          description: FSMA 204 KDE coverage status
        purity_score:
          type: number
          maximum: 100.0
          minimum: 0.0
          title: Purity Score
          description: Purity score 0-100 (100 - missing*4 - low_conf*2, floored at 0)
        signatures:
          additionalProperties:
            type: string
          type: object
          title: Signatures
          description: '{ed25519: base64..., ml_dsa_65: base64...}'
        anchor_tx:
          type: 'null'
          title: Anchor Tx
          description: Base mainnet anchor TX — placeholder until on-chain wiring
        verification_url:
          type: string
          title: Verification Url
          description: https://thehiveryiq.com/verifier/?cert=<cert_id>
        warnings:
          items:
            type: string
          type: array
          title: Warnings
          description: Non-fatal warnings (e.g. stale readings)
        receipt_envelope:
          additionalProperties: true
          type: object
          title: Receipt Envelope
          description: Full SwarmReceiptIssuer envelope for downstream verification
      type: object
      required:
      - cert_id
      - issued_at
      - issuer_did
      - subject
      - substrate
      - axes_summary
      - fsma_204_status
      - purity_score
      - signatures
      - verification_url
      - receipt_envelope
      title: PurityCertIssueResponse
      description: Purity Receipt v3.0 — dual-signed 24-axis soil/produce certificate.
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError