> ## Documentation Index
> Fetch the complete documentation index at: https://docs.argyle.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Document Processing

> Upload and process documents.

Documents can be uploaded directly through the API or collected from users in Link. Supported documents include W-2s, 1099s, paystubs, proof of identity, proof of address, and other files.

![Link supports directly uploading documents such as paystubs, W-2s, and 1099s as well as proof of identity, proof of address, and a miscellaneous (re-namable) category of documents.](https://mintcdn.com/argyle/zs6lb-w1jQV9DVbr/images/overview/how-argyle-works/5-how-argyle-works.png?fit=max\&auto=format\&n=zs6lb-w1jQV9DVbr\&q=85\&s=0adeffff94b9f94a99c58aa50540413b)

## Uploading documents

### User uploads within Link

Document uploads can be enabled and customized through the [Flows](https://console.argyle.com/flows) section of Console.

> [accordion] How to enable document uploads on Link's intro screen
>
> 1. Create or edit an existing Flow.
>
> 2. In the **Intro screen** section, enable the "Intro screen" and "Document upload" toggles.
>
> 3. In the **Document upload settings** section:
>
> * Customize the text of the document upload submission screen.
> * Select the document upload categories you would like to display. Choose whether a selected category is optional or required. If required, specify how many documents are needed for the category.

> [accordion] How to enable document uploads as a fallback (employer not found or incorrect login credentials)
>
> 1. Create or edit an existing Flow.
>
> 2. In the **Search and connect** section, scroll down to **Fallback experiences** and select the "Document upload" toggle for one or both fallback scenarios:
>
> * **User finds no search results** (*not applicable to [Direct login](https://docs.argyle.com/workflows/account-connections.md#direct-login) flows*): Users are prompted to upload documents when they are unable to locate their employer or payroll provider through Link search.
>
> * **User provides incorrect credentials**: Users are prompted to upload documents when a payroll connection attempt is unsuccessful.
>
> 3. In the **Document upload settings** section:
>
> * Customize the text of the document upload submission screen.
> * Select the document upload categories you would like to display. Choose whether a selected category is optional or required. If required, specify how many documents are needed for the category.

> [accordion] How to enable document uploads on Link's success screen (after an account connection)
>
> 1. Create or edit an existing Flow.
>
> 2. In the **Success screen** section, select "Allow users to upload documents after a successful connection".
>
> 3. In the **Document upload settings** section:
>
> * Customize the text of the document upload submission screen.
> * Select the document upload categories you would like to display. Choose whether a selected category is optional or required. If required, specify how many documents are needed for the category.

The following document uploaded categories are currently supported:

| Category | Description | OCR supported | Authenticity supported |
| - | - | - | - |
| Paystubs | Paystubs used as proof of income. | Yes | Yes |
| W-2s | Yearly wage, salary, and tax information. | Yes | Yes |
| 1099s | Income other than wages, salaries, and tips. | Yes | Yes, for [supported forms](https://docs.argyle.com/integrations/ocr/ocrolus.md#authenticity-scores) |
| Proof of identity | Valid form of identity such as a driver's license or passport. | No | No |
| Proof of address | Residential address verification, such as a utility bill, bank statement, or lease agreement. | No | No |
| Miscellaneous | Re-nameable category for miscellaneous documents. | No | No |

If all document categories are marked as *Optional*, the option to "Skip document upload" will be presented to users:

![If all document upload categories are marked as optional, the option to skip document upload will be presented to users.](https://mintcdn.com/argyle/QYNgkspEsQEdzfi4/images/argyle-guides/workflows/document-upload/7-document-upload.png?fit=max\&auto=format\&n=QYNgkspEsQEdzfi4\&q=85\&s=2e4268475ba3c20e00d4a0f14f65de47)

After enabling document uploads and saving your Flow in Console:

* **Shareable URLs** — Document uploads will be active when any user enters Link through your saved shareable URL.
* **Email/SMS Templates** — When [inviting new users](https://docs.argyle.com/console/flows/email-sms-templates.md#inviting-new-users), select the Flow from the **Template** dropdown.
* **Embedded Experiences** — Copy the Flow ID from Console and add the following line to your [Link initialization](https://docs.argyle.com/link/initialization/overview.md#optional-initialization-parameters):
  ```json theme={}
  flowId: "<Flow ID>" // (e.g. "V32M5YBC")
  ```

### Document upload only

1. Create or edit an existing Flow.
2. In the **Search and connect** section, select "Doc upload".
3. In the **Document upload settings** section:

* Customize the text of the document upload submission screen.
* Select the document upload categories you would like to display. Choose whether a selected category is optional or required. If required, specify how many documents are needed for the category.

After saving the Flow, use its Flow ID when launching Link. Users will open the document upload screen without connecting a payroll account.

![Select Doc upload in the search and connect tab when creating a Link flow customization.](https://mintcdn.com/argyle/QYNgkspEsQEdzfi4/images/argyle-guides/workflows/document-upload/5-document-upload.png?fit=max\&auto=format\&n=QYNgkspEsQEdzfi4\&q=85\&s=d305b411502027a91db11ac069fc79f5)

### Additional uploads (returning users)

When document uploads are enabled, users can [return to Link](https://docs.argyle.com/workflows/reconnecting-accounts.md) and upload additional documents or delete previously uploaded documents. Category limits configured in the Flow continue to apply when the user returns.

![Users can return to Link if you need them to upload additional documents.](https://mintcdn.com/argyle/QYNgkspEsQEdzfi4/images/argyle-guides/workflows/document-upload/6-document-upload.png?fit=max\&auto=format\&n=QYNgkspEsQEdzfi4\&q=85\&s=597277ab54c1f461ba7bafa45fc07e5f)

### Direct uploads via the API

If you already collect documents outside Link, upload them with [`POST /v2/user-uploads`](https://docs.argyle.com/api-reference/user-uploads/upload-a-document).

> [!NOTE]
>
> Uploading documents via the API can be used in combination with [document authenticity and OCR](https://docs.argyle.com/workflows/document-processing.md#document-authenticity-and-ocr). OCR and authenticity information can also be retrieved via the API — see our [OCR guide](https://docs.argyle.com/integrations/ocr/ocrolus.md#api) for more information.

## Retrieving uploaded documents

Retrieve uploaded documents through the [User Uploads API](https://docs.argyle.com/api-reference/user-uploads.md). Use [User Upload webhooks](https://docs.argyle.com/api-reference/user-uploads-webhooks/added.md) for backend processing and `onDocumentsSubmitted` for immediate [Link callback](https://docs.argyle.com/link/reference/callbacks.md#ondocumentssubmitted) handling.

Uploaded documents can also be retrieved within the [Connections section of Console](https://console.argyle.com/connections) after selecting an individual user. Any uploaded documents will be available for download in an **Uploaded documents** tab.

![If a user has uploaded documents through Link, they will appear in an Uploaded Documents tab on the user's page in Console.](https://mintcdn.com/argyle/X2Ud-Ls5bpXC3Xsk/images/argyle-guides/integrations/document-ocr-processors/2-OCR.png?fit=max\&auto=format\&n=X2Ud-Ls5bpXC3Xsk\&q=85\&s=15a597c09e758e006539b57076d826f8)

## Document authenticity and OCR

Supported uploaded documents can be processed through [Ocrolus](https://docs.argyle.com/integrations/ocr/ocrolus.md) for OCR and authenticity signals. View the results in [Console](https://docs.argyle.com/integrations/ocr/ocrolus.md#console) or retrieve `metadata.ocr_documents[]` through the [User Uploads API](https://docs.argyle.com/api-reference/user-uploads.md).

Use [OCR webhooks](https://docs.argyle.com/integrations/ocr/ocrolus.md#ocr-webhooks) to track OCR completion, failures, and authenticity results. See [OCR errors](https://docs.argyle.com/integrations/ocr/ocrolus.md#ocr-errors) when a document cannot be processed.

![Summary information of document authenticity returned by Ocrolus can be viewed in Console.](https://mintcdn.com/argyle/X2Ud-Ls5bpXC3Xsk/images/argyle-guides/integrations/document-ocr-processors/3-OCR.png?fit=max\&auto=format\&n=X2Ud-Ls5bpXC3Xsk\&q=85\&s=46a236fa361202ed5b0c193b1e16c898)

## Supported file types

| File format | Link support | Ocrolus OCR support |
| - | - | - |
| PDF | Web, iOS, Android, React Native, Flutter | Yes |
| JPG image uploads | Web, iOS, Android, React Native, Flutter | Yes |
| PNG image uploads | Web, iOS, Android, React Native, Flutter | Yes |
| HEIC image uploads | Web, iOS, Android, React Native, Flutter | Yes |
| Photo capture | Web, iOS, Android, React Native, Flutter | Yes |

## Restricting to only PDFs

Document uploads can be restricted to only PDF file types by enabling the **Restrict to PDF only** toggle for each document type in the [Flows](https://console.argyle.com/flows) section of Console.

![Toggle Restrict to PDF only to restrict file uploads to PDFs only.](https://mintcdn.com/argyle/uzAEgPS2J3g8X799/images/argyle-guides/workflows/document-upload/8-document-upload.png?fit=max\&auto=format\&n=uzAEgPS2J3g8X799\&q=85\&s=33979d80efc102561bd448e4132218c8)

When a document type is restricted to PDF only, Link will adjust accordingly to guide users. Depending on the device used to upload documents, they will either be prevented from selecting non-PDF file types or shown an error if a non-PDF file type is uploaded.

![Link's doc upload button will change to say Upload PDF instead of Upload, and an invalid file format error will be shown if the user attempts to upload a non-pdf file type.](https://mintcdn.com/argyle/uzAEgPS2J3g8X799/images/argyle-guides/workflows/document-upload/9-document-upload.png?fit=max\&auto=format\&n=uzAEgPS2J3g8X799\&q=85\&s=1913bee6645413071572ac48b18c36c2)
