Skip to Content
Docs

Search for relevant documents based on query

POST
/api/search

Search for relevant documents based on query.

Personal access token scope: chat:run.

Authorization

bearer
headerAuthorizationBearer <token>

A session token or a personal access token. Leave it empty when the instance runs without authentication (AUTH_TYPE unset).

Request Body

application/json
  1. body
api_key*string

API key for authentication

chunks?integer

Number of results to return

Default5
question*string

Search query

Response Body

Success

Example Request
curl -X POST 'http://localhost:7091/api/search' \  -H 'Content-Type: application/json' \  -d '{  "api_key": "string",  "question": "string"}'
Example Response200
Empty