ListEmailTemplates - Amazon Simple Email Service

ListEmailTemplates

Lists the email templates present in your Amazon SES account in the current AWS Region.

You can execute this operation no more than once per second.

Request Syntax

GET /v2/email/templates?NextToken=NextToken&PageSize=PageSize HTTP/1.1

URI Request Parameters

The request uses the following URI parameters.

NextToken

A token returned from a previous call to ListEmailTemplates to indicate the position in the list of email templates.

PageSize

The number of results to show in a single call to ListEmailTemplates. If the number of results is larger than the number you specified in this parameter, then the response includes a NextToken element, which you can use to obtain additional results.

The value you specify has to be at least 1, and can be no more than 100.

Request Body

The request does not have a request body.

Response Syntax

HTTP/1.1 200 Content-type: application/json { "NextToken": "string", "TemplatesMetadata": [ { "CreatedTimestamp": number, "TemplateName": "string" } ] }

Response Elements

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

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

NextToken

A token indicating that there are additional email templates available to be listed. Pass this token to a subsequent ListEmailTemplates call to retrieve the next 10 email templates.

Type: String

TemplatesMetadata

An array the contains the name and creation time stamp for each template in your Amazon SES account.

Type: Array of EmailTemplateMetadata objects

Errors

For information about the errors that are common to all actions, see Common Errors.

BadRequestException

The input you provided is invalid.

HTTP Status Code: 400

TooManyRequestsException

Too many requests have been made to the operation.

HTTP Status Code: 429

See Also

For more information about using this API in one of the language-specific AWS SDKs, see the following: