> 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/002__get_company_form.md).

# Get Company Form

GraphQL endpoint: `/company`

Fetches one of the current company's forms by ID, including all of its versions and their fields.

## Query

```graphql
query ($id: ID!) {
  companyForm(id: $id) {
    id
    title
    description
    visibility
    intendedFor
    companyId
    formVersions {
      id
      version
      published
      formVersionFields {
        id
        key
        label
        type
        required
        options
        order
        content
        useAsIdentifier
      }
    }
    insertedAt
    updatedAt
  }
}

```

## Variables

```json
{
  "id": "00000000-0000-4000-8000-000000000005"
}
```

## Response

```json
{
  "data": {
    "companyForm": {
      "companyId": "00000000-0000-4000-8000-000000000001",
      "description": "A test form",
      "formVersions": [
        {
          "formVersionFields": [
            {
              "content": null,
              "id": "00000000-0000-4000-8000-000000000002",
              "key": "epqhmanofie9",
              "label": "Name",
              "options": [],
              "order": 0,
              "required": false,
              "type": "TEXT",
              "useAsIdentifier": false
            },
            {
              "content": null,
              "id": "00000000-0000-4000-8000-000000000003",
              "key": "f680vpb1qu2p",
              "label": "Email",
              "options": [],
              "order": 1,
              "required": false,
              "type": "EMAIL",
              "useAsIdentifier": false
            }
          ],
          "id": "00000000-0000-4000-8000-000000000004",
          "published": true,
          "version": 1
        }
      ],
      "id": "00000000-0000-4000-8000-000000000005",
      "insertedAt": "2026-01-15T09:00:00",
      "intendedFor": [
        "USER",
        "COMPANY"
      ],
      "title": "My Form",
      "updatedAt": "2026-01-15T09:00:00",
      "visibility": [
        "PUBLIC"
      ]
    }
  }
}
```
