POST
/
v2
/
agents
/
{agent_id}
/
kb
/
vector_search

Authorizations

Authorization
string
headerrequired

Agent/Workspace secret API key as bearer token.

Path Parameters

agent_id
string
required

The ID of the agent to search the KB of

Body

application/json
vector
number[]
required

The embedding search vector.

max_chunks
integer

The maximum number of chunks to consider for the search (defaults to a default value if not provided).

with_payload
boolean

Flag indicating whether to include payload data in the search results (defaults to true if not provided).

with_vector
boolean

Flag indicating whether to include vectors in the search results (defaults to false if not provided).

similarity_threshold
number

The similarity threshold for the search (defaults to 0 if not provided).

Response

200 - application/json
success
boolean
message
string
data
object[]

Array of objects with the relevant payloads and optionally the vector