# Get a document with its fields and choice groups

> GET /api/v1/documents/{id}: Get a document with its fields and choice groups.

`GET https://appliflo.com/api/v1/documents/{id}`

Send your API key in the `Authorization: Bearer` header. Every response is JSON: `{ success, data, error }`.

## Parameters

| Name | In | Required | Description |
| --- | --- | --- | --- |
| `id` | path | yes | Document id |

## Responses

| Status | Description |
| --- | --- |
| 200 | The document, its current fields and its choice questions. |
| 401 | Missing or invalid API key, or `api_key_expired` for a key past its expiry. |
| 403 | The API key's workspace does not have access to this resource, or `insufficient_scope` (with `required_scope`) for a key without the scope this route needs. |
| 404 | Resource not found in this workspace. |
| 422 | Request failed validation. |
| 500 | Internal error. |

## 200 response

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `success` | true | yes |  |
| `data` | object | yes |  |
| `data.id` | string | yes |  |
| `data.name` | string | yes |  |
| `data.status` | string | yes |  |
| `data.fields` | object[] | yes |  |
| `data.fields[].id` | string | yes |  |
| `data.fields[].page` | integer | yes |  |
| `data.fields[].bbox` | number[] \| null | yes |  |
| `data.fields[].type` | string | yes |  |
| `data.fields[].label_text` | string \| null | yes |  |
| `data.fields[].semantic_type` | string | yes | One of: date, phone, ssn, ein, currency, name, address, email, generic-text, checkbox, radio, signature, initials, comb |
| `data.fields[].format` | string | no |  |
| `data.fields[].comb` | object | no |  |
| `data.fields[].comb.cells` | integer | no |  |
| `data.fields[].multiline` | boolean | no |  |
| `data.fields[].confidence` | number \| null | yes |  |
| `data.fields[].flagged` | boolean | yes |  |
| `data.fields[].source` | string | yes | One of: acroform, vision |
| `data.fields[].recipient_id` | string \| null | yes |  |
| `data.fields[].group_id` | string | no | The choice group (groups[].id) this box is an option of |
| `data.fields[].option_value` | string | no | What choosing this box stamps (the form's own on-state, e.g. "ms" or "2") |
| `data.fields[].option_label` | string | no | The option's printed text ("Ms", "C corporation") |
| `data.fields[].section` | string | no | The printed heading the field sits under |
| `data.fields[].label_source` | string | no | One of: page_text, tooltip, name, provider, llm, manual |
| `data.fields[].role_hint` | string | no | Who fills it by default: "signer" for a signature box and its date |
| `data.fields[].help` | string | no | Help for the client, shown under the box's question when they fill it in (absent: none) |
| `data.groups` | object[] | yes |  |
| `data.groups[].id` | string | yes |  |
| `data.groups[].label` | string | yes |  |
| `data.groups[].kind` | string | yes | One of: single, multi |
| `data.groups[].min` | integer \| null | yes |  |
| `data.groups[].max` | integer \| null | yes |  |
| `data.groups[].instruction` | string \| null | yes | The form's own words, e.g. "Check only one of the following seven boxes" |
| `data.groups[].confidence` | number \| null | yes |  |
| `data.groups[].source` | string | yes | One of: radio, parent, name_pattern, geometry, llm, manual |
| `data.groups[].section` | string \| null | yes |  |
| `data.groups[].options` | object[] | yes | At least 2 items |
| `data.groups[].options[].field_id` | string | yes |  |
| `data.groups[].options[].value` | string | yes |  |
| `data.groups[].options[].label` | string | yes |  |

See also: [Errors](https://dev.appliflo.com/guides/errors), [Rate limits](https://dev.appliflo.com/guides/rate-limits), [Idempotency](https://dev.appliflo.com/guides/idempotency).
