Get an email template
get
https://api.expiryedge.com/v1/emailTemplateany role (admin, editor or viewer)60/min
Anfrage
curl 'https://api.expiryedge.com/v1/emailTemplate?templateId=et_Qw81zd' \
-H "Authorization: Bearer $EXPIRYEDGE_API_KEY"Antwort
{
"id": "et_Qw81zd",
"name": "Friendly renewal reminder",
"subject": "Reminder: {{expiry.name}} {{expiry.status}}",
"body_html": "<p>Hi {{contact.firstName}},</p><p>{{expiry.name}} {{expiry.status}}. <a href=\"{{expiry.url}}\">View details</a>.</p>",
"type": "expiry_reminder",
"track_opens": true,
"track_clicks": false,
"created_by": "u_71bXq",
"updated_by": "u_71bXq",
"created_at": "2026-09-27T14:05:00.000Z",
"updated_at": "2026-09-27T14:05:00.000Z"
}Only GET, POST, PUT and DELETE are accepted on /emailTemplate.
templateIdstringerforderlichEmail template id.
200
The template.
namestringmax length: 120subjectstringMust not contain line breaks.max length: 200body_htmlstringHTML body, at most ~900 KB.typestringDefaults toexpiry_reminder.Erlaubtexpiry_remindertrack_opensbooleanDefaults to true on create; kept as-is on update when omitted.track_clicksbooleanDefaults to true on create; kept as-is on update when omitted.idstringschreibgeschütztcreated_bystringschreibgeschütztupdated_bystringschreibgeschütztcreated_atstringschreibgeschütztformat: date-timeupdated_atstringschreibgeschütztformat: date-time
400 | The request is missing required fields or contains invalid values. |
401 | Missing, expired or invalid bearer token. |
404 | The record does not exist or is not in your organization. |
405 | The endpoint does not accept this HTTP method. |
429 | Too many requests for this endpoint from your IP. Wait Retry-After seconds. |
500 | Unexpected server error. Retry later; quote requestId to support. |
