Hive Civilization Afir Stream API

The afir-stream API from Hive Civilization — 10 operation(s) for afir-stream.

Operations 10

GET /v1/afir-stream/health Afir Stream Health #
POST /v1/afir-stream/segment Afir Stream Segment #
POST /v1/afir-stream/seal Afir Stream Seal #
POST /v1/afir-stream/verify Afir Stream Verify #
GET /v1/afir-stream/examples Afir Stream Examples #
GET /v1/afir/health Afir Health #
POST /v1/afir/segment Afir Segment #
POST /v1/afir/seal Afir Seal #
POST /v1/afir/verify Afir Verify #
GET /v1/afir/examples Afir Examples #

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-afir-stream-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-afir-stream-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: HiveMorph v0.1 Afir Stream API
  description: 'Polymorphic agent runtime — single shape (Merchant), single supermodel (W2 MERCHANT). Three gates: NEED + YIELD + CLEAN-MONEY.'
  version: 0.1.0
tags:
- name: afir-stream
paths:
  /v1/afir-stream/health:
    get:
      tags:
      - afir-stream
      summary: Afir Stream Health
      operationId: afir_stream_health_v1_afir_stream_health_get
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                additionalProperties: true
                type: object
                title: Response Afir Stream Health V1 Afir Stream Health Get
  /v1/afir-stream/segment:
    post:
      tags:
      - afir-stream
      summary: Afir Stream Segment
      operationId: afir_stream_segment_v1_afir_stream_segment_post
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/SegmentRequest'
        required: true
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                additionalProperties: true
                type: object
                title: Response Afir Stream Segment V1 Afir Stream Segment Post
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /v1/afir-stream/seal:
    post:
      tags:
      - afir-stream
      summary: Afir Stream Seal
      operationId: afir_stream_seal_v1_afir_stream_seal_post
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/SealRequest'
        required: true
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                additionalProperties: true
                type: object
                title: Response Afir Stream Seal V1 Afir Stream Seal Post
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /v1/afir-stream/verify:
    post:
      tags:
      - afir-stream
      summary: Afir Stream Verify
      operationId: afir_stream_verify_v1_afir_stream_verify_post
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/hivemorph__hive_afir_stream__routes__VerifyRequest'
        required: true
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                additionalProperties: true
                type: object
                title: Response Afir Stream Verify V1 Afir Stream Verify Post
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /v1/afir-stream/examples:
    get:
      tags:
      - afir-stream
      summary: Afir Stream Examples
      operationId: afir_stream_examples_v1_afir_stream_examples_get
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                additionalProperties: true
                type: object
                title: Response Afir Stream Examples V1 Afir Stream Examples Get
  /v1/afir/health:
    get:
      tags:
      - afir-stream
      summary: Afir Health
      operationId: afir_health_v1_afir_health_get
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                additionalProperties: true
                type: object
                title: Response Afir Health V1 Afir Health Get
  /v1/afir/segment:
    post:
      tags:
      - afir-stream
      summary: Afir Segment
      operationId: afir_segment_v1_afir_segment_post
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/SegmentRequest'
        required: true
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                additionalProperties: true
                type: object
                title: Response Afir Segment V1 Afir Segment Post
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /v1/afir/seal:
    post:
      tags:
      - afir-stream
      summary: Afir Seal
      operationId: afir_seal_v1_afir_seal_post
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/SealRequest'
        required: true
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                additionalProperties: true
                type: object
                title: Response Afir Seal V1 Afir Seal Post
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /v1/afir/verify:
    post:
      tags:
      - afir-stream
      summary: Afir Verify
      operationId: afir_verify_v1_afir_verify_post
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/hivemorph__hive_afir_stream__routes__VerifyRequest'
        required: true
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                additionalProperties: true
                type: object
                title: Response Afir Verify V1 Afir Verify Post
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /v1/afir/examples:
    get:
      tags:
      - afir-stream
      summary: Afir Examples
      operationId: afir_examples_v1_afir_examples_get
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                additionalProperties: true
                type: object
                title: Response Afir Examples V1 Afir Examples 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
    SegmentRequest:
      properties:
        session_id:
          type: string
          title: Session Id
          description: session this segment belongs to
        sequence:
          type: integer
          title: Sequence
          description: 0-based segment index within the session
        role:
          type: string
          title: Role
          description: model-side | counterparty-side | system-side
        content_hash:
          type: string
          title: Content Hash
          description: hash of the segment content (audio/tokens)
        started_at_us:
          anyOf:
          - type: integer
          - type: 'null'
          title: Started At Us
        ended_at_us:
          anyOf:
          - type: integer
          - type: 'null'
          title: Ended At Us
        sign_latency_us:
          anyOf:
          - type: number
          - type: 'null'
          title: Sign Latency Us
          description: off-path signing latency for this segment (µs)
        transcript_commitment:
          type: string
          title: Transcript Commitment
          default: ''
        continuity:
          anyOf:
          - $ref: '#/components/schemas/ContinuityIn'
          - type: 'null'
        prior_commit:
          type: string
          title: Prior Commit
          default: ''
      type: object
      required:
      - session_id
      - sequence
      - role
      - content_hash
      title: SegmentRequest
    hivemorph__hive_afir_stream__routes__VerifyRequest:
      properties:
        receipt:
          additionalProperties: true
          type: object
          title: Receipt
          description: a segment receipt or a sealed session receipt
      type: object
      required:
      - receipt
      title: VerifyRequest
    ContinuityIn:
      properties:
        event:
          type: string
          title: Event
          description: interruption | handoff | resume | backchannel
        continues_from_commit:
          type: string
          title: Continues From Commit
          description: commit of prior receipt
          default: ''
        detail:
          type: string
          title: Detail
          default: ''
      type: object
      required:
      - event
      title: ContinuityIn
    SealRequest:
      properties:
        session_id:
          type: string
          title: Session Id
          default: ''
        segment_receipts:
          items:
            additionalProperties: true
            type: object
          type: array
          title: Segment Receipts
          description: ordered list of segment receipts to seal
        declared_budget_us:
          type: number
          title: Declared Budget Us
          default: 100.0
        session_metadata:
          anyOf:
          - additionalProperties: true
            type: object
          - type: 'null'
          title: Session Metadata
      type: object
      required:
      - segment_receipts
      title: SealRequest
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError