Upload a document
upload_documentSubmit a file to Paperless-ngx for processing via server path or base64 content, then poll the returned task ID for completion.
Instructions
Hand a file to Paperless for consumption. Provide either path (a file on the machine running this server — the cheap option) or content_base64 (works for remote deployments but costs context proportional to the file size; avoid for anything over a few hundred kilobytes). Consumption is asynchronous: the returned task ID can be polled with get_task.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | No | Absolute path to the file on the server's filesystem. | |
| tags | No | ||
| title | No | ||
| created | No | Document date, e.g. '2024-04-19'. | |
| filename | No | Filename to present to Paperless. Required with content_base64. | |
| storage_path | No | ||
| correspondent | No | ||
| document_type | No | ||
| content_base64 | No | Base64-encoded file contents. | |
| archive_serial_number | No |