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

# GetDocuments2

> GetDocuments2 method in the ABBYY FlexiCapture Web Services API returns a list of documents with an expanded set of fields.

## What it does

Gets a list of documents with an expanded set of fields.

## Definition

```csharp theme={null}
Document2[] GetDocuments2(int batchId);
```

## Parameters

| Name      | Type  | Description                                                                    |
| --------- | ----- | ------------------------------------------------------------------------------ |
| `batchId` | `int` | The ID of the batch that contains the documents to retrieve information about. |

## Returned value

| Type                                                     | Description                                                                                    |
| -------------------------------------------------------- | ---------------------------------------------------------------------------------------------- |
| [Document2](/flexi-capture/api/structures/document2)`[]` | A set of records, each containing information about a document with an expanded set of fields. |
