Get a template
The authorisation header is an API key that is encoded using JSON Web Tokens. You must include an authorisation header.
JSON Web Tokens have a standard header and a payload. The header consists of:
{
"type":"JWT",
"alg":"HS256"
}
The payload consists of:
{
"iss": "26785a09-ab16-4eb0-8407-a37497a57506",
"iat": 1568818578
}
JSON Web Tokens are encoded using a secret key with the following format: 3d844edf-8d35-48ac-975b-e847b4f122b0
That secret key forms a part of your API key, which follows the format
{key_name}-{iss-uuid}-{secret-key-uuid}.
For example, if your API key is
my_test_key-26785a09-ab16-4eb0-8407-a37497a57506-3d844edf-8d35-48ac-975b-e847b4f122b0:
- your API key name is
my_test_key - your iss (your service id) is
26785a09-ab16-4eb0-8407-a37497a57506 - your secret key is
3d844edf-8d35-48ac-975b-e847b4f122b0
iat (issued at) is the current time in UTC in epoch seconds. The token expires within 30 seconds of the current time.
Refer to the JSON Web Tokens website for more information on encoding your authorisation header.
When you have an encoded and signed token, add that token to a header as follows:
"Authorization": "Bearer encoded_jwt_token"
If you leave out this argument, the method returns all templates. Otherwise you can filter by: email, sms, letter
{"summary":"type=sms","description":"Show templates of type SMS","value":"sms"}Possible values: If the request is successful, the response body is json and the status code is 200
If the request is successful, the response body is json and the status code is 200
Make sure that the provided type is one of: email, sms, letter
Auth error. Check the message in the response to find out why your request failed.
Rate or service limit error. Check the message in the response to find out why your request failed.
Internal server error. Check the message in the response to find out why your request failed.
The authorisation header is an API key that is encoded using JSON Web Tokens. You must include an authorisation header.
JSON Web Tokens have a standard header and a payload. The header consists of:
{
"type":"JWT",
"alg":"HS256"
}
The payload consists of:
{
"iss": "26785a09-ab16-4eb0-8407-a37497a57506",
"iat": 1568818578
}
JSON Web Tokens are encoded using a secret key with the following format: 3d844edf-8d35-48ac-975b-e847b4f122b0
That secret key forms a part of your API key, which follows the format
{key_name}-{iss-uuid}-{secret-key-uuid}.
For example, if your API key is
my_test_key-26785a09-ab16-4eb0-8407-a37497a57506-3d844edf-8d35-48ac-975b-e847b4f122b0:
- your API key name is
my_test_key - your iss (your service id) is
26785a09-ab16-4eb0-8407-a37497a57506 - your secret key is
3d844edf-8d35-48ac-975b-e847b4f122b0
iat (issued at) is the current time in UTC in epoch seconds. The token expires within 30 seconds of the current time.
Refer to the JSON Web Tokens website for more information on encoding your authorisation header.
When you have an encoded and signed token, add that token to a header as follows:
"Authorization": "Bearer encoded_jwt_token"
The ID of the template. Sign in to NotifyNL and go to the Templates page to find it.
b7a59abd-0ab2-4538-b619-8da9f9089e08If the request is successful, the response body is json and the status code is 200
required string - template ID
f33517ff-2a88-4f6e-b855-c550268ce08arequired string - template name
Test templaterequired string
smsPossible values: required string - date and time template created
2024-08-12T10:40:20.000000Zrequired string - date and time template last updated
2024-08-12T10:45:47.890097Z3required string - body of notification
Hi ((firstname)), We have received your letter dated ((date)). No further action is required.required string for email - subject of email, otherwise null
Testrequired string for letter - postage type, otherwise null
secondPossible values: object containaing personalisation parameters - empty if no personalisation in the template
{"date":{"required":true},"firstname":{"required":true}}optional string - null if not a letter template or contact block not set
Make sure that the provided type is one of: email, sms, letter
Auth error. Check the message in the response to find out why your request failed.
Check your template ID
Rate or service limit error. Check the message in the response to find out why your request failed.
Internal server error. Check the message in the response to find out why your request failed.
The authorisation header is an API key that is encoded using JSON Web Tokens. You must include an authorisation header.
JSON Web Tokens have a standard header and a payload. The header consists of:
{
"type":"JWT",
"alg":"HS256"
}
The payload consists of:
{
"iss": "26785a09-ab16-4eb0-8407-a37497a57506",
"iat": 1568818578
}
JSON Web Tokens are encoded using a secret key with the following format: 3d844edf-8d35-48ac-975b-e847b4f122b0
That secret key forms a part of your API key, which follows the format
{key_name}-{iss-uuid}-{secret-key-uuid}.
For example, if your API key is
my_test_key-26785a09-ab16-4eb0-8407-a37497a57506-3d844edf-8d35-48ac-975b-e847b4f122b0:
- your API key name is
my_test_key - your iss (your service id) is
26785a09-ab16-4eb0-8407-a37497a57506 - your secret key is
3d844edf-8d35-48ac-975b-e847b4f122b0
iat (issued at) is the current time in UTC in epoch seconds. The token expires within 30 seconds of the current time.
Refer to the JSON Web Tokens website for more information on encoding your authorisation header.
When you have an encoded and signed token, add that token to a header as follows:
"Authorization": "Bearer encoded_jwt_token"
The ID of the template. Sign in to NotifyNL and go to the Templates page to find it.
b7a59abd-0ab2-4538-b619-8da9f9089e08The version number of the template.
1If the request is successful, the response body is json and the status code is 200
required string - template ID
f33517ff-2a88-4f6e-b855-c550268ce08arequired string - template name
Test templaterequired string
smsPossible values: required string - date and time template created
2024-08-12T10:40:20.000000Zrequired string - date and time template last updated
2024-08-12T10:45:47.890097Z3required string - body of notification
Hi ((firstname)), We have received your letter dated ((date)). No further action is required.required string for email - subject of email, otherwise null
Testrequired string for letter - postage type, otherwise null
secondPossible values: object containaing personalisation parameters - empty if no personalisation in the template
{"date":{"required":true},"firstname":{"required":true}}optional string - null if not a letter template or contact block not set
Make sure that the provided type is one of: email, sms, letter
Auth error. Check the message in the response to find out why your request failed.
Check your template ID and version
Rate or service limit error. Check the message in the response to find out why your request failed.
Internal server error. Check the message in the response to find out why your request failed.
The authorisation header is an API key that is encoded using JSON Web Tokens. You must include an authorisation header.
JSON Web Tokens have a standard header and a payload. The header consists of:
{
"type":"JWT",
"alg":"HS256"
}
The payload consists of:
{
"iss": "26785a09-ab16-4eb0-8407-a37497a57506",
"iat": 1568818578
}
JSON Web Tokens are encoded using a secret key with the following format: 3d844edf-8d35-48ac-975b-e847b4f122b0
That secret key forms a part of your API key, which follows the format
{key_name}-{iss-uuid}-{secret-key-uuid}.
For example, if your API key is
my_test_key-26785a09-ab16-4eb0-8407-a37497a57506-3d844edf-8d35-48ac-975b-e847b4f122b0:
- your API key name is
my_test_key - your iss (your service id) is
26785a09-ab16-4eb0-8407-a37497a57506 - your secret key is
3d844edf-8d35-48ac-975b-e847b4f122b0
iat (issued at) is the current time in UTC in epoch seconds. The token expires within 30 seconds of the current time.
Refer to the JSON Web Tokens website for more information on encoding your authorisation header.
When you have an encoded and signed token, add that token to a header as follows:
"Authorization": "Bearer encoded_jwt_token"
The ID of the template. Sign in to NotifyNL and go to the Templates page to find it.
b7a59abd-0ab2-4538-b619-8da9f9089e08If a template has placeholder fields for personalised information such as name or reference number, you need to provide their values in a dictionary with key value pairs.
Created
If the request is successful, the response body is json and the status code is 200
b7a59abd-0ab2-4538-b619-8da9f9089e08required string
smsPossible values: 2required string - body of notification
Hi Amala, We have received your letter dated 19/08/2024. No further action is required.html representation of the notification to be sent - null for sms
required string for email - subject of email, otherwise null
required string for letter - postage type, otherwise null
Bad request. Check the message in the response to find out why your request failed.
Auth error. Check the message in the response to find out why your request failed.
Rate or service limit error. Check the message in the response to find out why your request failed.
Internal server error. Check the message in the response to find out why your request failed.
Last updated