NextSign API
Email Templates

List Message Templates

List your company's e-mail, SMS and e-Boks templates with GET /v3/api/message-templates.

GET https://api.nextsign.dk/v3/api/message-templates

Your company's message templates, newest first, including those made in the dashboard.

curl 'https://api.nextsign.dk/v3/api/message-templates?type=sms' \
  --header "Authorization: Bearer $NEXTSIGN_API_KEY"

Query parameters

All are optional. Unknown parameters are rejected with 400 validation-failed.

ParameterMeaning
typeOnly email, sms or eboks templates
limitPage size, 1–100. Default 25
cursornextCursor from the previous page

Response

200 OK:

{
  "templates": [
    {
      "id": "6731a2b4c5d6e7f8a9b0c1d3",
      "name": "Lejekontrakt",
      "title": "Dokumenter til underskrift",
      "type": "email",
      "language": "da",
      "subject": "Underskriv {case_name}"
    },
    {
      "id": "6731a2b4c5d6e7f8a9b0c1d2",
      "name": "Underskrift via SMS",
      "title": "Underskrift via SMS",
      "type": "sms",
      "language": "da"
    }
  ],
  "nextCursor": null,
  "hasMore": false
}
FieldMeaning
nameThe template's name in the dashboard
titleThe e-mail heading or the e-Boks inbox title when there is one, else the name
languageThe template's language, null for a template made before templates had one
subjectE-mail only
solution, letterse-Boks only: how it is delivered and the letters on it, see Get

While hasMore is true, pass nextCursor as cursor for the next page. Get a Message Template returns every setting.