Paper API

Bramble Paper: document management on top of Drive. Cabinets (Drive libraries), documents with recognised text, labels (tags, correspondents, document types), saved views, bulk changes, locked PDFs, and mail intake rules that file attachments automatically.

Address
https://<your-org>.brambleit.cloud/paper
Sign-in
Signed-in browser session (the sso_session / session_id cookies from Bramble sign-in).
Endpoints
38
OpenAPI
paper.json
Guides
How Paper works

Signing in

These endpoints use a signed-in browser session. From your own systems, use Flows webhooks and Bramble steps, or the main API with an API key. See Calling the API.

Documents are Drive files. A cabinet is a Drive library; Paper adds the text, labels and dates. Sharing is Drive's sharing.

Labels come in three kinds — tags, correspondents and doctypes — and can belong to one cabinet or all of them. Each can be set by a matching rule or learnt automatically.

Resources

Documents

Searching and listing documents, one document, its file and thumbnail, editing, bulk changes, reprocessing, locked PDFs, sharing links, and saved views.

MethodPathSummary
GET/api/meWho you are: the signed-in person and what they can do here
GET/api/documentsSearch and list documents
GET/api/documents/:idGet a document
PATCH/api/documents/:idUpdate a document
DELETE/api/documents/:idDelete a document
POST/api/documents/bulkChange many documents at once
POST/api/documents/:id/reprocessRead a document's text again
GET/api/documents/:id/fileThe file itself, streamed from Drive (Range passed on, for PDF.js)
POST/api/documents/:id/unlockUnlock a password-protected PDF
GET/api/documents/:id/thumbA document's thumbnail
GET/api/documents/:id/sharingSharing is Drive's: links (with expiry, password, download switch) and people/groups
POST/api/documents/:id/linksCreate a share link
DELETE/api/documents/:id/links/:lidDelete a share link
POST/api/uploadAdd a document
POST/api/viewsSave a view (filters)
DELETE/api/views/:idDelete a saved view

Cabinets

Cabinets (from Drive libraries), their folder templates, watching Drive for new files, and saved passwords for locked PDFs.

MethodPathSummary
GET/api/cabinetsList cabinets
GET/api/cabinets/librariesDrive libraries that could become cabinets
POST/api/cabinetsMake a library a cabinet
PATCH/api/cabinets/:idUpdate a cabinet
DELETE/api/cabinets/:idStop using a library as a cabinet
GET/api/cabinets/:id/passwordsSaved passwords for locked PDFs (labels only — never the passwords back)
POST/api/cabinets/:id/passwordsSave a password for locked PDFs
DELETE/api/cabinets/:id/passwords/:pidDelete a saved password

Labels

Tags, correspondents and document types, with their matching rules.

MethodPathSummary
GET/api/labels/:kindList labels
POST/api/labels/:kindCreate a label
PATCH/api/labels/:kind/:idUpdate a label
DELETE/api/labels/:kind/:idDelete a label

Mail intake

Mailboxes Paper checks, and the rules that file their attachments into cabinets.

MethodPathSummary
GET/api/mailMail accounts and rules
POST/api/mail/accountsAdd a mailbox to check
PATCH/api/mail/accounts/:idUpdate a mailbox
DELETE/api/mail/accounts/:idRemove a mailbox
POST/api/mail/accounts/:id/testSigns in and returns the folders
POST/api/mail/accounts/:id/checkCheck a mailbox now
POST/api/mail/rulesCreate a mail rule
PATCH/api/mail/rules/:idUpdate a mail rule
DELETE/api/mail/rules/:idDelete a mail rule

Share to Paper

Where "Share to Paper" from a phone lands.

MethodPathSummary
POST/share"Share to Paper" from a phone lands here only if the service worker (which normally takes the files) isn't installed yet: just open the app

Web pages

These return pages for the browser rather than data.

  • GET /
  • GET /sw.js