Hive Civilization Protected Flow API

The protected-flow API from Hive Civilization — 3 operation(s) for protected-flow.

Operations 3

GET /v1/protected-flow/health Protected Flow discovery — version, decision classes, policy packs, meter… #
POST /v1/protected-flow/assess Assess an R3Pv group and return a signed decision + meter quote #
GET /v1/protected-flow/evidence/{group_id}/export Bundle signed R3Pv vector + latest signed assessment + receipts + pubkey #

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-protected-flow-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-protected-flow-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: HiveMorph v0.1 Protected Flow API
  description: 'Polymorphic agent runtime — single shape (Merchant), single supermodel (W2 MERCHANT). Three gates: NEED + YIELD + CLEAN-MONEY.'
  version: 0.1.0
tags:
- name: protected-flow
paths:
  /v1/protected-flow/health:
    get:
      tags:
      - protected-flow
      summary: Protected Flow discovery — version, decision classes, policy packs, meter…
      operationId: protected_flow_health_v1_protected_flow_health_get
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
  /v1/protected-flow/assess:
    post:
      tags:
      - protected-flow
      summary: Assess an R3Pv group and return a signed decision + meter quote
      operationId: protected_flow_assess_v1_protected_flow_assess_post
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/AssessRequest'
        required: true
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /v1/protected-flow/evidence/{group_id}/export:
    get:
      tags:
      - protected-flow
      summary: Bundle signed R3Pv vector + latest signed assessment + receipts + pubkey
      operationId: protected_flow_evidence_export_v1_protected_flow_evidence__group_id__export_get
      parameters:
      - name: group_id
        in: path
        required: true
        schema:
          type: string
          title: Group Id
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '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
    AssessRequest:
      properties:
        group_id:
          anyOf:
          - type: string
          - type: 'null'
          title: Group Id
          description: Existing R3Pv group_id to assess.
        receipts:
          items: {}
          type: array
          title: Receipts
          description: Inline receipts (used when group_id is not given).
        receipt_ids:
          items:
            type: string
          type: array
          title: Receipt Ids
          description: Bare receipt IDs (used when group_id is not given).
        label:
          anyOf:
          - type: string
            maxLength: 200
          - type: 'null'
          title: Label
          description: Human label for the ad-hoc group.
        graph:
          anyOf:
          - additionalProperties: true
            type: object
          - type: 'null'
          title: Graph
          description: Optional R3Pv graph edges.
        metadata:
          anyOf:
          - additionalProperties: true
            type: object
          - type: 'null'
          title: Metadata
          description: Optional caller metadata.
        policy_pack:
          anyOf:
          - type: string
          - type: 'null'
          title: Policy Pack
          description: 'Named policy pack. One of: [''default'', ''strict_bank'', ''high_risk_agent''].'
          default: default
        policy_overrides:
          anyOf:
          - additionalProperties: true
            type: object
          - type: 'null'
          title: Policy Overrides
          description: Optional overrides. Can only make policy stricter.
        declared_exposure_usd:
          type: number
          minimum: 0.0
          title: Declared Exposure Usd
          description: Caller-declared exposure at risk (USD). Used for banded decisioning and bps meter.
          default: 0.0
        declared_exposure:
          anyOf:
          - type: number
            minimum: 0.0
          - type: 'null'
          title: Declared Exposure
          description: Alias for declared_exposure_usd (one-call convenience).
        exposure_bps:
          anyOf:
          - type: number
            minimum: 0.0
          - type: 'null'
          title: Exposure Bps
          description: Optional caller-preferred basis-point rate on declared exposure (default 2.0 bps).
        persist:
          type: boolean
          title: Persist
          description: If true, persist the assessment for later evidence export.
          default: true
        intent:
          anyOf:
          - additionalProperties: true
            type: object
          - type: 'null'
          title: Intent
          description: Raw payment/economic intent, e.g. {asset, network, amount, recipient, purpose, net_moved}. Triggers one-call mode when no group_id/receipts/receipt_ids are given.
        action:
          anyOf:
          - type: string
            maxLength: 200
          - type: 'null'
          title: Action
          description: 'One-call mode: the action name for the synthesized receipt (default ''payment_intent'').'
        external_system:
          anyOf:
          - type: string
            maxLength: 120
          - type: 'null'
          title: External System
          description: 'One-call mode: the source system, e.g. ''circle''.'
        actor:
          anyOf:
          - additionalProperties: true
            type: object
          - type: 'null'
          title: Actor
          description: 'One-call mode: optional actor/agent identifiers for the synthesized receipt.'
        evidence:
          items: {}
          type: array
          title: Evidence
          description: 'One-call mode: optional supporting artifacts; each is hashed into the receipt''s evidence_hashes.'
        healing_state:
          anyOf:
          - type: string
          - type: 'null'
          title: Healing State
          description: 'One-call mode: optionally declare a valid healing_state on the synthesized receipt (signed).'
      type: object
      title: AssessRequest
    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