Upload Document
Import and save a document from a file URL or direct file upload into the user’s Workspace.
Required scopes (OAuth 2.0)
Required scopes (OAuth 2.0)
pdf:filesAuthorizations
Provide your API key in the X-API-Key header, e.g., X-API-Key: YOUR_API_KEY.
Body
Creation method. One of:
file-upload— import from a file (PDF or other supported formats).template— create from a PDF template.
file-upload, template Human-friendly title of the document (1–255 characters).
1 - 255Method-specific payload. Schema depends on the method chosen:
- For
file-upload: UseDocumentDataFileUploadschema. - For
template: UseDocumentDataTemplateschema.
- Option 1
- Option 2
Response
Returns the summary of the created document.
Unique identifier of the document in Lumin.
Human-friendly name of the document.
Unix timestamp (milliseconds) when the document was created.
Unix timestamp (milliseconds) when the document was last updated.
Where the document is stored.
Size of the PDF file in bytes.
MIME type of the file (e.g. application/pdf).
URL to open the document in Lumin's viewer.