Skip to content

Reextract All Library Documents

POST
/library/documents/reextract-all

Re-run text extraction across a folder, or the whole library.

Use it after an extraction improvement, or when documents uploaded before a fix have empty or garbled text. It replaces the stored text; the original bytes are untouched.

Authorizations

Parameters

Query Parameters

folder_path
Any of:
string

Limit to one folder. Omit to re-extract EVERY PDF and DOCX in the library, which on a large library is a long job.

Header Parameters

X-Target-Org-Id
Any of:
string

Responses

200

Successful Response

object
data
required

An open envelope for one document, folder or questionnaire.

Open on purpose: a Library document carries extraction metadata, a questionnaire carries per-provider processing detail, and a generated deal document carries structured_data and highlights whose shape is the generator’s rather than this contract’s. Pinning those would silently drop whatever the app learned to return that this file had not caught up on.

object
key
additional properties
any
pagination
Any of:
object
has_next
required

Whether there are more pages

boolean
limit
required

Items per page

integer
next_cursor
Any of:
string
notes
Any of:
Array<string>
page
required

Current page number (1-indexed)

integer
total
required

Total number of items

integer
total_available
Any of:
integer
total_is_lower_bound
Any of:
boolean

422

Validation Error

object
detail
Array<object>
object
loc
required
Array
msg
required
string
type
required
string