Skip to main content

create_notification

Function create_notification 

Source
pub async fn create_notification(
    configuration: &Configuration,
    notification: Notification,
) -> Result<CreateNotificationSuccessResponse, Error<CreateNotificationError>>
Expand description

Sends notifications to your users. Target by External ID (push example): set include_aliases to { \"external_id\": [\"your-user-id\"] } and set target_channel to push (or email / sms for those channels). Alias object keys must match API labels exactly (for example external_id, not camelCase). Do not confuse the notification-level external_id field with External ID targeting: top-level external_id / idempotency_key are for idempotent notification requests only, not for selecting recipients. Targeting compatibility: include_aliases must not be combined with other targeting modes (segments, filters, subscription IDs, legacy player IDs, etc.). Clients should send only one targeting strategy per request.