---
title: "Search knowledge"
method: GET
path: "/knowledge/search"
tags: ["Knowledge"]
---

# Search knowledge

`GET /knowledge/search`

Search knowledge files by keyword. When agent_id is set (shared agent), scope is the agent's configured knowledge bases.

## Query parameters

- `keyword` string
- `offset` integer
- `limit` integer
- `file_types` string
- `agent_id` string

## Response `200`

Search results

- object

## Other responses

- `400` — Invalid request

## Changes

- **2026-02-26** `3762795e29b6` — 2 info
  - added the new optional `query` request parameter `agent_id`
  - added the new optional `query` request parameter `file_types`
- **2025-12-22** `e625bcd5b8b9` — 1 info
  - endpoint added
- **2025-12-16** `edf61e68559d` — 1 breaking
  - api path removed without deprecation

[Change history](https://skmtc.dev/tencentblueking/apis/weknora-api/changes/knowledge/search/get.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-service-production.skmtc.workers.dev/v1/apis/tencentblueking/weknora-api/revisions/08f8a25fbf1d/schema)
