Check admin search integrity
const url = 'https://example.com/api/v1/admin/search/integrity/check';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 https://example.com/api/v1/admin/search/integrity/check \ --header 'Authorization: Bearer <token>'Checks the admin search integrity. It requires a signed-in User with the admin scope and the admin or owner Role. It can return 401 if the session is missing or expired, 403 if access is denied and 503 if the service is temporarily unavailable. Route: /api/v1/admin/search/integrity/check. Inputs: . A recent account assertion is required. Do not automatically replay this operation after an uncertain result.
Authorizations
Section titled “Authorizations”Responses
Section titled “Responses”Latest full comparison between the filesystem and the derived search Index.
object
Unix time in milliseconds for the last completed check.
Number of searchable filesystem paths checked, including folders.
True when the post-repair Index matches the filesystem and manifest.
The latest scan error, if a check did not complete.
Filesystem paths whose SQLite manifest row needed an update.
Documents missing from the Index before repair.
Source paths changed by the repair.
True while the actor is scanning and repairing the Index.
Documents absent from the filesystem or duplicated in the Index.
Examplegenerated
{ "checked_at_unix_ms": 1, "checked_items": 1, "healthy": true, "last_error": "example", "manifest_mismatches": 1, "missing_items": 1, "repaired_items": 1, "running": true, "stale_items": 1}