---
title: "Query Knowledge Bases"
method: GET
path: "/knowledge_bases"
tags: ["Knowledge Base"]
---

# Query Knowledge Bases

`GET /knowledge_bases`

You can query knowledge base entries by making a request to this endpoint. Results are paginated and can be filtered by property or channel.

## Query parameters

- `offset` integer
- `limit` integer
- `property_ids` string
- `channel_types` string

## Response `200`

A paginated list of knowledge base entries

- object
  - `request_id` string, required — Unique identifier for the request.
  - `error_code` integer, required — Numeric error code representing the status of the response. A value of `200` indicates success. <br> See the [Error Codes](/reference/error-manual#error-codes) section for more information.
  - `error_msg` string, required — Message detailing the status of the response.
  - `data` object, required
    - `total` integer, required — Total number of knowledge base entries.
    - `knowledge_bases` object[], required — List of knowledge base entries
      - `id` integer, required — Unique identifier for the knowledge base entry
      - `scope_property` object, required — Property scope of this knowledge base entry
        - `type` 'all' | 'by_property' | 'by_group' | 'by_room_type', required — Scope type. all, by_property, by_group, or by_room_type.
        - `ids` integer[], required — Scope IDs. [-1] for all; property IDs for by_property; group IDs for by_group; room type IDs for by_room_type.
      - `scope_channel` object, required — Channel scope of this knowledge base entry
        - `type` 'all' | 'by_channel', required — Scope type: all or by_channel.
        - `channels` string[], required — Channel names. `['unlimited']` for all; channel name array (e.g. `['airbnb', 'booking.com']`) for by_channel. See [Supported Channels](/reference/supported-channels).
      - `is_enable` boolean, required — Whether the entry is enabled.
      - `title` string, required — Title of the knowledge base entry
      - `process_status` 'waiting' | 'processing' | 'done' | 'failed', required — Processing status of the entry. waiting/processing/done/failed.

---

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