Skip to main content
POST
Semantic search

Authorizations

Authorization
string
header
required

User session JWT or instance API key (iak_*). Send as Authorization: Bearer <token>.

Path Parameters

knowledgeBaseId
string
required

Knowledge base id. Legacy physical prefix vs_ (the kb_ rename is deferred).

Maximum string length: 128
Pattern: ^vs_[A-Za-z0-9-]+$

Body

application/json
query
string
required
Maximum string length: 8192
limit
integer
default:10
Required range: 1 <= x <= 50
min_score
number

Drop hits below this score.

filter
object

Structured filter AST validated at the API boundary; provider adapters transform it into provider DSL internally. Invalid filters are rejected with 400 VALIDATION_ERROR, never silently coerced. Nesting capped at 8 levels; total leaf clauses at 100.

scope
enum<string>

Restrict to a scope. Omit for both.

Available options:
knowledge,
conversation
conversation_id
string

Required when scope: conversation.

Response

Search results, best score first.

object
enum<string>
required
Available options:
list
data
object[]
required