Skip to main content
POST
Search a knowledge base

Authorizations

Authorization
string
header
required

Dashboard JWT token from Clerk

Path Parameters

id
string
required

Knowledge base ID (kb_…).

Body

application/json
query
string
required

Natural-language query to embed and match against the base's chunks.

Required string length: 1 - 1000
Example:

"What is your refund policy for annual plans?"

limit
integer
default:5

Maximum number of chunks to return. Defaults to 5.

Required range: 1 <= x <= 20
Example:

5

Response

The ranked chunk matches for the query.

data
object
meta
object