Send Email notification
curl --request POST \
--url https://notification.platform.dev.ai71services.ai/api/v1/notifications/email \
--header 'Content-Type: application/json' \
--header 'x-api-key: <x-api-key>' \
--data '
{
"payload": {
"html": "<string>",
"sender": "<string>",
"subject": "<string>",
"to": "<string>",
"template_fields": {
"template_content": [
{}
],
"template_name": "<string>"
}
},
"retry_enabled": true
}
'import requests
url = "https://notification.platform.dev.ai71services.ai/api/v1/notifications/email"
payload = {
"payload": {
"html": "<string>",
"sender": "<string>",
"subject": "<string>",
"to": "<string>",
"template_fields": {
"template_content": [{}],
"template_name": "<string>"
}
},
"retry_enabled": True
}
headers = {
"x-api-key": "<x-api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'x-api-key': '<x-api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
payload: {
html: '<string>',
sender: '<string>',
subject: '<string>',
to: '<string>',
template_fields: {template_content: [{}], template_name: '<string>'}
},
retry_enabled: true
})
};
fetch('https://notification.platform.dev.ai71services.ai/api/v1/notifications/email', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://notification.platform.dev.ai71services.ai/api/v1/notifications/email",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'payload' => [
'html' => '<string>',
'sender' => '<string>',
'subject' => '<string>',
'to' => '<string>',
'template_fields' => [
'template_content' => [
[
]
],
'template_name' => '<string>'
]
],
'retry_enabled' => true
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"x-api-key: <x-api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://notification.platform.dev.ai71services.ai/api/v1/notifications/email"
payload := strings.NewReader("{\n \"payload\": {\n \"html\": \"<string>\",\n \"sender\": \"<string>\",\n \"subject\": \"<string>\",\n \"to\": \"<string>\",\n \"template_fields\": {\n \"template_content\": [\n {}\n ],\n \"template_name\": \"<string>\"\n }\n },\n \"retry_enabled\": true\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("x-api-key", "<x-api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://notification.platform.dev.ai71services.ai/api/v1/notifications/email")
.header("x-api-key", "<x-api-key>")
.header("Content-Type", "application/json")
.body("{\n \"payload\": {\n \"html\": \"<string>\",\n \"sender\": \"<string>\",\n \"subject\": \"<string>\",\n \"to\": \"<string>\",\n \"template_fields\": {\n \"template_content\": [\n {}\n ],\n \"template_name\": \"<string>\"\n }\n },\n \"retry_enabled\": true\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://notification.platform.dev.ai71services.ai/api/v1/notifications/email")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["x-api-key"] = '<x-api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"payload\": {\n \"html\": \"<string>\",\n \"sender\": \"<string>\",\n \"subject\": \"<string>\",\n \"to\": \"<string>\",\n \"template_fields\": {\n \"template_content\": [\n {}\n ],\n \"template_name\": \"<string>\"\n }\n },\n \"retry_enabled\": true\n}"
response = http.request(request)
puts response.read_body{
"message": "<string>",
"request_id": "<string>"
}{
"message": "<string>"
}{
"error": "<string>"
}{
"error": "<string>"
}{
"error": "<string>"
}Notification APIs
Send Email notification
Send a new Email notification
POST
/
api
/
v1
/
notifications
/
email
Send Email notification
curl --request POST \
--url https://notification.platform.dev.ai71services.ai/api/v1/notifications/email \
--header 'Content-Type: application/json' \
--header 'x-api-key: <x-api-key>' \
--data '
{
"payload": {
"html": "<string>",
"sender": "<string>",
"subject": "<string>",
"to": "<string>",
"template_fields": {
"template_content": [
{}
],
"template_name": "<string>"
}
},
"retry_enabled": true
}
'import requests
url = "https://notification.platform.dev.ai71services.ai/api/v1/notifications/email"
payload = {
"payload": {
"html": "<string>",
"sender": "<string>",
"subject": "<string>",
"to": "<string>",
"template_fields": {
"template_content": [{}],
"template_name": "<string>"
}
},
"retry_enabled": True
}
headers = {
"x-api-key": "<x-api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'x-api-key': '<x-api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
payload: {
html: '<string>',
sender: '<string>',
subject: '<string>',
to: '<string>',
template_fields: {template_content: [{}], template_name: '<string>'}
},
retry_enabled: true
})
};
fetch('https://notification.platform.dev.ai71services.ai/api/v1/notifications/email', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://notification.platform.dev.ai71services.ai/api/v1/notifications/email",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'payload' => [
'html' => '<string>',
'sender' => '<string>',
'subject' => '<string>',
'to' => '<string>',
'template_fields' => [
'template_content' => [
[
]
],
'template_name' => '<string>'
]
],
'retry_enabled' => true
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"x-api-key: <x-api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://notification.platform.dev.ai71services.ai/api/v1/notifications/email"
payload := strings.NewReader("{\n \"payload\": {\n \"html\": \"<string>\",\n \"sender\": \"<string>\",\n \"subject\": \"<string>\",\n \"to\": \"<string>\",\n \"template_fields\": {\n \"template_content\": [\n {}\n ],\n \"template_name\": \"<string>\"\n }\n },\n \"retry_enabled\": true\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("x-api-key", "<x-api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://notification.platform.dev.ai71services.ai/api/v1/notifications/email")
.header("x-api-key", "<x-api-key>")
.header("Content-Type", "application/json")
.body("{\n \"payload\": {\n \"html\": \"<string>\",\n \"sender\": \"<string>\",\n \"subject\": \"<string>\",\n \"to\": \"<string>\",\n \"template_fields\": {\n \"template_content\": [\n {}\n ],\n \"template_name\": \"<string>\"\n }\n },\n \"retry_enabled\": true\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://notification.platform.dev.ai71services.ai/api/v1/notifications/email")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["x-api-key"] = '<x-api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"payload\": {\n \"html\": \"<string>\",\n \"sender\": \"<string>\",\n \"subject\": \"<string>\",\n \"to\": \"<string>\",\n \"template_fields\": {\n \"template_content\": [\n {}\n ],\n \"template_name\": \"<string>\"\n }\n },\n \"retry_enabled\": true\n}"
response = http.request(request)
puts response.read_body{
"message": "<string>",
"request_id": "<string>"
}{
"message": "<string>"
}{
"error": "<string>"
}{
"error": "<string>"
}{
"error": "<string>"
}Headers
API key for authorization
Body
application/json
Notification request body
Available options:
OTP, PASSWORD_RESET, SECURITY_ALERT, TRANSACTION_ALERT, PAYMENT_CONFIRMATION, FRAUD_ALERT, TWO_FACTOR_AUTH_PROMPT, CRITICAL_SYSTEM_OUTAGE, DATA_BREACH_ALERT, LEGAL_NOTICE_URGENT, ACCOUNT_SUSPENSION, UNRECOGNIZED_DEVICE_LOGIN, MFA_FAILURE, API_SECURITY_ALERT, ACCOUNT_COMPROMISE_WARNING, DEPENDENCY_FAILURE, SUBSCRIPTION_OVERDRAFT_ALERT, LICENSE_VIOLATION_ALERT, LEGAL_COMPLIANCE_ALERT, APPLICATION_PERFORMANCE_WARNING, SLA_BREACH_NOTIFICATION, SERVER_MAINTENANCE_ALERT, HIGH_PRIORITY_SYSTEM_ALERT_FOR_ADMINS, SUBSCRIPTION_RENEWAL_REMINDER, BILLING_PAYMENT_DUE_REMINDER, EVENT_REMINDER, ACCOUNT_INACTIVITY_ALERT, ACCOUNT_UPDATE_CONFIRMATION, SESSION_TIMEOUT_WARNING, QUOTA_STORAGE_LIMIT_WARNING, SERVICE_PLAN_UPGRADE_SUGGESTION, LICENSE_EXPIRATION_ALERT, FRIEND_CONTACT_REQUEST, INVITATION_ACCEPTANCE, PENDING_APPROVAL_REQUEST, PRIVACY_POLICY_UPDATE, PRODUCT_SERVICE_UPDATE, DOCUMENT_UPLOAD_VERIFICATION_REMINDER, REVIEW_FEEDBACK_REQUEST, THIRD_PARTY_INTEGRATION_FAILURE, ACCOUNT_DOWNGRADE_WARNING, JOB_COMPLETION_CONFIRMATION, MODERATION_ALERT, WORKFLOW_TRIGGER_ALERT, TASK_ASSIGNMENT, ACCOUNT_CONFIRMATION_EMAIL, ACCOUNT_VERIFICATION_EMAIL, NEWS_UPDATE, MONTHLY_WEEKLY_SUMMARY, COMMUNITY_ANNOUNCEMENTS, PRODUCT_RECOMMENDATIONS, CONTENT_RECOMMENDATIONS, PERSONALIZED_OFFERS, SURVEY_FEEDBACK_REQUEST, SOCIAL_ENGAGEMENT_NOTIFICATIONS, USER_ONBOARDING_WELCOME, TUTORIALS_TIPS, ANNIVERSARY_BIRTHDAY_GREETINGS, HOLIDAY_GREETINGS, ACCOUNT_MILESTONE_REMINDER, SEASONAL_CONTENT_SUGGESTIONS, EVENT_REGISTRATION_CONFIRMATION, NEW_CONTENT_LAUNCH_ALERT, REWARDS_PROGRAM_UPDATE, RE_ENGAGEMENT_CAMPAIGNS, CART_ABANDONMENT_REMINDER, PRODUCT_BACK_IN_STOCK_ALERT, DISCOUNTS_FOR_INACTIVE_USERS, COMMUNITY_BASED_NEWS, FITNESS_GOAL_REMINDERS, JOB_SUGGESTIONS Show child attributes
Show child attributes

