paperless-api
A small async Rust client for interacting with the Paperless-ngx API.
This crate provides PaperlessClient for talking to a Paperless instance and
convenience types for working with documents, tags, custom fields,
correspondents, document types, and tasks.
Features
- Async API built on
reqwest - Access documents and related metadata from Paperless
- Local metadata caching
- Upload documents
- Query task status
Getting started
Create a client with your Paperless base URL and API token:
use PaperlessClient;
async
Refreshing cached metadata
The client keeps some metadata cached locally, such as tags, custom fields, correspondents, and document types.
You can refresh the caches individually or all:
use ;
async
Additional headers
If your paperless instance requires additional headers to be accessed, you can provide them during client creation:
use HashMap;
use PaperlessClient;
let mut headers = new;
headers.insert;
let client = new.expect;