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

# Search knowledge base

`POST /v1/kb/search`

Hybrid search over the workspace knowledge base. Returns the top matching chunks with their parent node titles and relevance scores.

## Query parameters

- `workspace_id` string, required — Workspace to query.

## Request body

- object
  - `query` string, required — Natural-language search query.
  - `entity_ids` string[] — Restrict results to nodes scoped to any of these entities.
  - `max_results` integer — Maximum number of results to return.

## Response `200`

Knowledge search results

- object
  - `data` object[], required
    - `node_id` string, required
    - `chunk_id` string, required
    - `node_title` string, required
    - `chunk_text` string, required
    - `context` string
    - `chunk_index` number — 0-based position of the chunk within its parent node.
    - `source` string
    - `relevance_score` number — Hybrid search score, 0-1. Higher is better.

## Other responses

- `400` — Invalid request
- `401` — Unauthorized
- `403` — Forbidden
- `404` — Not found
- `429` — Rate limit exceeded
- `500` — Internal error
- `503` — Knowledge service temporarily unavailable

---

[API](https://skmtc.dev/conduit/apis/conduit-api.md) · [All operations](https://skmtc.dev/conduit/apis/conduit-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/conduit/conduit-api/revisions/3ad7e17f96ad/schema)
