API 参考
1 个接口 · 概览
Every word must match the name, a non-core sidecar (tags, AI prompts, transcripts, media facts) or a live comment; any part of a word matches, case-insensitively. Name matches rank first, then closer names, then newer files. When the server has an embeddings model (SIDESPACE_EMBED_URL, ADR 0018), files close in meaning to the query follow, with matched ["meaning"] and a score, so a plain description finds files that share none of its words. Hits in a transcript or a timed comment, and pieces of a transcript close in meaning, are listed as moments. Only spaces the caller is a member of are searched.
qstring必填spacestringtypestringvideoimageaudiofolderothermodestringautokeywordmeaninglimitinteger200itemsSearchHit[]必填space_namestring必填folderstring必填matchedstring[]必填snippetstringmomentsSearchMoment[]at_msinteger (int64)必填until_msinteger (int64)textstring必填sourcestring必填transcriptcommentsmeaningscorenumbercurl "https://side.example.com/v1/search?q=harbor%20night" \
-H "Authorization: Bearer $SIDESPACE_TOKEN"{
"items": [
{
"node": {},
"space_name": "space_name",
"folder": "folder",
"matched": [],
"snippet": "snippet",
"moments": [],
"score": 0.5
}
]
}