Skip to main content
Read and edit forms and manage their submissions from a workflow.

core.forms.list_forms

List the workspace’s forms, newest first. Enterprise Edition

Inputs

string | null
next_cursor from a previous page.Default: null.
integer
Maximum number of forms to return.Default: 20.

Examples

List forms

core.forms.get_form

Get a form: its status, its config, the issues the config has against the workflow’s inputs, and its URL. Enterprise Edition

Inputs

string
required
The form ID, as returned by list_forms.

Examples

Get a form

core.forms.update_form

Update the form of a workflow, creating it if the workflow has none. A form turns the workflow’s input schema into a page people fill in; submitting it runs the workflow. Returns the form, including any issues with the config. Enterprise Edition

Inputs

string
required
The workflow the form belongs to (short wf_... or full ID).
object | null
The whole form config; it replaces the stored one. Keys, all optional: title, description (markdown), success_message, and layout, an ordered list of entries. An entry is one of {field: <input name>}, {heading: <text>}, {text: <markdown>}, {notice: <text>, tone: info|success|warning|danger} or {divider: true}. A field entry may add label, help, placeholder, widget (text, long_text, number, toggle, select, multi_select, cards, tags, date, datetime, user, file), options ([{value, label, description}]), visible_if ({field, equals}), autofill (requester, requester.user_id, requester.email, requester.first_name, requester.last_name, submission.id) or hidden. A file field may add accept (extensions or MIME types, e.g. [".pdf", "image/*"]) and max_files (1 to 10; more than 1 needs a list[dict] input). Workflow inputs left out of layout are appended in schema order. Omit config to leave it unchanged.Default: null.
string | null
online lets people submit the form (the workflow must be published); offline stops submissions. Omit to leave unchanged.Default: null.

Examples

Put a form online with a card picker

core.forms.list_submissions

List a form’s submissions with their answers, newest first. Enterprise Edition

Inputs

string
required
The form ID.
string | null
next_cursor from a previous page.Default: null.
integer
Maximum number of submissions to return.Default: 20.
string | null
Only submissions at or after this time.Default: null.
string | null
Only submissions before this time.Default: null.

Examples

List submissions older than 90 days

core.forms.get_submission

Get one form submission with its answers and who submitted it. Enterprise Edition

Inputs

string
required
The submission ID. A form-triggered workflow gets its own from an input with autofill: submission.id.

Examples

Get the submission that started this run

core.forms.delete_submission

Delete a form submission and its stored answers. The workflow run it started keeps its own copy of the inputs. Files uploaded with the submission are deleted too. Enterprise Edition

Inputs

string
required
The submission ID.

Examples

Delete each listed submission

core.forms.download_file

Download a file uploaded with a form submission. File integrity is verified via SHA256. Enterprise Edition

Inputs

string
required
The file ID: the id of the file object a file field puts in the workflow’s inputs.

Examples

Download a file attached to the submission