> ## 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.

# GetDetailedBatches2

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

## What it does

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

## Definition

```csharp theme={null}
DetailedBatch2 GetDetailedBatches2(int projectId, int userId, bool onlyPrivateBatches);
```

## Parameters

| Name                 | Type   | Description                                                                                                                                                                                                                                                                                                                                                |
| -------------------- | ------ | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `projectId`          | `int`  | The ID of the project that contains the batches to retrieve information about.                                                                                                                                                                                                                                                                             |
| `userId`             | `int`  | User ID.                                                                                                                                                                                                                                                                                                                                                   |
| `onlyPrivateBatches` | `bool` | A flag that determines whether batches created in the Web Capture Station are returned. `True` returns all batches created in the Web Capture Station; in the Verification stage, these batches are available only to the Operator who created them in the Scanning stage. `False` returns batches created in all stations except the Web Capture Station. |

## Returned value

| Type                                                                | Description                                               |
| ------------------------------------------------------------------- | --------------------------------------------------------- |
| [DetailedBatch2](/flexi-capture/api/structures/detailed-batch2)`[]` | Information about a batch with an expanded set of fields. |
