Search branch files

http
POST /projects/{project_reference}/branches/{branchName}/search

Search branch files. Requires project.files.read.

Parameters

NameInRequiredDescription
project_referencepathYes
branchNamepathYes

Request body

FieldTypeRequiredDescription
modelobject
document_scopeobject
vectorarrayYesPre-computed query embedding vector. Generate it with an embedding provider before sending the request.
dimensionYesEmbedding vector dimension: 768, 1024, 1536, 3072, or 4096.
limitnumberMaximum search results to return, as an integer from 1 to 100.
cursorstringOpaque cursor returned from page_info.next.
thresholdnumberMinimum similarity score for returned semantic matches.

Responses

StatusDescription
200Search results. Searches branch content using a precomputed embedding vector.
400Bad request
401Unauthorized
403Forbidden
404Not found
500Server error