Create Library Document
POST /library/documents
Create a TEXT document from a string.
The counterpart to /documents/upload: no file, no extraction, the
content you send is the content stored. Use it for material you already
have as text.
Authorizations
Parameters
Header Parameters
Request Body required
Create a TEXT document in the Library.
Mirrors campaign_builder.routers.library.CreateDocumentRequest. For a
file, use POST /library/documents/upload instead - this path stores the
content string verbatim and runs no extraction.
object
The document text. Stored verbatim.
Whose library this belongs to.
How the document is listed.
Stored file name.
Where it lands, e.g. Library/Case Studies. The folder must already exist.
Where the text came from; manual or copilot are what the app writes. NOT validated by the app, so any value is accepted and stored as given.
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