---
title: "Query Knowledge"
method: POST
path: "/api/external/chatbot/{chatbotId}/query-knowledge"
---

# Query Knowledge

`POST /api/external/chatbot/{chatbotId}/query-knowledge`

Query Knowledge

## Headers

- `x-api-key` string

## Request body

- object
  - `query` string

## Response `200`

Example

- object
  - `results` object[]
    - `content` string
    - `similarity` number
  - `similarity_threshold_setting` number
  - `status` string
  - `total_docs` number

## Changes

- **2026-07-13** `53c69266d405` — 2 warning, 4 info
  - deleted the `query` request parameter `id`
  - removed the optional property `chatbot` from the response with the `200` status
  - added the optional property `results` to the response with the `200` status
  - added the optional property `similarity_threshold_setting` to the response with the `200` status
  - …2 more
- **2025-01-22** `9a74b2d0931e` — 9 warning, 2 info
  - the optional response header `Access-Control-Allow-Credentials` removed for the status `200`
  - the optional response header `Access-Control-Allow-Methods` removed for the status `200`
  - the optional response header `Access-Control-Allow-Origin` removed for the status `200`
  - the optional response header `access-control-allow-headers` removed for the status `200`
  - …7 more

[Change history](https://skmtc.dev/dasomx/apis/okchat2-0/changes/api/external/chatbot/:chatbotId/query-knowledge/post.md)

---

[API](https://skmtc.dev/dasomx/apis/okchat2-0.md) · [All operations](https://skmtc.dev/dasomx/apis/okchat2-0/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/dasomx/okchat2-0/revisions/53c69266d405/schema)
