v5

latestOpenAPI 3.0.3MITraw.githubusercontent.com2026-08-0112516159.5 KB

Search within collection

post/collection/{collection_id}/search/

Path parameters

collection_idstring required
Example:default

Request body

querystring required
index_type'spoken_word' | 'scene'
search_type'semantic' | 'custom'
score_thresholdnumber
result_thresholdinteger
stitchboolean
rerankboolean
filterobject[]

Example request

{
  "query": "search query",
  "index_type": "spoken_word",
  "search_type": "semantic",
  "score_threshold": 0.2,
  "result_threshold": 10,
  "stitch": true
}

Response

Search results

successboolean

Example response

{
  "success": true,
  "data": {
    "query": "search query",
    "results": [
      {
        "video_id": "m-12345",
        "start": 10.5,
        "end": 20.3,
        "text": "matched content",
        "score": 0.95
      }
    ]
  }
}