curl --request POST \
--url https://services.leadconnectorhq.com/calendars/{calendarId}/notifications \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'Version: <version>' \
--data '
[
{
"receiverType": "contact",
"channel": "email",
"notificationType": "booked",
"isActive": true,
"templateId": "<string>",
"body": "<string>",
"subject": "<string>",
"afterTime": [
{
"timeOffset": 1,
"unit": "hours"
}
],
"beforeTime": [
{
"timeOffset": 1,
"unit": "hours"
}
],
"additionalEmailIds": [
"example1@email.com",
"example2@email.com"
],
"additionalPhoneNumbers": [
"+919876744444",
"+919876744445"
],
"selectedUsers": [
"userId1",
"userId2",
"sub_account_admin"
],
"fromAddress": "<string>",
"fromName": "<string>",
"fromNumber": "<string>"
}
]
'[
{
"_id": "<string>",
"receiverType": "contact",
"additionalEmailIds": [
"example1@email.com",
"example2@email.com"
],
"additionalPhoneNumbers": [
"+919876744444",
"+919876744445"
],
"channel": "email",
"notificationType": "confirmation",
"isActive": true,
"additionalWhatsappNumbers": [
"+919876744444",
"+919876744445"
],
"templateId": "0as9d8as0d",
"body": "This is a test notification",
"subject": "Test Notification",
"afterTime": [
{
"timeOffset": 1,
"unit": "hours"
}
],
"beforeTime": [
{
"timeOffset": 1,
"unit": "hours"
}
],
"selectedUsers": [
"user1",
"user2"
],
"deleted": false
}
]Create Calendar notifications, either one or multiple. All notification settings must be for single calendar only
curl --request POST \
--url https://services.leadconnectorhq.com/calendars/{calendarId}/notifications \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'Version: <version>' \
--data '
[
{
"receiverType": "contact",
"channel": "email",
"notificationType": "booked",
"isActive": true,
"templateId": "<string>",
"body": "<string>",
"subject": "<string>",
"afterTime": [
{
"timeOffset": 1,
"unit": "hours"
}
],
"beforeTime": [
{
"timeOffset": 1,
"unit": "hours"
}
],
"additionalEmailIds": [
"example1@email.com",
"example2@email.com"
],
"additionalPhoneNumbers": [
"+919876744444",
"+919876744445"
],
"selectedUsers": [
"userId1",
"userId2",
"sub_account_admin"
],
"fromAddress": "<string>",
"fromName": "<string>",
"fromNumber": "<string>"
}
]
'[
{
"_id": "<string>",
"receiverType": "contact",
"additionalEmailIds": [
"example1@email.com",
"example2@email.com"
],
"additionalPhoneNumbers": [
"+919876744444",
"+919876744445"
],
"channel": "email",
"notificationType": "confirmation",
"isActive": true,
"additionalWhatsappNumbers": [
"+919876744444",
"+919876744445"
],
"templateId": "0as9d8as0d",
"body": "This is a test notification",
"subject": "Test Notification",
"afterTime": [
{
"timeOffset": 1,
"unit": "hours"
}
],
"beforeTime": [
{
"timeOffset": 1,
"unit": "hours"
}
],
"selectedUsers": [
"user1",
"user2"
],
"deleted": false
}
]Use the Access Token generated with user type as Sub-Account (OR) Private Integration Token of Sub-Account.
API Version
2021-04-15 notification recipient type
contact, guest, assignedUser, emails, phoneNumbers, business Notification channel
email, inApp, sms, whatsapp Notification type
booked, confirmation, cancellation, reminder, followup, reschedule Is the notification active
Template ID for email notification. Not necessary for in-App notification
Body for email notification. Not necessary for in-App notification
Subject for email notification. Not necessary for in-App notification
Specifies the time after which the follow-up notification should be sent. This is not required for other notification types.
Show child attributes
[{ "timeOffset": 1, "unit": "hours" }]Specifies the time before which the reminder notification should be sent. This is not required for other notification types.
Show child attributes
[{ "timeOffset": 1, "unit": "hours" }]Additional email addresses to receive notifications.
["example1@email.com", "example2@email.com"]Additional phone numbers to receive notifications.
["+919876744444", "+919876744445"]Selected users for in-App and business email notifications. Supports user IDs and special keyword "sub_account_admin"
["userId1", "userId2", "sub_account_admin"]from address for email notification
from name for email/sms notification
from number for sms notification
Successful response
Notification ID
contact, guest, assignedUser, emails, phoneNumbers, business "contact"
["example1@email.com", "example2@email.com"]["+919876744444", "+919876744445"]email, inApp, sms, whatsapp "email"
booked, confirmation, cancellation, reminder, followup, reschedule "confirmation"
true
["+919876744444", "+919876744445"]"0as9d8as0d"
"This is a test notification"
"Test Notification"
Show child attributes
[{ "timeOffset": 1, "unit": "hours" }]Show child attributes
[{ "timeOffset": 1, "unit": "hours" }]["user1", "user2"]false
Was this page helpful?