> You are reading the Docusign Developer Documentation. For clean Markdown of any page, append .md to the page URL.
>
> Documentation indexes by section:
> - APIs and SDKs: https://docusign.docs.buildwithfern.com/docs/llms.txt
> - Platform 101: https://docusign.docs.buildwithfern.com/platform/llms.txt
> - Extension Apps: https://docusign.docs.buildwithfern.com/extension-apps/llms.txt
> - Docusign CLI: https://docusign.docs.buildwithfern.com/docusign-cli/llms.txt
>
> Authentication (OAuth, JWT Grant, M2M): https://docusign.docs.buildwithfern.com/platform/auth
> Webhooks and Connect: https://docusign.docs.buildwithfern.com/platform/webhooks
>
> OpenAPI specifications: https://docusign.docs.buildwithfern.com/openapi.json
> MCP server: https://docusign.docs.buildwithfern.com/_mcp/server

# GetFolderList

GetFolderList requests the list of all folders, including shared folders, available for the account.

### Schema

![GetFolderList](/_fern-files/_img/7f317492932cb55281bb9ebdafec729af0a0241326f5396dd017cb0c77db8100.webp)

**`C#`**

```csharp title="C#"
// Create the folders filter with an account ID
DocuSignWeb.FoldersFilter filter = new DocuSignWeb.FoldersFilter();
filter.AccountId = _accountId;

// Now, call the method to get a list of the folders on the
// specified account
DocuSignWeb.AvailableFolders folders = _apiClient.GetFolderList(filter);

// Everyone will at least have the folders:
// Draft, Sent Items, Inbox and Deleted Items
// Print out some information about the returned folders
Console.WriteLine("The folders available on account {0} are:", _accountId);
foreach (DocuSignWeb.Folder folder in folders.Folders)
{
    Console.WriteLine("\t{0} owns folder {1}", folder.FolderOwner.UserName, folder.FolderTypeInfo.FolderName);
}
```

**`PHP`**

```php title="PHP"
// Create the folders filter with an account ID
$filter = new FoldersFilter();
$filter->AccountId = $AccountID;

// Send
$getFolderListparams = new GetFolderList();
$getFolderListparams->FoldersFilter = $filter;
$response = $api->GetFolderList($getFolderListparams);
```

| Name             | Schema Type | Description                                                |
| ---------------- | ----------- | ---------------------------------------------------------- |
| AccountId        | DSXId       | The account ID associated with the requested folder.       |
| IncludeHierarchy | Boolean     | If true, the folder's hierarchical positions are returned. |

## AvailableFolders

This is the response to a GetFolderList request and provides the list of folders, including shared folders, for the requestor.

| Name    | Schema Type | Description                                                         |
| ------- | ----------- | ------------------------------------------------------------------- |
| Folders | Folders     | An array of Folder objects with the FolderOwner and FolderTypeInfo. |

### Folder

Provides the Folder Owner and Folder Type information.

| Name           | Schema Type    | Description                                                                                                               |
| -------------- | -------------- | ------------------------------------------------------------------------------------------------------------------------- |
| FolderOwner    | String         | The name of the user that currently owns the folder.                                                                      |
| FolderTypeInfo | FolderTypeInfo | The type of folder and in some cases the name of the folder. Values can be RecycleBin, Draft, Inbox, SentItems or Normal. |

### FolderTypeInfo

Provides the Folder Type information and, if the Folder Type is Normal, the Folder Name.

| Name       | Schema Type | Description                                                                                                   |
| ---------- | ----------- | ------------------------------------------------------------------------------------------------------------- |
| FolderType | FolderType  | The type of folder based on the GetFolders call. Values can be RecycleBin, Draft, Inbox, SentItems or Normal. |
| FolderName | String      | The name of the folder. This only appears if the FolderType is Normal.                                        |
| FolderPath | String      | the hierarchical path to the folder, comprised of bar delimited FolderIds                                     |
| FolderId   | String      | The folder’s (Guid) identifier.                                                                               |