Folders
Get checklist validation results for a directory (folder)
Evaluate every AI checklist that targets this folder and return the pass/fail verdict for each, with the counts behind it and the document types it is still missing.
GET
Get checklist validation results for a directory (folder)
Request · Response · Guide: Folders
More details
More details
The evaluation runs when you call: there is no stored result to poll for and no “pending” state. A checklist is judged on the folder as it is at that moment.Path Parameters:
directoryId(required): The directory to evaluate
skipCache(optional, defaultfalse): Re-run the underlying queries instead of reading the cached result. The cache is invalidated whenever the folder’s contents change through this API, so the default is correct for almost every caller; passtrueonly when a change was made by another path and you need the folder re-read now. It is a heavy folder-tree query, so prefer the default. Acceptstrue,false,1or0— any other value is a 422.
pass/fail: how many entries inchecklistspassed and failed. Counts of checklists, NOT of documents.fail: 0is the all-passed case.checklists: one entry per checklist targeting the folder, each withchecklistId,checklistName,status,summaryandmissingSchemas.
summary carries all three keys, 0 when unused:missing: required document types absent from the foldercomplete: present documents with every required field filledincomplete: present documents with at least one required field empty
- A checklist passes when
missingandincompleteare both 0. missingSchemasnames the document types behindmissing(deduped,schemaId+schemaName). It is always present and empty on a passing checklist. Prefer it over inferring the types from the count.- A presence-only checklist (no field rules) reports
complete: 0, incomplete: 0and is judged onmissingalone. checklists: []means no checklist targets this folder. It is NOT an all-passed result, and no other field distinguishes the two — check the array before readingfail: 0as a pass.- A checklist with no name is returned as
Untitled checklist. directoryIdis echoed back in canonical lowercase form regardless of the case you send.- This endpoint only reads. It never changes the folder, its files, or any checklist.
Query Parameters
Response
The checklists targeting this folder, evaluated now. An empty checklists array means no checklist targets the folder.