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-templatesYour 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.
| Parameter | Meaning |
|---|---|
type | Only email, sms or eboks templates |
limit | Page size, 1–100. Default 25 |
cursor | nextCursor 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
}| Field | Meaning |
|---|---|
name | The template's name in the dashboard |
title | The e-mail heading or the e-Boks inbox title when there is one, else the name |
language | The template's language, null for a template made before templates had one |
subject | E-mail only |
solution, letters | e-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.