Get an email template

gethttps://api.expiryedge.com/v1/emailTemplate
any 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.

Query-Parameter

  • templateIdstringerforderlich
    Email template id.

Rückgabe

200
The template.
  • namestring
    max length: 120
  • subjectstring
    Must not contain line breaks.
    max length: 200
  • body_htmlstring
    HTML body, at most ~900 KB.
  • typestring
    Defaults to expiry_reminder.
    Erlaubtexpiry_reminder
  • track_opensboolean
    Defaults to true on create; kept as-is on update when omitted.
  • track_clicksboolean
    Defaults to true on create; kept as-is on update when omitted.
  • idstringschreibgeschützt
  • created_bystringschreibgeschützt
  • updated_bystringschreibgeschützt
  • created_atstringschreibgeschützt
    format: date-time
  • updated_atstringschreibgeschützt
    format: date-time

Fehler

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.