SSharaFormsDocs
Forms

Create Form

Create a new form within a workspace.

POST/open/forms

Create a new form within a workspace.

#Authentication & Scope

Requires a Personal Access Token with the forms-write ability.

#Request

http
POST /open/forms HTTP/1.1
Host: api.sharaforms.com
Content-Type: application/json
Authorization: Bearer <token>

#Body Parameters

FieldTypeRequiredDescription
workspace_idnumberYesID of the workspace that will own the form.
titlestringYesHuman-readable title shown in the dashboard.
visibilitystringYesOne of public, draft, or closed.
languagestringYesTwo-letter ISO language code (e.g. en).
propertiesarrayYesArray of form blocks (see FormProperty schema).
…other fieldsmixedNoSee the Form schema for the full list of attributes.

Example request:

json
{
  "workspace_id": 1,
  "title": "Event Registration",
  "visibility": "public",
  "language": "en",
  "properties": [
    {
      "id": "field-1",
      "type": "short_text",
      "name": "First name",
      "required": true
    }
  ]
}

#Response

201 Created – Returns the full Form object.

json
{
  "id": 99,
  "slug": "event-registration",
  "title": "Event Registration",
  "visibility": "public",
  "properties": [...]
}

403 Forbidden – The token does not include the forms-write ability.