ColdState Knowledge API

Global knowledge base: search, fetch, cite, verify, related, resolve

GitHub OpenAPI

Operations 12

POST /v1/search/global Search the global knowledge base #
GET /v1/search/domains List knowledge domains with counts #
GET /v1/knowledge/fetch Fetch an entry verbatim by stable id #
GET /v1/knowledge/cite Canonical citation for an entry #
POST /v1/knowledge/verify Verify a cited fact is unchanged #
GET /v1/knowledge/snapshot Current knowledge-base snapshot #
GET /v1/knowledge/related Related entries via the concept-cluster graph #
GET /v1/knowledge/resolve Resolve a name/alias to a canonical entry #
POST /v1/knowledge/batch Several queries against one snapshot #
GET /v1/knowledge/stats Query coverage stats, or global KB stats #
GET /v1/knowledge/capabilities Machine-readable service manifest #
GET /v1/knowledge/isomorph Cross-domain structural analog of an entry #

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/coldstate-ai:coldstate-ai-knowledge-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

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

coldstate-ai-knowledge-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Coldstate Ai Knowledge API
  version: 0.1.0
  contact:
    name: ColdState
    url: https://services.coldstate.ai
    email: daniel@coldstate.ai
  termsOfService: https://services.coldstate.ai/terms
  description: 'Operations tagged Knowledge across 2 of this provider''s published API definitions: coldstate-ai-openapi.json, coldstate-ai-openapi.yml. Each path carries the servers of the definition it was published in.'
servers:
- url: https://cold-api.coldstate.ai
security:
- bearerAuth: []
tags:
- name: Knowledge
  description: 'Global knowledge base: search, fetch, cite, verify, related, resolve'
paths:
  /v1/search/global:
    post:
      tags:
      - Knowledge
      summary: Search the global knowledge base
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/GlobalSearchRequest'
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GlobalSearchResponse'
        '400':
          description: Validation error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '401':
          description: Missing or invalid API key
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '429':
          description: Rate or quota limit exceeded
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      operationId: postV1SearchGlobal
      x-operation-id-source: derived
    servers:
    - url: https://cold-api.coldstate.ai
  /v1/search/domains:
    get:
      tags:
      - Knowledge
      summary: List knowledge domains with counts
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DomainsResponse'
        '401':
          description: Missing or invalid API key
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '429':
          description: Rate or quota limit exceeded
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      operationId: getV1SearchDomains
      x-operation-id-source: derived
    servers:
    - url: https://cold-api.coldstate.ai
  /v1/knowledge/fetch:
    get:
      tags:
      - Knowledge
      summary: Fetch an entry verbatim by stable id
      parameters:
      - name: id
        in: query
        required: true
        description: Stable entry id, e.g. eng_000229f438f7cebd
        schema:
          type: string
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Entry'
        '401':
          description: Missing or invalid API key
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '404':
          description: Unknown id
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '429':
          description: Rate or quota limit exceeded
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      operationId: getV1KnowledgeFetch
      x-operation-id-source: derived
    servers:
    - url: https://cold-api.coldstate.ai
  /v1/knowledge/cite:
    get:
      tags:
      - Knowledge
      summary: Canonical citation for an entry
      parameters:
      - name: id
        in: query
        required: true
        description: Stable entry id
        schema:
          type: string
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Citation'
        '401':
          description: Missing or invalid API key
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '404':
          description: Unknown id
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '429':
          description: Rate or quota limit exceeded
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      operationId: getV1KnowledgeCite
      x-operation-id-source: derived
    servers:
    - url: https://cold-api.coldstate.ai
  /v1/knowledge/verify:
    post:
      tags:
      - Knowledge
      summary: Verify a cited fact is unchanged
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/VerifyRequest'
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/VerifyResponse'
        '400':
          description: Validation error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '401':
          description: Missing or invalid API key
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '429':
          description: Rate or quota limit exceeded
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      operationId: postV1KnowledgeVerify
      x-operation-id-source: derived
    servers:
    - url: https://cold-api.coldstate.ai
  /v1/knowledge/snapshot:
    get:
      tags:
      - Knowledge
      summary: Current knowledge-base snapshot
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Snapshot'
        '401':
          description: Missing or invalid API key
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '429':
          description: Rate or quota limit exceeded
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      operationId: getV1KnowledgeSnapshot
      x-operation-id-source: derived
    servers:
    - url: https://cold-api.coldstate.ai
  /v1/knowledge/related:
    get:
      tags:
      - Knowledge
      summary: Related entries via the concept-cluster graph
      parameters:
      - name: id
        in: query
        required: true
        description: Stable entry id
        schema:
          type: string
      - name: limit
        in: query
        required: false
        description: 1–50, default 10
        schema:
          type: integer
          minimum: 1
          maximum: 50
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/RelatedResponse'
        '401':
          description: Missing or invalid API key
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '404':
          description: Unknown id
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '429':
          description: Rate or quota limit exceeded
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      operationId: getV1KnowledgeRelated
      x-operation-id-source: derived
    servers:
    - url: https://cold-api.coldstate.ai
  /v1/knowledge/resolve:
    get:
      tags:
      - Knowledge
      summary: Resolve a name/alias to a canonical entry
      parameters:
      - name: query
        in: query
        required: true
        description: Surface form to resolve (≤500 chars)
        schema:
          type: string
      - name: limit
        in: query
        required: false
        description: Max alternatives, 1–5
        schema:
          type: integer
          minimum: 1
          maximum: 5
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ResolveResponse'
        '400':
          description: Validation error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '401':
          description: Missing or invalid API key
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '429':
          description: Rate or quota limit exceeded
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      operationId: getV1KnowledgeResolve
      x-operation-id-source: derived
    servers:
    - url: https://cold-api.coldstate.ai
  /v1/knowledge/batch:
    post:
      tags:
      - Knowledge
      summary: Several queries against one snapshot
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/BatchRequest'
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BatchResponse'
        '400':
          description: Validation error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '401':
          description: Missing or invalid API key
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '429':
          description: Rate or quota limit exceeded
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      operationId: postV1KnowledgeBatch
      x-operation-id-source: derived
    servers:
    - url: https://cold-api.coldstate.ai
  /v1/knowledge/stats:
    get:
      tags:
      - Knowledge
      summary: Query coverage stats, or global KB stats
      parameters:
      - name: query
        in: query
        required: false
        description: Optional query
        schema:
          type: string
      - name: domain
        in: query
        required: false
        description: Optional domain filter
        schema:
          type: string
      responses:
        '200':
          description: OK
        '401':
          description: Missing or invalid API key
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '429':
          description: Rate or quota limit exceeded
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      operationId: getV1KnowledgeStats
      x-operation-id-source: derived
    servers:
    - url: https://cold-api.coldstate.ai
  /v1/knowledge/capabilities:
    get:
      tags:
      - Knowledge
      summary: Machine-readable service manifest
      responses:
        '200':
          description: OK
        '401':
          description: Missing or invalid API key
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '429':
          description: Rate or quota limit exceeded
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      operationId: getV1KnowledgeCapabilities
      x-operation-id-source: derived
    servers:
    - url: https://cold-api.coldstate.ai
  /v1/knowledge/isomorph:
    get:
      tags:
      - Knowledge
      summary: Cross-domain structural analog of an entry
      parameters:
      - name: id
        in: query
        required: true
        description: Stable entry id
        schema:
          type: string
      - name: limit
        in: query
        required: false
        description: 1–35, default 8
        schema:
          type: integer
          minimum: 1
          maximum: 35
      responses:
        '200':
          description: OK
        '401':
          description: Missing or invalid API key
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '404':
          description: Unknown id or no analog available
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '429':
          description: Rate or quota limit exceeded
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      operationId: getV1KnowledgeIsomorph
      x-operation-id-source: derived
    servers:
    - url: https://cold-api.coldstate.ai
components:
  schemas:
    Error:
      type: object
      properties:
        error:
          type: string
        message:
          type: string
        statusCode:
          type: integer
      required:
      - error
      - message
      - statusCode
    Citation:
      type: object
      properties:
        id:
          type: string
        title:
          type: string
        metadata:
          type: object
          properties:
            domain:
              type: string
            source:
              type: string
        content_hash:
          type: string
        kb_snapshot:
          type:
          - string
          - 'null'
        built_at:
          type:
          - string
          - 'null'
        created_at:
          type: string
    StateDistribution:
      type: object
      properties:
        CRYSTALLINE:
          type: integer
        FLUID:
          type: integer
        REACTIVE:
          type: integer
        DECOHERENT:
          type: integer
    ResolveResponse:
      type: object
      properties:
        query:
          type: string
        resolved:
          oneOf:
          - $ref: '#/components/schemas/KnowledgeResult'
          - type: 'null'
        match_type:
          type: string
          enum:
          - exact
          - best
          - none
        alternatives:
          type: array
          items:
            $ref: '#/components/schemas/KnowledgeResult'
        kb_snapshot:
          type:
          - string
          - 'null'
    VerifyRequest:
      type: object
      required:
      - id
      - content_hash
      properties:
        id:
          type: string
        content_hash:
          type: string
    Snapshot:
      type: object
      properties:
        kb_snapshot:
          type: string
        version:
          type: string
        built_at:
          type: string
        entry_count:
          type: integer
    BatchRequest:
      type: object
      required:
      - queries
      properties:
        queries:
          type: array
          minItems: 1
          maxItems: 10
          items:
            type: string
            maxLength: 2000
        domain:
          type: string
        limit:
          type: integer
          minimum: 1
          maximum: 20
          default: 5
    Entry:
      allOf:
      - $ref: '#/components/schemas/KnowledgeResult'
      - type: object
        properties:
          content:
            type: string
          content_hash:
            type: string
            description: sha256 of content
          kb_snapshot:
            type:
            - string
            - 'null'
          created_at:
            type: string
    Score:
      type: object
      properties:
        Ψ:
          type: number
          minimum: 0
          maximum: 1
      required:
      - Ψ
    GlobalSearchResponse:
      type: object
      properties:
        source:
          type: string
          const: global
        domain:
          type:
          - string
          - 'null'
        query:
          type: string
        kb_snapshot:
          type:
          - string
          - 'null'
          description: Pin this to reproduce results later
        results:
          type: array
          items:
            $ref: '#/components/schemas/KnowledgeResult'
        diagnostics:
          type: object
          properties:
            execution_time_ms:
              type: number
            results_count:
              type: integer
            state_distribution:
              $ref: '#/components/schemas/StateDistribution'
        pagination:
          $ref: '#/components/schemas/Pagination'
    GlobalSearchRequest:
      type: object
      required:
      - query
      properties:
        query:
          type: string
          maxLength: 2000
        domain:
          type: string
          description: Optional domain filter, e.g. MEDICINE (case-insensitive)
        limit:
          type: integer
          minimum: 1
          maximum: 100
          default: 10
        offset:
          type: integer
          minimum: 0
          default: 0
    DomainsResponse:
      type: object
      properties:
        domains:
          type: array
          items:
            type: object
            properties:
              name:
                type: string
              count:
                type: integer
    RelatedResponse:
      type: object
      properties:
        id:
          type: string
        kb_snapshot:
          type:
          - string
          - 'null'
        related:
          type: array
          items:
            allOf:
            - $ref: '#/components/schemas/KnowledgeResult'
            - type: object
              properties:
                relation:
                  type: string
                  enum:
                  - same-cluster
                  - neighbor-cluster
                cross_domain:
                  type: boolean
    KnowledgeResult:
      type: object
      properties:
        id:
          type: string
          description: Stable entry id
        title:
          type: string
        snippet:
          type: string
        metadata:
          type: object
          properties:
            domain:
              type: string
            source:
              type: string
        score:
          $ref: '#/components/schemas/Score'
        state:
          $ref: '#/components/schemas/State'
    Pagination:
      type: object
      properties:
        offset:
          type: integer
        limit:
          type: integer
        total:
          type: integer
        has_more:
          type: boolean
    State:
      type: string
      enum:
      - CRYSTALLINE
      - FLUID
      - REACTIVE
      - DECOHERENT
      description: Result confidence state derived from the Ψ score
    BatchResponse:
      type: object
      properties:
        kb_snapshot:
          type:
          - string
          - 'null'
        count:
          type: integer
        searches:
          type: array
          items:
            type: object
            properties:
              query:
                type: string
              total:
                type: integer
              results:
                type: array
                items:
                  $ref: '#/components/schemas/KnowledgeResult'
    VerifyResponse:
      type: object
      properties:
        id:
          type: string
        found:
          type: boolean
        matches:
          type: boolean
        current_hash:
          type:
          - string
          - 'null'
        kb_snapshot:
          type:
          - string
          - 'null'
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: API key `cs_live_…` (or dashboard session `cs_sess_…`)
externalDocs:
  description: Human-readable API reference
  url: https://services.coldstate.ai/docs
x-refined-from:
- coldstate-ai-openapi.json
- coldstate-ai-openapi.yml