Create notification
POST/calendars/:calendarId/notifications
Create Calendar notifications, either one or multiple. All notification settings must be for single calendar only
Request
API Version
v3Calendar ID
- application/json
- Body
- Example (auto)
Body arrayrequired
- Array [
- ]
notification recipient type
contactguestassignedUseremailsphoneNumbersbusinessNotification channel
emailinAppsmswhatsappNotification type
bookedconfirmationcancellationreminderfollowuprescheduleIs the notification active
trueTemplate 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.
Specifies the time before which the reminder notification should be sent. This is not required for other notification types.
Additional email addresses to receive notifications.
Additional phone numbers to receive notifications.
Selected users for in-App and business email notifications. Supports user IDs and special keyword "sub_account_admin"
from address for email notification
from name for email/sms notification
from number for sms notification
[
{
"receiverType": "user",
"channel": "email",
"notificationType": "confirmation",
"isActive": true,
"templateId": "MwPcayliwcdoUFzvbTok",
"body": "Your appointment has been confirmed.",
"subject": "Appointment Confirmation",
"afterTime": [
{
"timeOffset": 1,
"unit": "hours"
}
],
"beforeTime": [
{
"timeOffset": 1,
"unit": "hours"
}
],
"additionalEmailIds": [
],
"additionalPhoneNumbers": [
"+919876744444",
"+919876744445"
],
"selectedUsers": [
"userId1",
"userId2",
"sub_account_admin"
],
"fromName": "Acme Scheduling",
"fromNumber": "+15551234567"
}
]
Successful response
- application/json
- Schema
- Example (auto)
Schema
- Array [
- ]
Notification ID
Notification recipient type
contactguestassignedUseremailsphoneNumbersbusinessAdditional email addresses to receive notifications
Additional phone numbers to receive notifications
Notification channel
emailinAppsmswhatsappNotification type
bookedconfirmationcancellationreminderfollowuprescheduleWhether the notification is active
Additional WhatsApp numbers to receive notifications
Template ID for the notification
Notification body content
Notification subject line
Time schedules after which follow-up notifications are sent
Time schedules before which reminder notifications are sent
Selected user IDs for the notification
Whether the notification is deleted
[
{
"_id": "629a5d0a8c3f2b001f3d4e5a",
"receiverType": "contact",
"additionalEmailIds": [
],
"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
}
]