---
title: "GET Knowledge Base Search"
method: GET
path: "/v2/knowledge_base/search"
---

# GET Knowledge Base Search

`GET /v2/knowledge_base/search`

Searches the knowledge base for curated Q&As and past questionnaire answers matching a text query. Returns results from both the curated knowledge base and historical questionnaire answers. Answers are truncated to 500 characters. Authentication: API key or OAuth.

## Query parameters

- `query_text` string, required
- `product_line_ids` string

## Response `200`

Knowledge Base search results.

- object
  - `total` integer, required — Number of results returned.
  - `results` object[], required — Search result objects.
    - `id` string, required — Question ID.
    - `type` 'curated_qa' | 'past_answer', required — Result source type.
    - `question` string, required — The question text.
    - `answer` string, nullable — The answer text, truncated to 500 characters.
    - `status` string, nullable — Question status. Present for curated_qa results only.
    - `categories` string[], nullable — Category names. Present for curated_qa results only.
    - `product_lines` object[], nullable — Product line objects. Present for curated_qa results only.
      - `id` string — Product line ID.
      - `name` string — Product line name.
    - `questionnaire_name` string, nullable — Source questionnaire name. Present for past_answer results only.
    - `created_at` string, date-time, required — When the question was created.
    - `updated_at` string, date-time, required — When the question was last updated.

## Other responses

- `400` — query_text is missing or product_line_ids are invalid.
- `401` — Unauthorized: missing or invalid credentials.
- `403` — Forbidden: insufficient permissions.

---

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