Mint a frame of the shared artifact version through a share link.
const url = 'https://example.com/api/shares/example/frame';const options = { method: 'POST', headers: {'Content-Type': 'application/json'}, body: '{"version":1}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://example.com/api/shares/example/frame \ --header 'Content-Type: application/json' \ --data '{ "version": 1 }'Mint a frame of the shared artifact version through a share link.
Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”The share token
Request Bodyrequired
Section titled “Request Bodyrequired”POST /api/shares/{token}/frame.
object
A version number (ignored when the share pins one); the current one when absent.
Example generated
{ "version": 1}Responses
Section titled “Responses”A frame of the shared version (comment mode for a commenter or editor)
A minted frame: where to load it and until when it opens.
object
The runtime capabilities the shown version declares (#1527 stage 6); the host refuses every frame request for one that is not listed here. Always sent; optional in the contract so a client reads an older server’s grant as declaring none.
The version’s form (#1527 addendum A), null when it declares none.
object
May keep a draft (a share viewer may not).
May send a response (a share viewer may not).
In document order, then the manifest-only fields.
One field of a form.
object
The kind of one form field (what its value is).
Text kinds only: the longest value (at most 4000).
One option of a choice or multi field.
object
1..=200 characters; what a person reads.
1..=200 characters; what the answer holds.
The most bytes this instance accepts for the answers object (a draft or a sent
response, serialized as UTF-8 JSON): SUPACLOUD_ARTIFACT_FORM_MAX_ANSWERS_BYTES,
262144 unless the operator set another value, at most 524288. The host refuses a
change that would exceed it and names it; the server re-checks every write.
What a page’s form offers: saving a draft, sending a response, or both.
SHA-256 of the schema, lowercase hex.
comment | view.
The live sources the shown version declares, by name (#1527 addendum E); the host
forwards supacloud.sources.read only for a listed name. Always sent; optional in
the contract so a client reads an older server’s grant as declaring none.
The version’s slides, artboards, page regions or heading outline; null when the
version has none.
A deck: one HTML document whose slides are top-level <section data-sc-slide>.
object
The aspect a deck’s slides are laid out at (<meta name="supacloud-deck">).
The doc_type word of a deck structure.
1-300 slides.
One slide of a deck, in document order.
object
True when the slide carries <aside data-sc-notes> speaker notes.
The slide’s id attribute, when it has one.
1-based position in the deck.
How many data-sc-step elements step in on this slide, in document order.
data-sc-title, else the text of the slide’s first h1-h3, at most 120 characters.
A design: one canvas of named artboards (<div data-sc-artboard>).
object
1-100 artboards, in document order.
One artboard of a design canvas.
object
data-sc-height, 1-10000 CSS pixels.
The artboard’s id attribute (required, unique in the version).
data-sc-title, at most 120 characters.
data-sc-width, 1-10000 CSS pixels.
data-sc-x on the canvas; null lets the runtime lay the artboards out in rows.
data-sc-y on the canvas.
The doc_type word of a design structure.
A doc: Markdown, or HTML with a single <article>; its heading outline.
object
The doc_type word of a doc structure.
At most 200 headings, in document order.
One heading of a doc’s outline.
object
The heading element’s id (the table of contents scrolls to it).
1-6 (h1-h6).
The heading’s text, whitespace collapsed, at most 120 characters.
A motion: one <div data-sc-motion> stage played for a fixed duration.
object
The doc_type word of a motion structure.
How long the motion plays, 100-60000 ms.
Frames a second, 1-30 (30 when the stage names none).
The stage height, an even 16-1920 CSS pixels.
The stage width, an even 16-1920 CSS pixels.
A page: the commentable image regions it declares (data-sc-region, one wrapping
element per image).
object
The doc_type word of a page structure.
At most 200 regions, in document order.
A commentable image region of a page: the element’s id and its title.
object
The element’s id attribute (required, unique in the version).
data-sc-title, else the alt of the region’s first image, at most 120
characters.
Who views the frame, only when the version declares identity (never an e-mail
or a user id).
object
The name the person chose; null for a guest or a person who chose none (the
host shows its own word for them). Never an e-mail.
The role a viewer holds, as the frame sees it.
Example
{ "capabilities": [ "download" ], "form": { "fields": [ { "kind": "text" } ], "mode": "autosave" }, "structure": { "aspect": "16:9", "doc_type": "deck" }, "viewer": { "role": "member" }}A password share without its unlock
The canonical JSON body of every error response. Every AppError serializes as
this exact shape; code is the generated stable machine-readable vocabulary.
object
Present only on an MCP budget refusal (429) — the refusing layer + retry hint.
object
The refusing layer.
The layer’s budget.
Seconds until a retry can pass, or null when it never will for this session.
Calls already counted in the layer.
Machine-readable, stable error code.
Present only on a quota-exceeded 403 — the inline upgrade-CTA payload.
object
The entitlement feature key that was hit, e.g. apps.max_count.
The plan’s limit for this key.
Where to send the user to upgrade.
Current usage (count or bytes, per the key).
Human-readable message (the server’s English text; the client may localize
by code).
Present on a launch refusal (400/403/409) — the structured facts only the refusing class can fill: occupancy, exhausted budget, or required labels.
object
Weighted workspace slots already held by starting/running agent runs.
The budget cap that refused.
Effective spend of the refusing budget scope (spend + in-flight reservations).
The workspace’s configured agent-concurrency cap.
The provider whose budget cap refused; absent for the workspace-wide cap.
Runner labels a fail-policy placement required and no runner offered.
Example
{ "code": "not_found"}Unknown, revoked, expired or not for this person
The canonical JSON body of every error response. Every AppError serializes as
this exact shape; code is the generated stable machine-readable vocabulary.
object
Present only on an MCP budget refusal (429) — the refusing layer + retry hint.
object
The refusing layer.
The layer’s budget.
Seconds until a retry can pass, or null when it never will for this session.
Calls already counted in the layer.
Machine-readable, stable error code.
Present only on a quota-exceeded 403 — the inline upgrade-CTA payload.
object
The entitlement feature key that was hit, e.g. apps.max_count.
The plan’s limit for this key.
Where to send the user to upgrade.
Current usage (count or bytes, per the key).
Human-readable message (the server’s English text; the client may localize
by code).
Present on a launch refusal (400/403/409) — the structured facts only the refusing class can fill: occupancy, exhausted budget, or required labels.
object
Weighted workspace slots already held by starting/running agent runs.
The budget cap that refused.
Effective spend of the refusing budget scope (spend + in-flight reservations).
The workspace’s configured agent-concurrency cap.
The provider whose budget cap refused; absent for the workspace-wide cap.
Runner labels a fail-policy placement required and no runner offered.
Example
{ "code": "not_found"}Artifact previews need deployment configuration
The canonical JSON body of every error response. Every AppError serializes as
this exact shape; code is the generated stable machine-readable vocabulary.
object
Present only on an MCP budget refusal (429) — the refusing layer + retry hint.
object
The refusing layer.
The layer’s budget.
Seconds until a retry can pass, or null when it never will for this session.
Calls already counted in the layer.
Machine-readable, stable error code.
Present only on a quota-exceeded 403 — the inline upgrade-CTA payload.
object
The entitlement feature key that was hit, e.g. apps.max_count.
The plan’s limit for this key.
Where to send the user to upgrade.
Current usage (count or bytes, per the key).
Human-readable message (the server’s English text; the client may localize
by code).
Present on a launch refusal (400/403/409) — the structured facts only the refusing class can fill: occupancy, exhausted budget, or required labels.
object
Weighted workspace slots already held by starting/running agent runs.
The budget cap that refused.
Effective spend of the refusing budget scope (spend + in-flight reservations).
The workspace’s configured agent-concurrency cap.
The provider whose budget cap refused; absent for the workspace-wide cap.
Runner labels a fail-policy placement required and no runner offered.
Example
{ "code": "not_found"}