> For the complete documentation index, see [llms.txt](https://docs.tnid.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.tnid.com/api-reference/002_company/013_forms/003__create_form.md).

# Create Form

GraphQL endpoint: `/company`

Creates a new form (parent record only) with a title, optional description, visibility and intended-for settings. Call `createFormVersion` next to add the first version with its fields.

## Query

```graphql
mutation (
  $title: String!
  $description: String
  $visibility: [FormBuilderFormVisibility!]
  $intendedFor: [FormBuilderFormIntendedFor!]
) {
  createForm (
    title: $title
    description: $description
    visibility: $visibility
    intendedFor: $intendedFor
  ) {
    id
    title
    description
    visibility
    intendedFor
    formVersions {
      id
      version
      published
    }
  }
}

```

## Variables

```json
{
  "description": "A simple contact form",
  "title": "Contact Form"
}
```

## Response

```json
{
  "data": {
    "createForm": {
      "description": "A simple contact form",
      "formVersions": [],
      "id": "00000000-0000-4000-8000-000000000001",
      "intendedFor": [
        "USER",
        "COMPANY"
      ],
      "title": "Contact Form",
      "visibility": [
        "PRIVATE"
      ]
    }
  }
}
```
