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

# GetDocument

> GetDocument method in the ABBYY FlexiCapture web services API retrieves extended information about a single document in a batch as a Document object.

## What it does

Gets extended information about a document.

## Definition

```
Document GetDocument( int sessionId, int batchId, int documentId );
```

## Parameters

| **Name**   | **Type** | **Description**                                                                           |
| ---------- | -------- | ----------------------------------------------------------------------------------------- |
| sessionId  | int      | The ID of the connection to the Application Server                                        |
| batchId    | int      | The ID of the batch that contains the document about which information is to be retrieved |
| documentId | int      | The ID of the document about which information is to be retrieved                         |

## Returned value

| **Type**                                           | **Description**                |
| -------------------------------------------------- | ------------------------------ |
| [Document](/flexi-capture/api/structures/document) | Information about the document |
