send_push_notification
Broadcast an immediate push notification to all or a tagged segment of an app's subscribers across Web, Android, and iOS. Use for real-time delivery; not for scheduled sends.
Instructions
Broadcast an immediate push notification across Web Push (VAPID), Android (FCM), and iOS (APNs) to active subscribers of a specific app_id. Use this tool for instant real-time delivery; do not use it for future or recurring broadcasts (use schedule_push_notification instead) or in-page popups (use configure_inapp_banner instead). Prerequisite: call list_apps first to obtain app_id. Requires PUSHNOTIF_API_KEY, deducts 1 credit (Rp 0.20) per successfully delivered device (0 credits charged for 404/410 dead tokens, which are auto-pruned), and is irreversible once dispatched. Set segment='all' for all active subscribers or pass a specific tag name to target a subset. Returns JSON { ok, campaign_id, total_targeted, total_delivered, total_gone_pruned, credits_deducted, credits_remaining }.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | No | Optional HTTPS destination URL opened when the user taps the notification (defaults to the app's site_url) | |
| body | Yes | Notification message body text (1 to 240 characters) | |
| title | Yes | Notification headline shown on lock screen (1 to 100 characters) | |
| app_id | Yes | Target application ID in format app_xxxx (obtain from list_apps) | |
| segment | No | Subscriber filter: 'all' (default, sends to every active subscriber of app_id) or a specific subscriber tag string (e.g., 'vip', 'jakarta') |