> 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/018__get_form_submission.md).

# Get Form Submission

GraphQL endpoint: `/company`

Fetches a single form submission by form instance ID and form ID, including its submitted data and the form version fields it was filled against.

## Query

```graphql
query ($formInstanceId: ID!, $formId: ID!) {
  formSubmission(formInstanceId: $formInstanceId, formId: $formId) {
    id
    status
    data
    identifiers
    formVersion {
      id
      version
      formVersionFields {
        key
        label
        type
      }
    }
  }
}

```

## Variables

```json
{
  "formId": "00000000-0000-4000-8000-000000000003",
  "formInstanceId": "00000000-0000-4000-8000-000000000002"
}
```

## Response

```json
{
  "data": {
    "formSubmission": {
      "data": {
        "name": "Alice"
      },
      "formVersion": {
        "formVersionFields": [
          {
            "key": "name",
            "label": "Name",
            "type": "TEXT"
          }
        ],
        "id": "00000000-0000-4000-8000-000000000001",
        "version": 1
      },
      "id": "00000000-0000-4000-8000-000000000002",
      "identifiers": [
        "Alice"
      ],
      "status": "SUBMITTED"
    }
  }
}
```
