Read a version's form with the caller's own draft and last response.
const url = 'https://example.com/api/artifacts/documents/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/form';const options = {method: 'GET', headers: {cookie: 'supacloud_session=<supacloud_session>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://example.com/api/artifacts/documents/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/form \ --cookie supacloud_session=<supacloud_session>Read a version’s form with the caller’s own draft and last response.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”Document id
Query Parameters
Section titled “Query Parameters”A version number (default: the current one).
Responses
Section titled “Responses”The version’s form, the caller’s own draft and last response
GET …/form: what the page restores.
object
The draft differs from the last response sent.
The person’s own draft (null for nothing stored, and always for a viewer).
object
object
The version the answers were carried from (a new version’s first open).
What carrying a draft to a new version did.
object
The names carried unchanged.
A field the new version no longer has, with the value it held.
object
A field whose old value does not fit the new version.
object
Why a carried value was reset.
The base of the next save (0: nothing stored yet).
A version’s form as the host binds it.
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.
The person’s newest response on this version.
object
not_applicable | awaiting_forward | pending | delivered | followup_pending_approval | followup_launched | followup_rejected.
Who answered, as the agent and the host see it.
Own immutable screenshot references; absent when screenshot writes are not offered.
object
Example
{ "draft": { "carry_report": { "reset": [ { "reason": "kind_changed" } ] } }, "form": { "fields": [ { "kind": "text" } ], "mode": "autosave" }, "last_response": { "respondent_kind": "member" }}Authentication required
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"}No such document or version here, or the version has no form
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"}