---
title: "Query Knowledge Base"
method: POST
path: "/api/mcp/v1/knowledge/query"
tags: ["Knowledge Base & RAG"]
---

# Query Knowledge Base

`POST /api/mcp/v1/knowledge/query`

## Request

- Base URL: `https://flowdot.ai/api`
- URL: `https://flowdot.ai/api/api/mcp/v1/knowledge/query`
- Auth: HTTP bearer

Search your knowledge base using semantic and keyword search.

## Request body

- object
  - `query` string: Search query
  - `top_k` integer: Number of results (1-50, default 5)
  - `team_id` integer: Limit to team
  - `category_id` integer: Limit to category
  - `include_team` boolean: Include team docs (default true)
  - `include_personal` boolean: Include personal docs (default true)

## Response `200`

Successful response

- unknown

## Other responses

- `401`: Unauthenticated

---

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