Get admin search integrity
const url = 'https://example.com/api/v1/admin/search/integrity';const options = {method: 'GET', 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 GET \ --url https://example.com/api/v1/admin/search/integrity \ --header 'Authorization: Bearer <token>'Returns 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 and 403 if access is denied. Route: /api/v1/admin/search/integrity. Inputs: . Safe reads can use bounded retries.
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}