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
application/json
ID of the workspace that owns the form.
The title of the form.
The current visibility state of the form.
Available options:
public, draft, closed Two-letter ISO language code.
Available options:
default, simple, notion Available options:
light, dark, auto Available options:
centered, full Available options:
sm, md, lg Available options:
none, small, full Whether to hide the OpnForm branding.
Transparent background when form is embedded.
Maximum length:
50Maximum length:
2000Maximum length:
50Required range:
x >= 1Maximum length:
50Available options:
recaptcha, 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.
Available options:
public, draft, closed Two-letter ISO language code.
Available options:
default, simple, notion Available options:
light, dark, auto Available options:
centered, full Available options:
sm, md, lg Available options:
none, small, full Whether to hide the OpnForm branding.
Transparent background when form is embedded.
Maximum length:
50Maximum length:
2000Maximum length:
50Required range:
x >= 1Maximum length:
50Available options:
recaptcha, hcaptcha An array of field and layout blocks that make up the form.