Skip to main content

List Email Template IDs and Names

GET /public/action/emailTemplates

Lists email template IDs and names in the API key's workspace. Use an id with Get Email Template Content to retrieve its subject and HTML.

Authentication: X-API-KEY header (see Authentication).

Request​

curl -X GET https://api.withmoxie.com/public/action/emailTemplates \
-H "X-API-KEY: your_api_key_here"

Response​

Returns an array of objects containing id and name.

[
{"id": "template_id", "name": "Welcome Email"}
]

The existing List Email Templates endpoint continues to return names only.