Skip to main content
GET/email-templates/

Get all email templates

You can return information about all of your email templates.

Returns up to 100 email templates per page. To get the rest, follow next (see Response pagination).

Request​

curl -X GET "https://<your_app_subdomain>.user.com/api/public/email-templates/" \
-H "Authorization: Token <your_64_char_api_key>" \
-H "Accept: */*; version=2"

Response examples​

{
"count": 1,
"next": null,
"previous": null,
"results": [
{
"id": 165,
"name": "Welcome email",
"content": "<p>Hi {{ user.first_name }},</p><p>Thanks for signing up.</p>",
"desc": "Sent right after sign-up.",
"created_at": "2026-11-10T07:20:37.720697Z",
"updated_at": "2026-11-10T07:20:39.737192Z",
"subject": null
}
]
}

Response fields​

Fields returned in the 200 OK response body.

countinteger
Number of results across all pages. It can lag behind recent changes; see Response pagination.
nextstring (URL)nullable
URL of the next page of results. null on the last page.
previousstring (URL)nullable
URL of the previous page of results. null on the first page.
resultsarray of objects
Results on this page.
results[].idinteger
A unique identifier for the campaign which is given by User
results[].namestring
An email campaign name.
results[].contentstring
HTML content of the template.
results[].descstring
Description of the template.
results[].created_atstring (date-time)
A creation date of email campaign.
results[].updated_atstring (date-time)
A last update of email campaign
results[].subjectstringnullable
Email subject line.
note

Errors that can come from any endpoint (401, 429, 500, 502, 504) are described in HTTP response codes.