PapermarkDocs

links

Create, list, get, and delete share links.

A link is the public-facing URL someone uses to view a document or dataroom. Links carry their own access controls (password, email gating, expiry, download permission); the document or dataroom behind them just sits there.

list

papermark links list [--document <id>] [--dataroom <id>] [--limit <n>] [--cursor <id>]

Lists share links. Filter by document or dataroom, or omit both for all links.

FlagDefaultEffect
--document <id>noneOnly links pointing at this document
--dataroom <id>noneOnly links pointing at this dataroom
-l, --limit <n>25Page size, 1–100
-c, --cursor <id>noneContinuation cursor
papermark links list --document doc_aBc123

For dataroom-bound links specifically, papermark datarooms links <id> is an ergonomic equivalent that takes the dataroom ID positionally instead of as a flag.

get

papermark links get <id>

Fetches one link by ID. Includes its access controls but not the view history; use views list for that.

create

papermark links create \
  (--document <id> | --dataroom <id>) \
  [--name <name>] \
  [--password <password>] \
  [--expires <iso-8601>] \
  [--email-protected] \
  [--allow-download] \
  [--confidential-view] \
  [--watermark] \
  [--watermark-text <text>] \
  [--watermark-tiled <on|off>] \
  [--watermark-position <pos>] \
  [--watermark-rotation <deg>] \
  [--watermark-color <hex>] \
  [--watermark-font-size <n>] \
  [--watermark-opacity <n>]

Either --document or --dataroom is required (exactly one).

FlagDefaultEffect
--document <id>noneDocument to share
--dataroom <id>noneDataroom to share
-n, --name <name>autoInternal label
--password <pw>noneViewer must enter this password
--expires <iso>neverISO 8601 datetime, e.g. 2026-12-31T00:00:00Z
--email-protectedoffViewer must enter their email before viewing
--allow-downloadoffViewer can download the file (default is view-only)
--confidential-viewoffReveal only a narrow band of each page at a time; rest is blurred (anti-screenshot)
--watermarkoffEnable watermark overlay. Implied when any --watermark-* flag is set.
--watermark-text <text>noneWatermark text. Tokens {{email}}, {{date}}, {{time}}, {{link}}, {{ipAddress}} are interpolated per view.
--watermark-tiled <on|off>noneTile the watermark across the page instead of anchoring it.
--watermark-position <pos>noneOne of top-left, top-center, top-right, middle-left, middle-center, middle-right, bottom-left, bottom-center, bottom-right.
--watermark-rotation <deg>noneOne of 0, 30, 45, 90, 180.
--watermark-color <hex>noneText color as #RGB or #RRGGBB.
--watermark-font-size <n>noneFont size in points (integer, 1–96).
--watermark-opacity <n>noneOpacity from 0 (invisible) to 1 (fully opaque).

The seven --watermark-* config flags must be passed together. Pass --watermark alone to enable the overlay with viewer defaults.

$ papermark links create \
    --document doc_KlmN456 \
    --password "open-sesame" \
    --expires 2026-12-31T00:00:00Z \
    --email-protected
ID:    link_abcd1234
URL:   https://papermark.com/view/abcd1234efgh

update

papermark links update <id> [flags]

Change a link's access controls in place. The URL stays the same; viewers don't need to be re-notified. PATCH semantics: omitted flags are unchanged, but a passed value replaces the current one.

Boolean access controls are tri-state and take on or off:

FlagEffect
-n, --name <name>Rename the link
--expires <iso>Set expiry; empty string clears it
--password <pw>Set password; empty string clears it
--email-protected <on|off>Toggle email gating
--email-authenticated <on|off>Toggle email verification
--allow-download <on|off>Toggle download permission
--allow-list <items>Comma-separated email/domain allow list
--deny-list <items>Comma-separated email/domain deny list
--watermark <on|off>Toggle watermark overlay
--watermark-text <text>Update watermark text (with {{email}} / {{date}} / {{time}} / {{link}} / {{ipAddress}} tokens)
--watermark-tiled <on|off>Tile vs. anchored at --watermark-position
--watermark-position <pos>One of 9 anchor positions
--watermark-rotation <deg>One of 0, 30, 45, 90, 180
--watermark-color <hex>#RGB or #RRGGBB
--watermark-font-size <n>1–96
--watermark-opacity <n>01
--watermark-clearClear the existing watermark config (mutually exclusive with --watermark-*)
--screenshot-protection <on|off>Toggle screenshot blur
--confidential-view <on|off>Toggle anti-screenshot view (only a narrow band of each page renders sharp)

Watermark config on update is PATCH-style: pass all seven --watermark-* flags together to replace the config, or pass --watermark-clear to drop it.

papermark links update link_abcd1234 --confidential-view on

delete

papermark links delete <id>

Revokes the link. The URL stops working immediately; existing viewers in flight see an "expired" page on the next request.

Required scopes

CommandScope
list, getlinks.read
create, update, deletelinks.write

For dataroom-bound links, you also need datarooms.read on the referenced dataroom.

On this page