NextSign API
Email Templates

List Email Templates

Every e-mail, SMS and e-Boks template of your company, as stored, with GET /api/v2/{company}/emailTemplates/get.

GET https://www.nextsign.dk/api/v2/{company}/emailTemplates/get

Every template of your company: e-mail, SMS and e-Boks alike, including those made in the dashboard.

cURL
curl 'https://www.nextsign.dk/api/v2/{company}/emailTemplates/get' \
  -H 'Authorization: Bearer YOUR_API_KEY'

Response

200 OK with an array of the templates as they are stored. This route is older than the other template routes and is kept as it is, so its field names are the database's, not those of the settings blocks. Trimmed:

[
  {
    "_id": "6731a2b4c5d6e7f8a9b0c1d2",
    "name": "Underskrift via SMS",
    "type": "sms",
    "lang": "da",
    "title": "",
    "subject": "",
    "body": "Hej {recipient_name}, underskriv {case_name} her: {recipient_url}",
    "sender_name": "LandPlan",
    "sentFrom": "noreply@nextsign.dk",
    "company": "655e252f708ff057141e577e"
    // every other stored field
  }
]
FieldMeaning
_idThe template id, used by Get, Update and as emailtemplate on a case
nameThe template's name in the dashboard
typeemail, sms or eboks
langThe template's language. Missing on templates made before templates had one

The list is not paged. For one template with every setting in the documented form, use Get with its _id. API v3 lists templates page by page, filtered by type, in the documented form.