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

# GetTemplates

> Call GetTemplates in the ABBYY FlexiCapture API to retrieve information about all Document Definitions in a project as an array of Template records.

## What it does

Gets information about all the Document Definitions of a project.

## Definition

```
Template [] GetTemplates( int projectId );
```

## Parameters

| **Name**  | **Type** | **Description**       |
| --------- | -------- | --------------------- |
| projectId | int      | The ID of the project |

## Returned value

| **Type**                                              | **Description**                                                           |
| ----------------------------------------------------- | ------------------------------------------------------------------------- |
| [Template](/flexi-capture/api/structures/template)\[] | A set of records, each containing information about a Document Definition |
