Hive Civilization Xcalibur Echo API

The xcalibur-echo API from Hive Civilization — 3 operation(s) for xcalibur-echo.

Operations 3

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

POST /v1/xcalibur/echo/compress Compress a prompt with a signed receipt · Compress a prompt with ECHO v1 #
Ask an LLM
“Can I shrink a long prompt to a target length while keeping most of its content?”
“How is content preservation scored when a prompt is compressed?”
Tell an agent
Compress this prompt: {prompt}.
Compress {prompt} to ratio {target_ratio} keeping preservation above {min_preservation}.
POST /v1/xcalibur/echo/verify Verify a prompt compression receipt · Verify an ECHO receipt #
Ask an LLM
“Is a compression receipt's signature and token math correct?”
“Can I confirm a compressed prompt matches the hash in its receipt?”
Tell an agent
Verify compression receipt {receipt}.
Check receipt {receipt} against compressed prompt {compressed_prompt}.
GET /v1/xcalibur/echo/health Check the ECHO compressor's health · ECHO health check #
Ask an LLM
“Is the XCALIBUR ECHO prompt compressor up?”
“Can I run a liveness probe on ECHO?”
Tell an agent
Check ECHO health.
Confirm the prompt compressor is live.

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-xcalibur-echo-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-xcalibur-echo-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: HiveMorph v0.1 Xcalibur Echo API
  description: 'Polymorphic agent runtime — single shape (Merchant), single supermodel (W2 MERCHANT). Three gates: NEED + YIELD + CLEAN-MONEY.'
  version: 0.1.0
tags:
- name: xcalibur-echo
paths:
  /v1/xcalibur/echo/compress:
    post:
      tags:
      - xcalibur-echo
      summary: Compress a prompt with ECHO v1
      description: 'Compress a prompt using XCALIBUR ECHO v1 output-conditioned compression.


        Algorithm:

        1. Generate K=8 candidate compressions at increasing aggressiveness.

        2. Score each candidate using a deterministic TF-IDF surrogate

        (tfidf-deterministic-v1) that estimates content preservation.

        3. Select the best-scoring candidate that meets the target_ratio floor.

        4. Run one round of gradient-free sentence-drop mutation, keeping drops

        that keep the score at or above min_preservation.

        5. Return the compressed prompt and a signed Ed25519 receipt.'
      operationId: compress_prompt_v1_xcalibur_echo_compress_post
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/hivemorph__xcalibur__echo_routes__CompressRequest'
        required: true
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CompressResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /v1/xcalibur/echo/verify:
    post:
      tags:
      - xcalibur-echo
      summary: Verify an ECHO receipt
      description: 'Verify the integrity and signature of an ECHO receipt.


        Checks performed:

        - **signature**: Ed25519 signature over canonical JSON of all receipt fields

        (except the signature field itself) verifies correctly.

        - **token_math**: original_tokens / compressed_tokens matches compression_ratio.

        - **compressed_hash_match**: if compressed_prompt is provided, sha3_256 of it

        matches receipt.compressed_hash. This catches any tampering with the

        compressed text.

        - **kind_check**: receipt.kind is "xcalibur.echo.v1".'
      operationId: verify_receipt_v1_xcalibur_echo_verify_post
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/hivemorph__xcalibur__echo_routes__VerifyRequest'
        required: true
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/hivemorph__xcalibur__echo_routes__VerifyResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /v1/xcalibur/echo/health:
    get:
      tags:
      - xcalibur-echo
      summary: ECHO health check
      description: Liveness probe for the XCALIBUR ECHO primitive.
      operationId: echo_health_v1_xcalibur_echo_health_get
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                additionalProperties: true
                type: object
                title: Response Echo Health V1 Xcalibur Echo 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
    CompressResponse:
      properties:
        compressed_prompt:
          type: string
          title: Compressed Prompt
        receipt:
          additionalProperties: true
          type: object
          title: Receipt
      type: object
      required:
      - compressed_prompt
      - receipt
      title: CompressResponse
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    hivemorph__xcalibur__echo_routes__VerifyResponse:
      properties:
        valid:
          type: boolean
          title: Valid
        checks:
          additionalProperties: true
          type: object
          title: Checks
      type: object
      required:
      - valid
      - checks
      title: VerifyResponse
    hivemorph__xcalibur__echo_routes__CompressRequest:
      properties:
        prompt:
          type: string
          title: Prompt
          description: The prompt text to compress.
        target_ratio:
          type: number
          title: Target Ratio
          description: Target length-reduction ratio in (0, 1). The compressed prompt must be at most this fraction of the original token count. Default 0.6 (≤60%% of original).
          default: 0.6
        min_preservation:
          type: number
          title: Min Preservation
          description: Minimum surrogate preservation score [0, 1]. Gradient-free mutation search keeps drops only if score stays at or above this threshold. Default 0.85.
          default: 0.85
      type: object
      required:
      - prompt
      title: CompressRequest
    hivemorph__xcalibur__echo_routes__VerifyRequest:
      properties:
        receipt:
          additionalProperties: true
          type: object
          title: Receipt
          description: The receipt object returned by /compress.
        compressed_prompt:
          anyOf:
          - type: string
          - type: 'null'
          title: Compressed Prompt
          description: If provided, verifies that sha3_256(compressed_prompt) matches receipt.compressed_hash. Also enables tamper detection.
      type: object
      required:
      - receipt
      title: VerifyRequest
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)