Hive Civilization R7 Spectral API

The r7-spectral API from Hive Civilization — 7 operation(s) for r7-spectral.

Operations 7

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

GET /v1/spectral/policy Get the spectral monitoring policy · Spectral Policy #
Ask an LLM
“What thresholds does spectral behaviour monitoring use to flag agents?”
“Which policy governs spectral anomaly alerts?”
Tell an agent
Show me the spectral policy.
Get the current spectral monitoring rules.
GET /v1/spectral/stats Get spectral monitoring statistics · Spectral Stats #
Ask an LLM
“How many agents and observations is spectral monitoring tracking?”
“Are there overall stats for spectral alerts?”
Tell an agent
Get spectral monitoring stats.
Summarize spectral observation and alert totals.
POST /v1/spectral/observe Record an agent behaviour observation · Spectral Observe #
Ask an LLM
“How do I log what an agent just did so its behaviour baseline updates?”
“Can I record spend, latency and counterparty for each agent call?”
Tell an agent
Record an observation for agent {agent_did}.
Log that {agent_did} called {endpoint} spending {spend_usd} USD with {counterparty_did}.
POST /v1/spectral/evaluate Score whether an agent action looks anomalous · Spectral Evaluate #
Ask an LLM
“Is this agent call unusual compared with its normal behaviour?”
“Can I evaluate an action for anomalies without saving it as an observation?”
Tell an agent
Evaluate whether a call by {agent_did} to {endpoint} for {spend_usd} USD is anomalous.
Score agent {agent_did}'s action against its fingerprint and set persist to {persist_observation}.
GET /v1/spectral/{agent_did}/observations List an agent's recorded observations · Spectral Observations #
Ask an LLM
“What recent activity has been recorded for a specific agent?”
“Can I limit how many observations I pull for an agent?”
Tell an agent
List observations for agent {agent_did}.
Show the last {limit} observations recorded for {agent_did}.
GET /v1/spectral/{agent_did}/alerts List anomaly alerts for an agent · Spectral Alerts #
Ask an LLM
“Has a particular agent triggered any behaviour anomaly alerts?”
“How do I see the latest spectral alerts for one agent?”
Tell an agent
List spectral alerts for {agent_did}.
Show the {limit} most recent anomaly alerts for agent {agent_did}.
GET /v1/spectral/{agent_did} Get an agent's behaviour fingerprint · Spectral Fingerprint #
Ask an LLM
“What does an agent's normal behaviour profile look like?”
“How do I fetch the spectral fingerprint of an agent?”
Tell an agent
Get the spectral fingerprint for agent {agent_did}.
Show me {agent_did}'s behavioural baseline.

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-r7-spectral-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-r7-spectral-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: HiveMorph v0.1 R7 Spectral API
  description: 'Polymorphic agent runtime — single shape (Merchant), single supermodel (W2 MERCHANT). Three gates: NEED + YIELD + CLEAN-MONEY.'
  version: 0.1.0
tags:
- name: r7-spectral
paths:
  /v1/spectral/policy:
    get:
      tags:
      - r7-spectral
      summary: Spectral Policy
      operationId: spectral_policy_v1_spectral_policy_get
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
  /v1/spectral/stats:
    get:
      tags:
      - r7-spectral
      summary: Spectral Stats
      operationId: spectral_stats_v1_spectral_stats_get
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
  /v1/spectral/observe:
    post:
      tags:
      - r7-spectral
      summary: Spectral Observe
      operationId: spectral_observe_v1_spectral_observe_post
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ObserveReq'
        required: true
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /v1/spectral/evaluate:
    post:
      tags:
      - r7-spectral
      summary: Spectral Evaluate
      operationId: spectral_evaluate_v1_spectral_evaluate_post
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/EvaluateReq'
        required: true
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /v1/spectral/{agent_did}/observations:
    get:
      tags:
      - r7-spectral
      summary: Spectral Observations
      operationId: spectral_observations_v1_spectral__agent_did__observations_get
      parameters:
      - name: agent_did
        in: path
        required: true
        schema:
          type: string
          minLength: 3
          maxLength: 200
          title: Agent Did
      - name: limit
        in: query
        required: false
        schema:
          type: integer
          maximum: 500
          minimum: 1
          default: 50
          title: Limit
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /v1/spectral/{agent_did}/alerts:
    get:
      tags:
      - r7-spectral
      summary: Spectral Alerts
      operationId: spectral_alerts_v1_spectral__agent_did__alerts_get
      parameters:
      - name: agent_did
        in: path
        required: true
        schema:
          type: string
          minLength: 3
          maxLength: 200
          title: Agent Did
      - name: limit
        in: query
        required: false
        schema:
          type: integer
          maximum: 500
          minimum: 1
          default: 50
          title: Limit
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /v1/spectral/{agent_did}:
    get:
      tags:
      - r7-spectral
      summary: Spectral Fingerprint
      operationId: spectral_fingerprint_v1_spectral__agent_did__get
      parameters:
      - name: agent_did
        in: path
        required: true
        schema:
          type: string
          minLength: 3
          maxLength: 200
          title: Agent Did
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    EvaluateReq:
      properties:
        agent_did:
          type: string
          maxLength: 200
          minLength: 3
          title: Agent Did
        endpoint:
          anyOf:
          - type: string
            maxLength: 300
          - type: 'null'
          title: Endpoint
        spend_usd:
          anyOf:
          - type: number
            maximum: 1000000000.0
            minimum: 0.0
          - type: 'null'
          title: Spend Usd
        counterparty_did:
          anyOf:
          - type: string
            maxLength: 200
          - type: 'null'
          title: Counterparty Did
        size_bytes:
          anyOf:
          - type: integer
            maximum: 1000000000.0
            minimum: 0.0
          - type: 'null'
          title: Size Bytes
        proof_tier:
          anyOf:
          - type: string
            maxLength: 40
          - type: 'null'
          title: Proof Tier
        jurisdiction:
          anyOf:
          - type: string
            maxLength: 40
          - type: 'null'
          title: Jurisdiction
        latency_ms:
          anyOf:
          - type: number
            maximum: 600000.0
            minimum: 0.0
          - type: 'null'
          title: Latency Ms
        persist_observation:
          type: boolean
          title: Persist Observation
          default: false
        decision:
          anyOf:
          - type: string
            maxLength: 40
          - type: 'null'
          title: Decision
      type: object
      required:
      - agent_did
      title: EvaluateReq
    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
    ObserveReq:
      properties:
        agent_did:
          type: string
          maxLength: 200
          minLength: 3
          title: Agent Did
        endpoint:
          anyOf:
          - type: string
            maxLength: 300
          - type: 'null'
          title: Endpoint
        spend_usd:
          anyOf:
          - type: number
            maximum: 1000000000.0
            minimum: 0.0
          - type: 'null'
          title: Spend Usd
        counterparty_did:
          anyOf:
          - type: string
            maxLength: 200
          - type: 'null'
          title: Counterparty Did
        size_bytes:
          anyOf:
          - type: integer
            maximum: 1000000000.0
            minimum: 0.0
          - type: 'null'
          title: Size Bytes
        proof_tier:
          anyOf:
          - type: string
            maxLength: 40
          - type: 'null'
          title: Proof Tier
        jurisdiction:
          anyOf:
          - type: string
            maxLength: 40
          - type: 'null'
          title: Jurisdiction
        latency_ms:
          anyOf:
          - type: number
            maximum: 600000.0
            minimum: 0.0
          - type: 'null'
          title: Latency Ms
        decision:
          anyOf:
          - type: string
            maxLength: 40
          - type: 'null'
          title: Decision
        context:
          additionalProperties: true
          type: object
          title: Context
      type: object
      required:
      - agent_did
      title: ObserveReq
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)