:doc:`SES <../../ses>` / Client / list_templates

**************
list_templates
**************



.. py:method:: SES.Client.list_templates(**kwargs)

  

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

   

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

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/email-2010-12-01/ListTemplates>`_  


  **Request Syntax**
  ::

    response = client.list_templates(
        NextToken='string',
        MaxItems=123
    )
    
  :type NextToken: string
  :param NextToken: 

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

    

  
  :type MaxItems: integer
  :param MaxItems: 

    The maximum number of templates to return. This value must be at least 1 and less than or equal to 100. If more than 100 items are requested, the page size will automatically set to 100. If you do not specify a value, 10 is the default page size.

    

  
  
  :rtype: dict
  :returns: 
    
    **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 set of email templates within your page size.

        
  