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

# GetTaskDocuments

> GetTaskDocuments method in the ABBYY FlexiCapture web services API returns a Document array describing every document contained in a task by its task ID.

## What it does

Gets information about all the documents in a task.

## Definition

```
Document [] GetTaskDocuments( int taskId );
```

## Parameters

| **Name** | **Type** | **Description**                                               |
| -------- | -------- | ------------------------------------------------------------- |
| taskId   | int      | The ID of the task about which information is to be retrieved |

## Returned value

| **Type**                                              | **Description**                 |
| ----------------------------------------------------- | ------------------------------- |
| [Document](/flexi-capture/api/structures/document)\[] | The list of documents in a task |
