Rebuild the search index from the notes folder
POST
/reindex
const url = 'http://127.0.0.1:7677/reindex';const options = {method: 'POST', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url http://127.0.0.1:7677/reindex \ --header 'Authorization: Bearer <token>'Authorizations
Section titled “Authorizations ”Responses
Section titled “ Responses ”Reindex result
Media type application/json
object
data
object
count
required
Number of notes reindexed
integer
embedding
Embedding provider details, if configured
object
provider
string
model
string
dimensions
integer
baseUrl
string
Example generated
{ "data": { "count": 1, "embedding": { "provider": "example", "model": "example", "dimensions": 1, "baseUrl": "example" } }}