---
title: "Cross-KB wiki search"
method: POST
path: "/wiki-search"
tags: ["Wiki"]
---

# Cross-KB wiki search

`POST /wiki-search`

## Request

- Base URL: `/api/v1` (relative, and the document was published on a file host, not at the API’s origin)
- URL: `/api/v1/wiki-search`
- Auth: one of:
  - API key in header `Authorization`
  - API key in header `X-API-Key`

Cross-KB wiki search using the same POSIX regex ranking as single-KB wiki search

## Request body

- InternalHandlerSearchWikiRequest
  - `knowledge_base_id` string
  - `knowledge_base_ids` string[]
  - `limit` integer
  - `query` string, required

## Response `200`

OK

- object
  - `data` InternalHandlerWikiSearchHit[]
    - `aliases` string[]
    - `id` string
    - `knowledge_base_id` string
    - `match_snippet` string
    - `page_type` string
    - `slug` string
    - `summary` string
    - `title` string
  - `success` boolean

## Other responses

- `400`: Bad Request

## Changes

- **2026-10-14** `a1c41ab134cc`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/tencentblueking/apis/weknora-api/changes/wiki-search/post.md)

---

[API](https://skmtc.dev/tencentblueking/apis/weknora-api.md) - [All operations](https://skmtc.dev/tencentblueking/apis/weknora-api/llms.txt) - [OpenAPI document](https://skmtc.dev/tencentblueking/apis/weknora-api/revisions/685d1f9fce30?raw)
