Authorization: Bearer sm_… header and live under https://useshareable.com/api/v1.
The page object
Unique page ID.
URL slug. The page is served at
/p/{slug}.Full public URL.
Display title.
Invited emails (when
access is people).The page password, for you to share (only on single-page responses — create, get, update, publish — when
access is password; omitted from the list).Whether search engines may index the page. Default
false.single for a one-file page, or bundle for a multi-page deck.For a
bundle, the file served at the deck root (e.g. index.html).Number of HTML files (always
1 for a single page).Whether a published version is live.
Whether the draft differs from the published version.
ISO timestamp of last publish.
Create a page
POST /api/v1/pages
Pass html for a single page, or files for a multi-page deck — not both.
Complete, self-contained HTML document (all assets inlined). Required for a single page.
Array of
{ path, html } for a multi-page deck. Each html must be self-contained; link
between pages with relative (team.html) or root-relative (/team.html) paths. Limits: up to
60 files, 2 MB per file, 12 MB per deck.For a deck, which file is the landing page. Defaults to
index.html, else the shallowest file.Display title.
link, people, private, or password.Emails allowed to view when
access is people.Password to protect the page when
access is password. If omitted, one is generated and returned in the response.When
false, saves a private draft without going live.Allow search-engine indexing.
201.
Multi-page deck
/p/{slug} (the entry file) and each file at /p/{slug}/{path}.
List pages
GET /api/v1/pages
Returns an array of the authenticated account’s pages, newest first.
Retrieve a page
GET /api/v1/pages/
Update a page
PATCH /api/v1/pages/
Updating html or files changes the draft only — call publish to push it live.
New HTML (saved as draft). Single pages only — not decks.
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, 2 MB each, 12 MB total). Optionally pass entry to set the landing page.For a deck, re-point the landing page to an existing file path.
link, people, private, or password.Set/replace the password (when
access is password).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 content — html for a single page, or files + entry for a deck.
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/
A name for the version (named versions are never pruned).
null clears it.