Authorization: Bearer sm_… header and live under https://useshareable.com/api/v1.
The page object
The invite list as
{ email, role } objects (role is view). Kept in sync with allowed_emails.The page password, for you to share (only on single-page responses — create, get, update, publish — when
access is password; omitted from the list).Pro. Collect email-verified client sign-off — designated approvers Approve / Request changes on the page. Set
approver_emails too.Read-only. Whether the published page collects responses — set automatically on publish when the HTML contains a
<form data-shareable> or a Shareable.submit( call. Read them with GET /pages/{id}/responses.When the page stops (or stopped) accepting new responses. A past time means collection is closed; a future time schedules the close, and responses are accepted until then.
null when collection isn’t closed.Owner-set link-preview (unfurl) description, or
null to fall back to the page’s own OG tags.Create a page
POST /api/v1/pages
Pass html (or upload_id / html_base64 / html_url) for a single page, files for a multi-page
deck, or file_base64 (or upload_id / file_url) for a PDF or image — one of these per request.
Complete, self-contained HTML document (all assets inlined). For a single page, provide this
or
upload_id or html_base64 or html_url. Up to your plan’s per-file cap (Free 5 MB), and at most 7 MB for any HTML page for now, because larger pages time out when saved.An id from
POST /uploads after you PUT the file to its URL. The
file goes from disk to storage without passing through the request body or the model, so this
is the best input for any page over ~50 KB, and for a PDF/image over ~3 MB. An HTML upload
creates a page; a PDF/image upload publishes the file. It works once, and expires after 30 minutes.The single page’s HTML, base64-encoded. base64 is ASCII, so it can’t be mangled in transit —
use it to send HTML inline without risking emoji/Unicode (ZWJ) corruption. The server decodes it.
Still inline, so the request body cap applies (~3–4 MB) — for larger HTML use
upload_id or html_url.
The HTML must be valid UTF-8 and non-empty, or you get a 400.A public
https URL the server fetches the single page’s HTML from, instead of inlining it —
so large HTML never passes through the model’s token stream. Same SSRF protections as file_url
(private/internal/loopback/metadata hosts blocked, redirects re-checked per hop); up to your
plan’s per-file cap, and 7 MB for an HTML page.Optional. Hex SHA-256 of the HTML bytes. The server hashes what it receives (from any input)
and returns
422 on mismatch — a byte-perfect integrity guarantee. Every HTML create or update
also returns received: { bytes, sha256 } next to data, so you can check without reading the page back.Array of
{ path, html } for a multi-page deck. Link between pages with relative
(team.html), root-relative (/team.html), or folder (about/, which serves that
folder’s index.html) paths. Limits: up to 60 files, your plan’s
per-file cap for each HTML file and for the whole deck (HTML + assets combined), up to a
32 MB ceiling — so 5 MB on Free and 32 MB on Pro/Team. A single HTML page is capped at 7 MB for now
(a PDF or image can be up to 50 MB on Pro/Team); a deck is capped at 32 MB.Over the API, the whole request body must stay under about 4 MB — a larger one is
rejected by the platform before it reaches us, with a plain-text Request Entity Too Large
rather than our usual JSON error. That ceiling applies to files and assets together, so
it, not the deck total, is the practical limit when you publish a deck in one call. Upload a
bigger deck through the app, or add assets in separate calls.For a deck: non-HTML files its pages reference with relative paths — images
(PNG/JPG/WebP/GIF/SVG/ICO), CSS, JS, fonts (WOFF/WOFF2/TTF/OTF), JSON. Array of
{ path, data_base64 }, e.g. { "path": "images/logo.png", "data_base64": "iVBOR…" }.
Up to 150 assets per deck, 5 MB each, within the deck total above (and, as with files, within your
plan’s per-file cap). Base64 also adds ~33% to the request body, which the API caps well
below these figures — for a deck of large assets, upload it in the dashboard instead.
Assets are served behind the same access controls as the deck’s pages.A PDF or image (PNG/JPG/WebP/GIF), shown inline. Base64-encoded; pass
filename (and optionally
mime). The file must fit your plan’s per-file cap (Free 5 MB, Pro 50 MB), and inlining
base64 also adds ~33% to the request body — for larger files use upload_id or file_url. SVG, Office docs, and
spreadsheets aren’t supported — export to PDF first.A public
https URL to fetch a PDF or image from instead of inlining it (up to your plan’s
per-file cap — Free 5 MB, Pro 50 MB). Private, internal, loopback, and cloud-metadata
hosts are blocked, and redirects are re-checked per hop.Original filename for a
file_base64/file_url upload, e.g. report.pdf — sets the
title/download and the file type. Inferred from the URL when omitted with file_url.Password to protect the page when
access is password. If omitted, one is generated and returned in the response.Link control — ISO 8601 datetime after which the link stops working (e.g.
2026-07-01T17:00:00Z).Link control — close the link after this many views.
Link control — view-only: hide the download button on a PDF/image and force inline viewing.
Link-preview (unfurl) title shown when the link is pasted in iMessage/Slack/social. Wins over the page’s own OG tags; null/omitted falls back to them.
Comments identity.
false (default) = anonymous: anyone can comment with no account (a display name is optional). true = each commenter confirms a one-time email link first; their email stays private.For
people access, require invitees to sign in instead of the email-confirm path.Pro. Collect email-verified client sign-off — designated approvers Approve / Request changes on the page. Set
approver_emails too.owner (decisions private to you) or shared (approvers see each other’s decisions).Poll identity:
true = verified email (one per person); false = anonymous (one per device).collect_approvals) gets a 402 with an explanatory message; the page isn’t created. Titles are unique per account — a duplicate returns 409.
201.
Expiring, view-limited link
Multi-page deck
/p/{slug}/{path}. /p/{slug} is still the
link you share: it redirects (307) to the entry file’s own URL, /p/{slug}/{entry_path},
so that a relative reference inside the entry page resolves against the deck rather than
one directory above it. Any HTTP client that follows redirects (a browser, a link
unfurler, curl -L, fetch) lands on the entry page as before.
List pages
GET /api/v1/pages
Returns an array of the authenticated account’s pages, most recently edited first (same order as the dashboard).
The response includes a next_offset field — an integer to pass as the next offset when more
pages remain, or null when you’ve reached the end.
Retrieve a page
GET /api/v1/pages/
Retrieve a page’s HTML
GET /api/v1/pages//html
Returns the page’s current HTML — the editable working copy, identical to what’s live
unless there are unpublished changes. Read this to patch a page surgically instead of
rebuilding it from scratch.
For a single page the response is { kind: "single", html, has_unpublished_changes, elided };
for a deck it’s { kind: "bundle", entry, files: [{ path, html }], has_unpublished_changes, elided }.
A PDF/image artifact has no HTML and returns 400.
By default, long inlined
data: URIs (base64 images and fonts, 1,000+ characters) are
replaced in the returned HTML with a short ELIDED-BY-SHAREABLE-<n>-CHARS placeholder, and
elided: { count, chars } reports what was cut. The stored page is untouched. This keeps a
read cheap for an agent that is about to edit part of the page — it
never needs those bytes. Pass full=true for the raw HTML. Elided HTML is rejected by
every full-replace write (400), so placeholders can’t be published by mistake.Edit a page’s HTML
PATCH /api/v1/pages//html
Apply find-and-replace edits to the page’s current HTML without resending the whole
document. Every byte you don’t name stays exactly as it was, so inlined images and fonts
never have to round-trip through an agent. The write counterpart to
GET /pages/{id}/html.
Ordered list of
{ find, replace, replace_all? } (max 200). find is plain text (no regex)
and must be non-empty; replace may be "" to delete. Each find must match exactly
once in the current HTML unless replace_all is true. Edits apply in sequence, each
against the previous result.Also publish the result live in the same call. Otherwise the edit is saved as a draft — call publish.
find that matches zero times or, without replace_all, more
than once returns 422 naming the offending edit, and nothing is written. Also 422: a
replace_all that would hit more than 1,000 places (use a longer snippet), or edits that would
leave the page empty. The result is size-gated like a full update (413 — per-page,
per-file, and deck total), and a batch is capped at 200 edits with fewer allowed per call on a
multi-megabyte page (the error says how many). If the page was changed by another write between
the read and this edit, 409 is returned and nothing is written — re-read and apply again.
A PDF/image artifact returns 400.
The response is the page object under data, plus an edits summary:
changes echoes what each edit matched (before) and what replaced it (after) so you can
verify the result — each side is capped at 200 characters, with before_truncated /
after_truncated marking a cut. previous_version is a checkpoint of the HTML from just before
the edit and version the checkpoint after it, so restore of
previous_version is an exact undo (pass publish: true to the restore if the edit was
published). size_bytes and sha256 describe the resulting HTML’s UTF-8 bytes, so you can confirm
the result, for example after a series of chunked edits, without reading the page back.
Edits are all-or-nothing: if any find is missing or ambiguous, the 422 names that edit and
nothing is written.
Update a page
PATCH /api/v1/pages/
Updating the HTML or files changes the draft only — call publish to push it live.
New HTML (saved as draft). Single pages only — not decks. Or send it byte-faithfully with
upload_id / html_base64 / html_url. Up to your plan’s per-file cap (Free 5 MB, Pro 50 MB). To change only part of a page, use PATCH /pages/{id}/html with find/replace edits instead of resending the document.An HTML upload from
POST /uploads, sent from disk without passing through the request body or the model; best for any page over ~50 KB. Saved as draft. Works once.New HTML as base64 (ASCII-safe — avoids emoji/Unicode corruption). Decoded server-side and saved as draft.
A public
https URL the server fetches the new HTML from (SSRF-guarded), so large HTML skips the token stream. Saved as draft.For a deck, the full new set of
{ path, html } files (saved as draft). Files not included are
removed; same limits as create (60 files, and your plan’s per-file cap applied both to each
file and to the deck total). Optionally pass entry to set the landing page.true pushes the updated draft live in the same request, the same as calling publish afterwards. Default false.Link control — expiry datetime, or
null to remove it.Link control — view cap, or
null to remove it.Link control — view-only for a PDF/image.
When
access is people, let a viewer who isn’t invited request access — you approve or deny by email or in the app. See access levels.Show a comments widget on the page; everyone sees the thread. Anonymous by default — pair with
comments_require_email: true to require a verified email. You moderate (hide/delete) from the Share dialog.Comments identity.
false (default) = anonymous (no account needed; display name optional). true = commenters confirm a one-time email link first; their email stays private.Close response collection: set an ISO 8601 datetime to stop accepting new responses at that time (now to close immediately, a future time to schedule the close), or
null to reopen. Responses already collected are kept.402, and a
duplicate title returns 409.
Add an expiration + view-only
Delete a page
DELETE /api/v1/pages/
Permanently deletes the page. Returns status 204.
Versions
A version is saved automatically on each publish and each edit (deduplicated by content). Named versions are kept forever; older unnamed ones are pruned.List versions
GET /api/v1/pages//versions
Returns { version_no, source, label, size_bytes, created_at }[], newest first. source is
publish, edit, or restore.
Get a version
GET /api/v1/pages//versions/
Returns the version’s metadata plus its full content — html for a single page, or files + entry for a deck. (The MCP get_version tool previews long content by default; pass full: true there for the whole thing. To read the current page’s HTML rather than a past version, use GET /pages/{id}/html.)
Restore a version
POST /api/v1/pages//versions//restore
When
true, also publish the restored content live. Otherwise it’s restored to the draft only.restore version. Returns the updated page object.
Name a version
PATCH /api/v1/pages//versions/