Skip to main content
POST
Search Collection

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Headers

X-Workspace-Id
string | null

The workspace ID

Body

application/json

Request schema for knowledge search.

query
string
required

Search query string

collection_id
string
required

ID of the collection to search in

search_type
enum<string>
default:hybrid

Type of search to perform

Available options:
vector,
keyword,
hybrid
filters
Filters · object

Additional filters to apply

max_results
integer
default:10

Maximum number of results to return

Required range: 1 <= x <= 100

Response

Successful Response

Response schema for knowledge search.

results
SearchResult · object[]
required

List of search results

total_results
integer
required

Total number of results found

query
string
required

Original search query

search_type
enum<string>
required

Type of search performed

Available options:
vector,
keyword,
hybrid
collection_id
string
required

Collection that was searched

execution_time_ms
number | null

Search execution time in milliseconds