Create Template
curl --request POST \
--url https://api.example.com/api/v2/Template \
--header 'Content-Type: application/json' \
--data '
{
"TemplateName": "<string>",
"MessageTemplate": "<string>",
"ApiKey": "<string>",
"ClientId": "<string>"
}
'import requests
url = "https://api.example.com/api/v2/Template"
payload = {
"TemplateName": "<string>",
"MessageTemplate": "<string>",
"ApiKey": "<string>",
"ClientId": "<string>"
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
TemplateName: '<string>',
MessageTemplate: '<string>',
ApiKey: '<string>',
ClientId: '<string>'
})
};
fetch('https://api.example.com/api/v2/Template', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"ErrorCode": 123,
"ErrorDescription": "<string>",
"Data": "<string>"
}Template Management
Create Template
Create a new message template
Create Template
curl --request POST \
--url https://api.example.com/api/v2/Template \
--header 'Content-Type: application/json' \
--data '
{
"TemplateName": "<string>",
"MessageTemplate": "<string>",
"ApiKey": "<string>",
"ClientId": "<string>"
}
'import requests
url = "https://api.example.com/api/v2/Template"
payload = {
"TemplateName": "<string>",
"MessageTemplate": "<string>",
"ApiKey": "<string>",
"ClientId": "<string>"
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
TemplateName: '<string>',
MessageTemplate: '<string>',
ApiKey: '<string>',
ClientId: '<string>'
})
};
fetch('https://api.example.com/api/v2/Template', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"ErrorCode": 123,
"ErrorDescription": "<string>",
"Data": "<string>"
}Create Template
Create a new message template for reusable SMS content.curl -X POST "https://app.notify.ng/api/v2/Template" \
-H "Content-Type: application/json" \
-d '{
"TemplateName": "Welcome Message",
"MessageTemplate": "Welcome to ##CompanyName##! Your account ID is ##AccountId##. Thank you for joining us.",
"ApiKey": "YOUR_API_KEY",
"ClientId": "YOUR_CLIENT_ID"
}'
const response = await fetch('https://app.notify.ng/api/v2/Template', {
method: 'POST',
headers: {
'Content-Type': 'application/json'
},
body: JSON.stringify({
TemplateName: 'Welcome Message',
MessageTemplate: 'Welcome to ##CompanyName##! Your account ID is ##AccountId##. Thank you for joining us.',
ApiKey: 'YOUR_API_KEY',
ClientId: 'YOUR_CLIENT_ID'
})
});
const data = await response.json();
console.log(data);
import requests
url = "https://app.notify.ng/api/v2/Template"
data = {
"TemplateName": "Welcome Message",
"MessageTemplate": "Welcome to ##CompanyName##! Your account ID is ##AccountId##. Thank you for joining us.",
"ApiKey": "YOUR_API_KEY",
"ClientId": "YOUR_CLIENT_ID"
}
response = requests.post(url, json=data)
result = response.json()
print(result)
Request Body
string
required
Name of the template
string
required
Template content with placeholders using ##Field## format
string
required
Your API key for authentication
string
required
Your client identifier for authentication
Response
number
Error code (0 for success)
string
Description of the result
string
Success message
Success Response
{
"ErrorCode": 0,
"ErrorDescription": "Success",
"Data": "Template Added successfully."
}
Template Placeholders
Use##FieldName## format for dynamic content:
Common Placeholders
##Name##- Customer name##CompanyName##- Company name##AccountId##- Account identifier##Amount##- Transaction amount##Date##- Date##Time##- Time##OTP##- One-time password##Link##- URL link
Template Examples
Welcome Template
Welcome to ##CompanyName##! Your account ID is ##AccountId##. Thank you for joining us.
OTP Template
Your OTP is ##OTP##. Valid for 5 minutes. Do not share with anyone.
Payment Confirmation
Payment of ##Amount## received successfully on ##Date##. Transaction ID: ##TransactionId##
Appointment Reminder
Reminder: Your appointment with ##DoctorName## is scheduled for ##Date## at ##Time##.
Use Cases
- Consistency: Maintain consistent messaging across all communications
- Efficiency: Save time by reusing approved templates
- Personalization: Combine templates with dynamic data
- Compliance: Use pre-approved templates for regulated content

