SES / Client / list_templates



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.

See also: AWS API Documentation

Request Syntax

response = client.list_templates(
  • NextToken (string) – A token returned from a previous call to ListTemplates to indicate the position in the list of email templates.

  • MaxItems (integer) – The maximum number of templates to return. This value must be at least 1 and less than or equal to 10. If you do not specify a value, or if you specify a value less than 1 or greater than 10, the operation will return up to 10 results.

Return type:



Response Syntax

    'TemplatesMetadata': [
            'Name': 'string',
            'CreatedTimestamp': datetime(2015, 1, 1)
    'NextToken': 'string'

Response Structure

  • (dict) –

    • TemplatesMetadata (list) –

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

      • (dict) –

        Contains information about an email template.

        • Name (string) –

          The name of the template.

        • CreatedTimestamp (datetime) –

          The time and date the template was created.

    • NextToken (string) –

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