Get Email Template Content
Retrieves the raw subject and HTML content of an email template in the API key's workspace. Tokens are returned unchanged; this endpoint does not render tokens or send email.
Authentication: X-API-KEY header (see Authentication).
Request
| Path parameter | Type | Required | Description |
|---|---|---|---|
templateId | string | Yes | Template ID returned by List Email Template IDs and Names. |
curl -X GET https://api.withmoxie.com/public/action/emailTemplates/template_id \
-H "X-API-KEY: your_api_key_here"
Response
Returns an object containing id, name, subject, and htmlContent.
{
"id": "template_id",
"name": "Welcome Email",
"subject": "Welcome!",
"htmlContent": "<p>Welcome to our team.</p>"
}
Returns 404 when the template is not found in the API key's workspace.