Hive Civilization Pq API

The pq API from Hive Civilization — 4 operation(s) for pq.

Operations 4

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/smsh/pq/selftest Run the post-quantum crypto self-test · Route Pq Selftest #
Ask an LLM
“Does the ML-DSA-65 and ML-KEM-768 implementation pass a NIST conformance round trip?”
“What are the real signing and key-encapsulation latencies?”
Tell an agent
Run the post-quantum self-test.
Check ML-DSA-65 and ML-KEM-768 conformance and latency.
GET /v1/smsh/pq/keys/sample Generate a sample ML-DSA-65 keypair · Route Pq Keys Sample #
Ask an LLM
“Can I get a throwaway ML-DSA-65 keypair for integration testing?”
“Is the sample keypair safe to use for real keys?”
Tell an agent
Generate a demo ML-DSA-65 keypair.
Give me a base64 test keypair for post-quantum signing.
POST /v1/smsh/pq/sign Sign a message with ML-DSA-65 · Route Pq Sign #
Ask an LLM
“How do I sign a message with a post-quantum ML-DSA-65 key?”
“What does each post-quantum signing call cost?”
Tell an agent
Sign message {message_b64} with secret key {sk_b64}.
Produce an ML-DSA-65 signature over {message_b64} using {sk_b64}.
POST /v1/smsh/pq/verify Verify an ML-DSA-65 signature · Route Pq Verify #
Ask an LLM
“Can I verify a post-quantum signature for free?”
“What inputs does ML-DSA-65 signature verification need?”
Tell an agent
Verify signature {sig_b64} on {message_b64} with public key {pk_b64}.
Check that {message_b64} was signed by {pk_b64} with signature {sig_b64}.

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-pq-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-pq-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: HiveMorph v0.1 Pq API
  description: 'Polymorphic agent runtime — single shape (Merchant), single supermodel (W2 MERCHANT). Three gates: NEED + YIELD + CLEAN-MONEY.'
  version: 0.1.0
tags:
- name: pq
paths:
  /v1/smsh/pq/selftest:
    get:
      tags:
      - pq
      summary: Route Pq Selftest
      description: 'Run ML-DSA-65 + ML-KEM-768 roundtrip self-test.

        Returns NIST conformance check and real latencies.

        Tier0 -- free, no auth required.'
      operationId: route_pq_selftest_v1_smsh_pq_selftest_get
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                additionalProperties: true
                type: object
                title: Response Route Pq Selftest V1 Smsh Pq Selftest Get
  /v1/smsh/pq/keys/sample:
    get:
      tags:
      - pq
      summary: Route Pq Keys Sample
      description: 'Generate a fresh ML-DSA-65 keypair and return it base64-encoded.

        For demo/integration testing only -- do not use for real key material.

        Tier0 -- free.'
      operationId: route_pq_keys_sample_v1_smsh_pq_keys_sample_get
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                additionalProperties: true
                type: object
                title: Response Route Pq Keys Sample V1 Smsh Pq Keys Sample Get
  /v1/smsh/pq/sign:
    post:
      tags:
      - pq
      summary: Route Pq Sign
      description: 'Sign a message with ML-DSA-65.

        Tier1 -- $0.001 per call (requires auth token with signing credits).'
      operationId: route_pq_sign_v1_smsh_pq_sign_post
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/SignRequest'
        required: true
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SignResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
  /v1/smsh/pq/verify:
    post:
      tags:
      - pq
      summary: Route Pq Verify
      description: 'Verify an ML-DSA-65 signature.

        Tier0 -- free.'
      operationId: route_pq_verify_v1_smsh_pq_verify_post
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/hivemorph__hive_smsh___pq_routes_patch__VerifyRequest'
        required: true
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/hivemorph__hive_smsh___pq_routes_patch__VerifyResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    hivemorph__hive_smsh___pq_routes_patch__VerifyRequest:
      properties:
        message_b64:
          type: string
          title: Message B64
          description: Base64-encoded message
        sig_b64:
          type: string
          title: Sig B64
          description: Base64-encoded ML-DSA-65 signature
        pk_b64:
          type: string
          title: Pk B64
          description: Base64-encoded ML-DSA-65 public key
      type: object
      required:
      - message_b64
      - sig_b64
      - pk_b64
      title: VerifyRequest
    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
    hivemorph__hive_smsh___pq_routes_patch__VerifyResponse:
      properties:
        valid:
          type: boolean
          title: Valid
        alg:
          type: string
          title: Alg
        fips:
          type: string
          title: Fips
        backend:
          type: string
          title: Backend
      type: object
      required:
      - valid
      - alg
      - fips
      - backend
      title: VerifyResponse
    SignRequest:
      properties:
        message_b64:
          type: string
          title: Message B64
          description: Base64-encoded message to sign
        sk_b64:
          type: string
          title: Sk B64
          description: Base64-encoded ML-DSA-65 secret key
      type: object
      required:
      - message_b64
      - sk_b64
      title: SignRequest
    SignResponse:
      properties:
        signature_b64:
          type: string
          title: Signature B64
        alg:
          type: string
          title: Alg
        fips:
          type: string
          title: Fips
        backend:
          type: string
          title: Backend
        sig_bytes:
          type: integer
          title: Sig Bytes
      type: object
      required:
      - signature_b64
      - alg
      - fips
      - backend
      - sig_bytes
      title: SignResponse
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
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)