Create Form
Create a new form; requires forms-write ability.
Create Form
Create a new form within a workspace.Authentication & Scope
Requires a Personal Access Token with theforms-write ability.
Request
Body Parameters
| Field | Type | Required | Description |
|---|---|---|---|
| workspace_id | number | Yes | ID of the workspace that will own the form. |
| title | string | Yes | Human-readable title shown in the dashboard. |
| visibility | string | Yes | One of public, draft, or closed. |
| language | string | Yes | Two-letter ISO language code (e.g. en). |
| properties | array | Yes | Array of form blocks (see FormProperty schema). |
| …other fields | mixed | No | See the Form schema for the full list of attributes. |
Response
201 Created – Returns the full Form object.
403 Forbidden – The token does not include the forms-write ability.Authorizations
Personal Access Token
Body
ID of the workspace that owns the form.
The title of the form.
The current visibility state of the form.
public, draft, closed Two-letter ISO language code.
default, simple, notion light, dark, auto centered, full sm, md, lg none, small, full Whether to hide the OpnForm branding.
Transparent background when form is embedded.
50200050x >= 150recaptcha, hcaptcha An array of field and layout blocks that make up the form.
Response
Form created
The unique identifier for the form.
The URL-friendly slug for the form.
The title of the form.
The current visibility state of the form.
public, draft, closed Two-letter ISO language code.
default, simple, notion light, dark, auto centered, full sm, md, lg none, small, full Whether to hide the OpnForm branding.
Transparent background when form is embedded.
50200050x >= 150recaptcha, hcaptcha An array of field and layout blocks that make up the form.