- Get Started
- Product
- Resources
- Tools & SDKs
- Framework
- Reference
Menu
- Get Started
- Product
- Resources
- Tools & SDKs
- Framework
- Reference
NotificationDTO
A notification's data.
Properties#
id
stringThe ID of the notification.
to
stringThe recipient of the notification. It can be email, phone number, or username, depending on the channel.
channel
stringThe channel through which the notification is sent, such as 'email' or 'sms'
template
stringThe template name in the provider's system.
data
null | Record<string, unknown>The data that gets passed over to the provider for rendering the notification.
provider_id
stringThe ID of the notification provider.
provider
NotificationProviderDTOInformation about the notification provider
provider
NotificationProviderDTOcreated_at
DateThe date and time the notification was created.
status
"pending" | "success" | "failure"The status of the notification
from
null | stringOptionalThe sender of the notification. It can be email, phone number, or username, depending on the channel.
Optional attachments for the notification.
trigger_type
null | stringOptionalThe event name, the workflow, or anything else that can help to identify what triggered the notification.
resource_id
null | stringOptionalThe ID of the resource this notification is for, if applicable. Useful for displaying relevant information in the UI
resource_type
null | stringOptionalThe type of the resource this notification is for, if applicable, eg. "order"
receiver_id
null | stringOptionalThe ID of the customer this notification is for, if applicable.
original_notification_id
null | stringOptionalThe original notification, in case this is a retried notification.
external_id
null | stringOptionalThe id of the notification in the external system, if applicable
Was this page helpful?