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

# Search knowledge

`GET /knowledge/search`

Search knowledge files by keyword. Pass recent=true without a keyword to browse recent files. 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
- `recent` boolean

## Response `200`

Search results

- object

## Other responses

- `400` — Invalid request

---

[API](https://skmtc.net/tencentblueking/apis/weknora-api.md) · [All operations](https://skmtc.net/tencentblueking/apis/weknora-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/tencentblueking/weknora-api/revisions/abce9036def5/schema)
