Skip to main content
POST
/
api
/
v1
/
workers
/
janitor
/
fix
curl -X POST https://alfred.black/api/v1/workers/janitor/fix \
  -H "Authorization: Bearer alf_your_key_here" \
  -H "Content-Type: application/json"
{
  "files_scanned": 423,
  "issues_found": 12,
  "issues_fixed": 10
}
Runs a vault health scan and then automatically fixes the detected issues. The Janitor agent will update frontmatter, repair broken links, and clean up orphaned records.
This operation modifies vault files. All changes are tracked in the audit log, but consider backing up your vault first.
curl -X POST https://alfred.black/api/v1/workers/janitor/fix \
  -H "Authorization: Bearer alf_your_key_here" \
  -H "Content-Type: application/json"
{
  "files_scanned": 423,
  "issues_found": 12,
  "issues_fixed": 10
}
If the response contains structured JSON, it is returned directly. Otherwise, the output is returned in a raw field.
raw
string
Human-readable output when structured JSON is not available.