Inbound Attachments
Documents that arrived by email before they belong to a case: the tenant-wide queue, assignment to a purchase order, and the caller's own routed mail.
List inbound email attachments
List all PDF attachments received via IMAP with filtering.
Soft delete attachment
Mark an attachment as deleted (preserves audit trail).
Get inbound email attachment
Get a single attachment with presigned URL for file access.
Assign purchase order to attachment
Manually match an unmatched attachment to a purchase order with specified document intent.
Restore a parked attachment into the invoice flow
Creates the invoice from the stored file of an attachment the intake classifier set aside, skipping classification (the human has overruled it), and marks the attachment ingested. The invoice lands at PENDING_EXTRACTION in the normal flow as an invoice without purchase order. Allowed for an accountant on any parked attachment, or for the attachment's own recipient on theirs; only classifier set-asides are parked, and a duplicate of an already-invoiced document is refused by the checksum guard.
List inbound email attachments routed to the current user
Returns the calling user's own inbound email attachments (per ADR-0027 / #2437). Scope is enforced server-side from the auth context; the endpoint ignores any recipient hint passed via query string. While per-user routing is not enabled the response is empty.