

# GetEmailTemplate
<a name="API_GetEmailTemplate"></a>

Displays the template object (which includes the subject line, HTML part and text part) for the template you specify.

You can execute this operation no more than 50 times per second.

## Request Syntax
<a name="API_GetEmailTemplate_RequestSyntax"></a>

```
GET /v2/email/templates/TemplateName HTTP/1.1
```

## URI Request Parameters
<a name="API_GetEmailTemplate_RequestParameters"></a>

The request uses the following URI parameters.

 ** [TemplateName](#API_GetEmailTemplate_RequestSyntax) **   <a name="SES-GetEmailTemplate-request-uri-TemplateName"></a>
The name of the template.  
Length Constraints: Minimum length of 1.  
Required: Yes

## Request Body
<a name="API_GetEmailTemplate_RequestBody"></a>

The request does not have a request body.

## Response Syntax
<a name="API_GetEmailTemplate_ResponseSyntax"></a>

```
HTTP/1.1 200
Content-type: application/json

{
   "Tags": [ 
      { 
         "Key": "string",
         "Value": "string"
      }
   ],
   "TemplateContent": { 
      "Html": "string",
      "Subject": "string",
      "Text": "string"
   },
   "TemplateName": "string"
}
```

## Response Elements
<a name="API_GetEmailTemplate_ResponseElements"></a>

If the action is successful, the service sends back an HTTP 200 response.

The following data is returned in JSON format by the service.

 ** [Tags](#API_GetEmailTemplate_ResponseSyntax) **   <a name="SES-GetEmailTemplate-response-Tags"></a>
An array of objects that define the tags (keys and values) that are associated with the email template.  
Type: Array of [Tag](API_Tag.md) objects

 ** [TemplateContent](#API_GetEmailTemplate_ResponseSyntax) **   <a name="SES-GetEmailTemplate-response-TemplateContent"></a>
The content of the email template, composed of a subject line, an HTML part, and a text-only part.  
Type: [EmailTemplateContent](API_EmailTemplateContent.md) object

 ** [TemplateName](#API_GetEmailTemplate_ResponseSyntax) **   <a name="SES-GetEmailTemplate-response-TemplateName"></a>
The name of the template.  
Type: String  
Length Constraints: Minimum length of 1.

## Errors
<a name="API_GetEmailTemplate_Errors"></a>

For information about the errors that are common to all actions, see [Common Error Types](CommonErrors.md).

 ** BadRequestException **   
The input you provided is invalid.  
HTTP Status Code: 400

 ** NotFoundException **   
The resource you attempted to access doesn't exist.  
HTTP Status Code: 404

 ** TooManyRequestsException **   
Too many requests have been made to the operation.  
HTTP Status Code: 429

## See Also
<a name="API_GetEmailTemplate_SeeAlso"></a>

For more information about using this API in one of the language-specific AWS SDKs, see the following:
+  [AWS Command Line Interface V2](https://docs.aws.amazon.com/goto/cli2/sesv2-2019-09-27/GetEmailTemplate) 
+  [AWS SDK for .NET V4](https://docs.aws.amazon.com/goto/DotNetSDKV4/sesv2-2019-09-27/GetEmailTemplate) 
+  [AWS SDK for C\$1\$1](https://docs.aws.amazon.com/goto/SdkForCpp/sesv2-2019-09-27/GetEmailTemplate) 
+  [AWS SDK for Go v2](https://docs.aws.amazon.com/goto/SdkForGoV2/sesv2-2019-09-27/GetEmailTemplate) 
+  [AWS SDK for Java V2](https://docs.aws.amazon.com/goto/SdkForJavaV2/sesv2-2019-09-27/GetEmailTemplate) 
+  [AWS SDK for JavaScript V3](https://docs.aws.amazon.com/goto/SdkForJavaScriptV3/sesv2-2019-09-27/GetEmailTemplate) 
+  [AWS SDK for Kotlin](https://docs.aws.amazon.com/goto/SdkForKotlin/sesv2-2019-09-27/GetEmailTemplate) 
+  [AWS SDK for PHP V3](https://docs.aws.amazon.com/goto/SdkForPHPV3/sesv2-2019-09-27/GetEmailTemplate) 
+  [AWS SDK for Python](https://docs.aws.amazon.com/goto/boto3/sesv2-2019-09-27/GetEmailTemplate) 
+  [AWS SDK for Ruby V3](https://docs.aws.amazon.com/goto/SdkForRubyV3/sesv2-2019-09-27/GetEmailTemplate) 