> 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

# RequestTemplates

This method returns a list of server side templates available for this account. The list format is the same as in the EnvelopeTemplateDefinition in the [RequestTemplate section](/docs/esign-soap-api/reference/administrative-group/requesttemplate).

### Schema

![RequestTemplates](/_fern-files/_img/a03a951a7493a786255185c2e50ebf42e7d4de9922fe041287b32c7fd48872d6.webp)

**`C#`**

```csharp title="C#"
// Request all the templates that this account has on file
DocuSignWeb.EnvelopeTemplateDefinition[] response = _apiClient.RequestTemplates(_accountId,
    false);

// Print out information about the templates
foreach (DocuSignWeb.EnvelopeTemplateDefinition def in response)
{
    Console.WriteLine("Retrieved template definition with ID {0} with name \"{1}\"",
         def.TemplateID, def.Name);
}
```

**`PHP`**

```php title="PHP"
// Request all the templates this account has on file 
$requestTemplatesparams = new RequestTemplates();
$requestTemplatesparams->AccountID = $AccountID;
$requestTemplatesparams->IncludeAdvancedTemplates = false;
$rtsResponses = $api->RequestTemplates($requestTemplatesparams)->RequestTemplatesResult->EnvelopeTemplateDefinition;
```

| Name                     | Schema Type | Description                                                                                                                                                                        |
| ------------------------ | ----------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| AccountId                | DSXId       | Account to request the templates for. If left blank the API user’s default account will be used.                                                                                   |
| IncludeAdvancedTemplates | Boolean     | If true, this will return templates with advanced features, (advanced features are those not supported by DSPro). If false, only templates without advanced features are returned. |

## Rules and exceptions for RequestTemplates

* Account_Lacks_Permissions – account does not have permissions to use this API.
* User_Lacks_Permissions – user does not have permissions to use this API.