---
title: "Search the global knowledge base"
method: POST
path: "/v1/search/global"
tags: ["Knowledge"]
---

# Search the global knowledge base

`POST /v1/search/global`

## Request

- Base URL: `https://cold-api.coldstate.ai`
- URL: `https://cold-api.coldstate.ai/v1/search/global`
- Auth: HTTP bearer

## Request body

- GlobalSearchRequest
  - `query` string, required
  - `domain` string: Optional domain filter, e.g. MEDICINE (case-insensitive)
  - `limit` integer
  - `offset` integer

## Response `200`

OK

- GlobalSearchResponse
  - `source` 'global'
  - `domain` string, nullable
  - `query` string
  - `kb_snapshot` string, nullable: Pin this to reproduce results later
  - `results` KnowledgeResult[]
    - `id` string: Stable entry id
    - `title` string
    - `snippet` string
    - `metadata` object
      - `domain` string
      - `source` string
    - `score` Score
      - `Ψ` number, required
    - `state` 'CRYSTALLINE' | 'FLUID' | 'REACTIVE' | 'DECOHERENT': Result confidence state derived from the Ψ score
  - `diagnostics` object
    - `execution_time_ms` number
    - `results_count` integer
    - `state_distribution` StateDistribution
      - `CRYSTALLINE` integer
      - `FLUID` integer
      - `REACTIVE` integer
      - `DECOHERENT` integer
  - `pagination` Pagination
    - `offset` integer
    - `limit` integer
    - `total` integer
    - `has_more` boolean

## Other responses

- `400`: Validation error
- `401`: Missing or invalid API key
- `429`: Rate or quota limit exceeded

---

[API](https://skmtc.dev/coldstate/apis/coldstate-api.md) · [All operations](https://skmtc.dev/coldstate/apis/coldstate-api/llms.txt) · [OpenAPI document](https://skmtc.dev/coldstate/apis/coldstate-api/revisions/609b567f955c?raw)
