# Get all email templates

You can return information about all of your email templates.

GET /email-templates/

# Request

  • CURL
  • JavaScript
  • PHP
  • Python
curl -X GET -H "Authorization: Token <your_64_char_api_key>"
-H "Accept: */*; version=2" 
-H "Accept: */*; version=2" -H "Content-Type: application/json" "https://<your_app_subdomain>.user.com/api/public/email-templates/"

# Response

{
  "count": 2,
  "next": null,
  "previous": null,
  "results": [
    {
      "id": 213,
      "name": "Test template",
      "desc": "This is email template created for test. Don't send it to users.",
      "created_at": "2016-09-19T09:08:53.125485Z",
      "updated_at": "2016-09-19T09:08:53.125518Z",
      "content": "\<body>\<p>My test email template\</p>\</body>",
      "subject": "Test template subject"
    },
    {
      "id": 212,
      "name": "Test template",
      "desc": "This is email template created for test.",
      "created_at": "2016-09-19T09:08:17.828870Z",
      "updated_at": "2016-09-19T09:08:17.828920Z",
      "content": "\<body>\<p>My test email template\</p>\</body>"
      "subject": "Test template subject2"
    }
  ]
}