Upload Library Document
POST /library/documents/upload
Upload ONE file to the Library. Multipart, like the app.
The app’s rules are enforced by the app and documented here so a caller sees them before spending the upload: 50 MB maximum, and the extension must be one of pdf, docx, doc, txt, md, mdx, csv, json, png, jpg, jpeg, xls, xlsx, ppt, pptx. Text-bearing types are extracted and indexed for retrieval; the rest are stored as bytes.
Authorizations
Parameters
Header Parameters
Request Body required
Responses
201
Successful Response
object
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
object
Whether there are more pages
Items per page
Current page number (1-indexed)
Total number of items
422
Validation Error