Skip to main content

⏰ Scheduling

note

Status: This feature is under active development.

Scheduling a notification works just like sending a regular notification through NotificationAPI, with the addition of a schedule field that specifies when you want the notification sent. Our system takes care of the rest. Our dashboard will keep track of scheduled notifications in the logs section, marking them as scheduled and showing the time they are scheduled to be sent. You can also update or delete a scheduled notification by using the trackingId.

Example Use Cases

  • Payment due alerts: Financial institutions and billing departments use scheduled notifications to remind customers of upcoming due dates for loan payments, credit card bills, or utility bills.

  • Appointment reminders: Healthcare providers, beauty salons, automotive service centers, and other appointment-based businesses utilize scheduled notifications to remind clients of their upcoming appointments.

  • Task deadlines: Project management tools often feature the ability to send scheduled notifications about task deadlines to team members.

How does it work?

Simply specify the schedule parameter when using the send function:

notificationapi.send({
notificationId: 'order_tracking',
user: {
id: 'spongebob.squarepants',
email: 'spongebob@squarepants.com',
number: '+15005550006'
},
mergeTags: {
item: 'Krabby Patty Burger',
address: '124 Conch Street',
orderId: '1234567890'
},
schedule: '2024-02-20T14:38:03.509Z'
});

You have the option to update or delete the schedule before it is sent.

Frequently Asked Questions (FAQ)

Can I update a notification request after scheduling it?

Yes, you can update the request after sending it by using the trackingId before it is sent. If you do not have the trackingId, you can still find it in the log dashboard.

Can I cancel a scheduled notification?

Yes, with the trackingId, you can cancel a scheduled notification before it is sent. If the notification has already been sent, you can retract in-app notifications using the retract function.

How is error checking and logical operations handled with scheduled notifications?

Every notification request is evaluated for correct notificationId, being below the usage quota, valid user preferences, and more. For scheduled notifications, these checks are done twice:

  1. Once at the time of receiving the initial request, similar to regular notifications. The results of this step can be found in the response body of your request and in our log dashboard.
  2. Once again at the scheduled time. The results of this step can also be found in our log dashboard.

The only exceptions are throttling and deduplication checks that only happen at the scheduled time.

So for example, an invalid notificationId error might be generated initially if the notificationId is incorrect, or later if the notification is deleted.

How are logics managed for scheduled notifications?

We evaluate logical, such as Deduplication, and throttling at the scheduled time, not when the request is initially made.

How can I review scheduled notifications before they are sent?

Visit the log dashboard to preview upcoming notifications and any recent updates.

How far in advance can I schedule a notification?

You can schedule a notification up to 1 year in advance.

How early in the future can I schedule a notification?

There are no limitations. If the schedule is set for a time in the past, the notification is sent immediately.