Photos and documents
Connect Immich and Paperless-ngx, so workflows can send photos and videos to Immich albums and file documents in Paperless.
Some files belong in a library built for them: photos and videos in Immich, scans, receipts and letters in Paperless-ngx. Avenvail stays the place you drop files, and a workflow sends each one on to where it belongs.
Add a connection under Automations › Connections with Add connection, then choose a service under Photo and document libraries.
Immich
| Setting | |
|---|---|
| Address | Where you open Immich in the browser, such as https://photos.example.com. Not the /api address. |
| API key | Kept secret. In Immich, open Account Settings › API Keys and create a key. |
Test connection reads the key's user, which changes nothing, and names who uploads will belong to.
A key with every permission works. If you limit it, it needs to upload assets, read your user, and read, create and add to albums.
A server on your own network needs Allow private network addresses, which only admins can turn on. See Outside addresses only.
How photos are sent
- The Upload to Immich step streams the file to Immich, up to 20 GiB, as a device called avenvail. Immich reads the photo's own metadata, such as where it was taken; the date taken comes from the file, or the upload date when it has none.
- Immich keeps one copy of each file per user. Uploading a file it already has succeeds and returns the existing photo, marked Already in Immich, so running a workflow again never makes duplicates.
- Albums are given by name and matched ignoring case. An album that doesn't exist is created, unless you turn that off. Adding a photo that's already in the album is fine.
- Links point at the photo's page in Immich, such as
https://photos.example.com/photos/….
Paperless-ngx
| Setting | |
|---|---|
| Address | Where you open Paperless in the browser, such as https://paperless.example.com. Not the /api address. |
| API token | Kept secret. In Paperless, open your profile (top right) and create or copy the API Auth Token. |
Test connection lists one tag, which changes nothing, and shows the Paperless version when the token works.
The token acts as your Paperless user, so documents Avenvail sends are owned by that user, and the step can only use and create tags, correspondents and document types that user may. Create a separate Paperless user for Avenvail if you want to keep its documents apart.
A Paperless server on your own network needs Allow private network addresses, which only admins can turn on. See Outside addresses only.
How documents are sent
- The Send to Paperless step uploads the file to Paperless's consumption endpoint, streamed, up to 2 GiB. Paperless then processes it as it would a file in its consume folder: OCR, its own matching rules and workflows.
- Tags, correspondents and document types are given by name and matched ignoring case. Names Paperless doesn't have are created, with matching turned off so Paperless doesn't start assigning them by itself, unless you turn Create missing names off.
- The step waits up to two minutes for Paperless to finish, so it can return the document's link and save it in a field. When Paperless refuses a file it already has (same checksum), the step still succeeds, with the status
duplicateand the existing document's link. - Avenvail sends the request with API version 5, which Paperless-ngx 2.0 and later understand.