Documents

Document forms

Create, publish, draft, submit, read and export structured answers for one document version.

Defining a form

  • Attach the form to the document and the version it is for.
  • Give every field a stable ID and a supported type.
  • Set required, length, number, date and option rules explicitly.
  • Keep labels and help text separate from field IDs.
  • Publish a reviewed form before anyone depends on it.

Drafts

Drafts are saved per participant and version. A draft save is checked against the latest saved draft, so two open tabs or a retry cannot silently overwrite a newer answer or attach a file twice.

Submitting

  • Every field is validated again when the form is submitted.
  • The participant, viewer session, form, document and version are all checked.
  • One idempotency key covers one form, participant, version and set of answers.
  • Reusing a key with different answers returns a conflict.
  • The submission is recorded together with its audit event.

Reading and exporting

Manage form definitions with the v2 forms resource: GET and POST /api/v2/forms, GET and PATCH /api/v2/forms/{resourceId}, and POST /api/v2/forms/{resourceId}/actions to publish, close or archive (scopes resources.read and resources.write). Submissions are read and exported in the dashboard; the v2 API has no endpoint for submissions or exports. An export runs in the background: wait until it completes and check the resulting document before you share it.