Create a notification
Creates a notification for a recipient. Requires senderId, a recipient (recipientClientId or recipientInternalUserId), and at least one delivery target. Notifications can only be created from a custom app. When notificationSettingId is provided and the recipient’s notification settings disable every requested delivery target, no notification is created and the request returns 202.
Authorizations
Body
Notification to create
DeliveryTargets describes how the notification should be delivered. Required.
SenderID is the member triggering the notification. Required.
"550e8400-e29b-41d4-a716-446655440000"
NotificationSettingId optionally selects one of the app's declared notification settings (see the app's notificationConfig). When provided, delivery on each surface is resolved against the recipient's per-setting preference, falling back to the app's configured default. Optional; when omitted, all requested delivery targets are delivered as-is.
"550e8400-e29b-41d4-a716-446655440006"
RecipientClientID is the client to notify. Pair with recipientCompanyId.
"550e8400-e29b-41d4-a716-446655440001"
RecipientCompanyID is the company of the client being notified.
"550e8400-e29b-41d4-a716-446655440003"
RecipientID is the recipient to notify. Deprecated: prefer recipientClientId+ recipientCompanyId or recipientInternalUserId, which take precedence when provided.
"550e8400-e29b-41d4-a716-446655440001"
RecipientInternalUserID is the internal user to notify.
"550e8400-e29b-41d4-a716-446655440004"
RecipientType is the kind of member being notified.
"client"
SenderCompanyID is the sender's company, required when notifying an internal user.
"550e8400-e29b-41d4-a716-446655440003"
Response
OK
AppID is the ID of the custom app that created the notification, when applicable.
"550e8400-e29b-41d4-a716-446655440005"
CompanyID is the company the notification is associated with, when applicable.
"550e8400-e29b-41d4-a716-446655440003"
DefaultListIndexPkey for the notification model is used to mark whether a notification is an inbox notification
DeliveryTargets describes how the notification is delivered (in-product and/or email).
Event is the domain event that triggered the notification.
files.created, file.created, contract.signed, contract.requested, formResponse.requested, formResponse.completed, form.created, invoice.paid, invoice.requested, invoice.processing, invoice.paymentFailed, refund.requested, refund.processed, refund.failed, autoChargePayment.requested, customApp.action, internalChat.mentioned, channel.mentioned "file.created"
todo: remove fields once FE doesn't use them
Deprecated: use DeliveryTargets.InProduct.IsRead
RecipientClientID is the recipient client ID, set when the recipient is a client.
"550e8400-e29b-41d4-a716-446655440001"
RecipientCompanyID is the recipient company ID, set when the recipient is a client (their company).
"550e8400-e29b-41d4-a716-446655440003"
RecipientID is the ID of the member the notification is delivered to.
"550e8400-e29b-41d4-a716-446655440001"
RecipientInternalUserID is the recipient internal user ID, set when the recipient is an internal user.
"550e8400-e29b-41d4-a716-446655440004"
USER, CLIENT_USER, CLIENT_COMPANY ResourceID is the ID of the resource the notification refers to (e.g. the uploaded file or invoice).
"550e8400-e29b-41d4-a716-446655440002"
SenderCompanyID is the sender's company ID, set when the recipient is an internal user.
"550e8400-e29b-41d4-a716-446655440003"
SenderID is the ID of the member who triggered the notification.
"550e8400-e29b-41d4-a716-446655440000"
SenderType is the kind of member that sent the notification.
"internalUser"