Hive Civilization Pq API

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

Operations 4

GET /v1/smsh/pq/selftest Route Pq Selftest #
GET /v1/smsh/pq/keys/sample Route Pq Keys Sample #
POST /v1/smsh/pq/sign Route Pq Sign #
POST /v1/smsh/pq/verify Route Pq Verify #

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-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:
    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
    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__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
    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
    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