For the complete documentation index, see llms.txt. This page is also available as Markdown.

Forms

Introduction

Forms define configurable questionnaires whose submissions create FormMessages.

The email_template field uses the shared Rich Text HTML format and the email editor's supported subset.

Model Definition

Alias

form

Capabilities

  • Entity Permissions - Restrict who can view and submit a form.

  • Translations - Localizes name, subject, and email_template; examples use en-US.

  • URL Context - Returns stable form URLs through URL-context requests.

Relations

Key
Relation
Type
Relation Field(s)

formFields

Has many

form_id, form_type

user

Belongs to

user_id

icon

Belongs to

icon_id

folder

Belongs to

folder_id

layouts

Morph many

layouts.layoutable_type, layouts.layoutable_id

entityPermissions

Morph many

Target entity type and ID

List

List visible Forms.

Definition

GET /api/forms

Request Keys

Key
Type
Default
Description

selects

string

All fields

Comma-separated fields to return.

relations

string

Default relations

Pipe-separated relations to include.

limit

integer

No limit

Maximum number of forms.

Example Request

Example Response

Show

Show one visible Form.

Definition

GET /api/forms/{form}

Route Parameters

Parameter
Type
Description

form

integer

Form ID.

Request Keys

Key
Type
Default
Description

selects

string

All fields

Comma-separated fields to return.

relations

string

Default relations

Pipe-separated relations to include.

Example Request

Example Response

Sendability

Check whether the current user can submit one Form.

Definition

GET /api/forms/{form}/sendable

Route Parameters

Parameter
Type
Description

form

integer

Form ID.

Behavior

This check does not consume temporary authentication. If the form has a send constraint, the response also contains constraint-specific data.

Example Request

Example Response

Send

Submit one Form.

Definition

POST /api/forms/{form}/send

Route Parameters

Parameter
Type
Description

form

integer

Form ID.

Request Keys

Key
Type
Default
Description

lang_id

string

System language

Language key. Use en-US for this example.

full-name*

string

-

Value for the required full-name text field.

email-address*

string

-

Value for the required email field.

message*

string

-

Value for the required message field.

Keys with * are required by the configured fields in this example form.

Behavior

Request keys for field values are the fields' key values. The example supplies every value used to generate the returned message body.

Example Request

Example Response

Admin: List

List all Forms in administration scope.

Definition

GET /api/administration/forms

Request Keys

Key
Type
Default
Description

selects

string

All fields

Comma-separated fields to return.

relations

string

Default relations

Pipe-separated relations to include.

limit

integer

No limit

Maximum number of forms.

Behavior

Administration results include inactive and soft-deleted forms when permitted.

Example Request

Example Response

Admin: Show

Show one Form in administration scope.

Definition

GET /api/administration/forms/{form}

Route Parameters

Parameter
Type
Description

form

integer

Form ID.

Request Keys

Key
Type
Default
Description

selects

string

All fields

Comma-separated fields to return.

relations

string

Default relations

Pipe-separated relations to include.

Example Request

Example Response

Admin: Create

Create a new Form.

Definition

POST /api/administration/forms

Request Keys

Key
Type
Default
Description

name*

string

-

Unique form name.

slug*

string

Generated from name when omitted

Unique URL slug.

subject*

string

Localized default

Message subject template.

email_template*

string

Localized default

HTML email template.

lang_id

string

System language

Language key. Use en-US for this example.

icon_id

integer | null

Form icon

Icon ID.

recipient

array | null

null

Recipient email addresses.

always_send_to_recipient

boolean

false

Send to configured recipients in addition to field recipients.

has_personal_info

boolean

false

Whether the form collects personal information.

user_confirmation_required

boolean

false

Require the user to confirm before submission.

request_receipt

boolean

false

Request receipt confirmation.

request_confirmation

boolean

false

Request an approval decision.

message_receipt_lifetime

ISO 8601 duration | null

P1M when enabled

Receipt token lifetime.

message_confirmation_lifetime

ISO 8601 duration | null

P1D when enabled

Approval token lifetime.

grade_mode

string | null

null

Grade mode; scaled mode requires grade_scale.

grade_scale

integer | null

null

Scale used by scaled grading.

send_constraint_type

string | null

null

Optional send constraint.

send_empty_fields

boolean

false

Include empty fields in output.

send_description_fields

boolean

false

Include description fields in output.

active

boolean

true

Whether users may submit the form.

sort_number

integer

Auto

Display order.

entity_permissions

object

Unrestricted

Keys with * are required after server defaults are applied.

Example Request

Example Response

Admin: Update

Update an existing Form.

Definition

PUT /api/administration/forms/{form}

Route Parameters

Parameter
Type
Description

form

integer

Form ID.

Request Keys

Key
Type
Default
Description

name

string

Current value

Unique form name.

slug

string

Generated from changed name

Unique URL slug.

subject

string

Current value

Message subject template.

email_template

string

Current value

HTML email template.

lang_id

string

Current value

Language key.

recipient

array | null

Current value

Recipient email addresses.

request_receipt

boolean

Current value

Request receipt confirmation.

request_confirmation

boolean

Current value

Request an approval decision.

message_receipt_lifetime

ISO 8601 duration | null

P5D when enabled

Receipt token lifetime.

message_confirmation_lifetime

ISO 8601 duration | null

P1D when enabled

Approval token lifetime.

active

boolean

Current value

Whether users may submit the form.

entity_permissions

object

Current value

Example Request

Example Response

Admin: Delete

Delete an existing Form.

Definition

DELETE /api/administration/forms/{form}

Route Parameters

Parameter
Type
Description

form

integer

Form ID.

Example Request

Example Response

Last updated