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

# Query Knowledge

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

Query Knowledge

## Query parameters

- `id` string

## Headers

- `x-api-key` string

## Request body

- object
  - `query` string

## Response `200`

Example

- object
  - `chatbot` object
    - `active` boolean
    - `created_at` string
    - `description` string
    - `id` string
    - `is_public` boolean
    - `name` string
    - `openai_api_key` unknown
    - `organization_id` string
    - `personality_config` object
      - `style` string
      - `tone` string
    - `settings` object
      - `avatar` string
      - `greeting` string
      - `isRequestUserInfoEnabled` boolean
      - `isToolEnabled` boolean
      - `model` string
      - `prompt` string
      - `snippet` object
        - `header` string
        - `logo` string
        - `name` string
        - `primaryColor` string
        - `secondaryColor` string
        - `slogan` string
    - `slug` string
    - `updated_at` string

## Changes

- **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/6942be06fd1e/schema)
