---
title: "Rag Search"
method: POST
path: "/api/v1/search/rag"
tags: ["Search"]
---

# Rag Search

`POST /api/v1/search/rag`

## Request

- Base URL: `https://api.dialogbrain.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.dialogbrain.com/api/v1/search/rag`
- Auth: none declared

Search the workspace's knowledge base and return the passages most relevant to the query, with their sources.

## Request body

- RagSearchRequest
  - `query` string, required
  - `limit` integer
  - `thread_id` string, nullable

## Response `200`

Successful Response

- unknown

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/dialogbrain/apis/dialogbrain-v2-api-gateway.md) · [All operations](https://skmtc.dev/dialogbrain/apis/dialogbrain-v2-api-gateway/llms.txt) · [OpenAPI document](https://skmtc.dev/dialogbrain/apis/dialogbrain-v2-api-gateway/revisions/77bef09a9209?raw)
