Skip to content

Read a version's form through a share link, with the caller's own draft.

GET
/api/shares/{token}/form
curl --request GET \
--url https://example.com/api/shares/example/form

Read a version’s form through a share link, with the caller’s own draft.

token
required
string

The share token

version
integer format: int32

A version number (default: the current one).

The shown version’s form and the caller’s own draft (a viewer may neither save nor send)

Media typeapplication/json

GET …/form: what the page restores.

object
can_save
required
boolean
can_submit
required
boolean
changed_since_sent
required

The draft differs from the last response sent.

boolean
draft
One of:

The person’s own draft (null for nothing stored, and always for a viewer).

object
answers
required
object
key
additional properties
carried_from_version

The version the answers were carried from (a new version’s first open).

integer | null format: int32
carry_report
One of:

What carrying a draft to a new version did.

object
carried
required

The names carried unchanged.

Array<string>
dropped
required
Array<object>

A field the new version no longer has, with the value it held.

object
label
required
string
name
required
string
value
required
from_version
required
integer format: int32
reset
required
Array<object>

A field whose old value does not fit the new version.

object
label
required
string
name
required
string
old_value
required
reason
required

Why a carried value was reset.

string
Allowed values: kind_changed option_removed too_long
revision
required

The base of the next save (0: nothing stored yet).

integer format: int32
saved_at
string | null format: date-time
form
required

A version’s form as the host binds it.

object
can_save
required

May keep a draft (a share viewer may not).

boolean
can_submit
required

May send a response (a share viewer may not).

boolean
fields
required

In document order, then the manifest-only fields.

Array<object>

One field of a form.

object
kind
required

The kind of one form field (what its value is).

string
Allowed values: text longtext boolean choice multi
label
required
string
max_chars

Text kinds only: the longest value (at most 4000).

integer | null format: int32
name
required
string
options
Array<object>

One option of a choice or multi field.

object
label
required

1..=200 characters; what a person reads.

string
value
required

1..=200 characters; what the answer holds.

string
required
boolean
max_answers_bytes
required

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.

integer
mode
required

What a page’s form offers: saving a draft, sending a response, or both.

string
Allowed values: autosave submit both
schema_sha256
required

SHA-256 of the schema, lowercase hex.

string
last_response
One of:

The person’s newest response on this version.

object
acknowledged_at
string | null format: date-time
delivery_state
required

not_applicable | awaiting_forward | pending | delivered | followup_pending_approval | followup_launched | followup_rejected.

string
external
required
boolean
replaces_response_id
string | null format: uuid
respondent_kind
required

Who answered, as the agent and the host see it.

string
Allowed values: member share_user guest
respondent_label
required
string
response_id
required
string format: uuid
submitted_at
required
string format: date-time
version
required
integer format: int32
last_response_attachments

Own immutable screenshot references; absent when screenshot writes are not offered.

Array<object> | null
object
created_at
required
string format: date-time
field_name
required
string
file_name
required
string
id
required
string format: uuid
media_type
required
string
size_bytes
required
integer format: int64

Example

{
"draft": {
"carry_report": {
"reset": [
{
"reason": "kind_changed"
}
]
}
},
"form": {
"fields": [
{
"kind": "text"
}
],
"mode": "autosave"
},
"last_response": {
"respondent_kind": "member"
}
}

A password share without its unlock

Media typeapplication/json

The canonical JSON body of every error response. Every AppError serializes as this exact shape; code is the generated stable machine-readable vocabulary.

object
cap
One of:

Present only on an MCP budget refusal (429) — the refusing layer + retry hint.

object
layer
required

The refusing layer.

string
limit
required

The layer’s budget.

integer format: int64
retry_after_seconds

Seconds until a retry can pass, or null when it never will for this session.

integer | null format: int64
used
required

Calls already counted in the layer.

integer format: int64
code
required

Machine-readable, stable error code.

string
Allowed values: not_found unauthorized forbidden license_required license_expired fresh_auth_required source_not_released bad_request unprocessable precondition_failed conflict artifact_staging_busy artifact_staging_store_unavailable intervention_attachment_limit method_not_allowed rate_limited too_many_requests quota_exceeded mcp_cap_exceeded form_schema_invalid autosave_not_offered submit_not_offered idempotency_key_reused response_cap_reached required_missing database_error docker_error vault_error internal_error artifact_frames_unavailable identity_native_custody_unconfigured launch_concurrency_limit launch_already_active launch_not_pending launch_budget_exhausted launch_draining launch_side_effects_disabled launch_dispatch_disabled no_eligible_runner launch_image_unavailable pull_request_no_git_branch pull_request_no_project project_credential_missing project_credential_expired project_credential_revoked project_credential_substitution project_parent_credential_not_current project_lineage_invalid project_binding_missing project_binding_mismatch project_not_found project_capability_not_granted project_capability_unknown project_capabilities_required project_history_is_not_authority project_task_not_found project_task_project_missing project_task_not_active project_native_origin_missing project_broader_scope_required project_system_scope_required project_lifetime_invalid project_lifetime_not_finite project_lifetime_exceeds_maximum project_delegation_exceeds_parent project_renewal_not_allowed project_delegation_widened project_audience_mismatch project_deployment_claim_missing project_authority_disabled project_issuer_not_current project_operation_not_durable project_dispatch_gate_refused
details
One of:

Present only on a quota-exceeded 403 — the inline upgrade-CTA payload.

object
key
required

The entitlement feature key that was hit, e.g. apps.max_count.

string
limit
required

The plan’s limit for this key.

integer format: int64
upgrade_url
required

Where to send the user to upgrade.

string
used
required

Current usage (count or bytes, per the key).

integer format: int64
error
required

Human-readable message (the server’s English text; the client may localize by code).

string
launch
One of:

Present on a launch refusal (400/403/409) — the structured facts only the refusing class can fill: occupancy, exhausted budget, or required labels.

object
active

Weighted workspace slots already held by starting/running agent runs.

integer | null format: int64
cap_usd

The budget cap that refused.

number | null format: double
effective_spend_usd

Effective spend of the refusing budget scope (spend + in-flight reservations).

number | null format: double
max

The workspace’s configured agent-concurrency cap.

integer | null format: int64
provider

The provider whose budget cap refused; absent for the workspace-wide cap.

string | null
required_labels

Runner labels a fail-policy placement required and no runner offered.

Array<string>

Example

{
"code": "not_found"
}

Unknown, revoked, expired or not for this person, or the version has no form

Media typeapplication/json

The canonical JSON body of every error response. Every AppError serializes as this exact shape; code is the generated stable machine-readable vocabulary.

object
cap
One of:

Present only on an MCP budget refusal (429) — the refusing layer + retry hint.

object
layer
required

The refusing layer.

string
limit
required

The layer’s budget.

integer format: int64
retry_after_seconds

Seconds until a retry can pass, or null when it never will for this session.

integer | null format: int64
used
required

Calls already counted in the layer.

integer format: int64
code
required

Machine-readable, stable error code.

string
Allowed values: not_found unauthorized forbidden license_required license_expired fresh_auth_required source_not_released bad_request unprocessable precondition_failed conflict artifact_staging_busy artifact_staging_store_unavailable intervention_attachment_limit method_not_allowed rate_limited too_many_requests quota_exceeded mcp_cap_exceeded form_schema_invalid autosave_not_offered submit_not_offered idempotency_key_reused response_cap_reached required_missing database_error docker_error vault_error internal_error artifact_frames_unavailable identity_native_custody_unconfigured launch_concurrency_limit launch_already_active launch_not_pending launch_budget_exhausted launch_draining launch_side_effects_disabled launch_dispatch_disabled no_eligible_runner launch_image_unavailable pull_request_no_git_branch pull_request_no_project project_credential_missing project_credential_expired project_credential_revoked project_credential_substitution project_parent_credential_not_current project_lineage_invalid project_binding_missing project_binding_mismatch project_not_found project_capability_not_granted project_capability_unknown project_capabilities_required project_history_is_not_authority project_task_not_found project_task_project_missing project_task_not_active project_native_origin_missing project_broader_scope_required project_system_scope_required project_lifetime_invalid project_lifetime_not_finite project_lifetime_exceeds_maximum project_delegation_exceeds_parent project_renewal_not_allowed project_delegation_widened project_audience_mismatch project_deployment_claim_missing project_authority_disabled project_issuer_not_current project_operation_not_durable project_dispatch_gate_refused
details
One of:

Present only on a quota-exceeded 403 — the inline upgrade-CTA payload.

object
key
required

The entitlement feature key that was hit, e.g. apps.max_count.

string
limit
required

The plan’s limit for this key.

integer format: int64
upgrade_url
required

Where to send the user to upgrade.

string
used
required

Current usage (count or bytes, per the key).

integer format: int64
error
required

Human-readable message (the server’s English text; the client may localize by code).

string
launch
One of:

Present on a launch refusal (400/403/409) — the structured facts only the refusing class can fill: occupancy, exhausted budget, or required labels.

object
active

Weighted workspace slots already held by starting/running agent runs.

integer | null format: int64
cap_usd

The budget cap that refused.

number | null format: double
effective_spend_usd

Effective spend of the refusing budget scope (spend + in-flight reservations).

number | null format: double
max

The workspace’s configured agent-concurrency cap.

integer | null format: int64
provider

The provider whose budget cap refused; absent for the workspace-wide cap.

string | null
required_labels

Runner labels a fail-policy placement required and no runner offered.

Array<string>

Example

{
"code": "not_found"
}