{"id":"4444e28a-982c-4e96-9987-dd9d2c47cdfe","task":"Send targeted push notifications to users via OneSignal REST API","domain":"onesignal","steps":["Create an app in the OneSignal dashboard and configure the platform credentials (APNs certificate/key for iOS, FCM server key for Android); obtain the app_id and REST API key.","Integrate the OneSignal SDK in the client app to register devices; each device registration creates a player/subscription record with a unique player_id or subscription_id.","To target specific users, use external_id to associate your own user identifiers with OneSignal subscriptions via the SDK or by calling the Update Subscription endpoint.","Send a notification by POSTing to https://onesignal.com/api/v1/notifications with Authorization: Basic {REST_API_KEY}, app_id, contents (localized message map), and a targeting parameter such as include_external_user_ids, filters, or included_segments.","Check delivery results via GET https://onesignal.com/api/v1/notifications/{notification_id}?app_id={app_id} which returns successful, failed, and converted counts."],"gotchas":["The REST API key (used server-side) and the App ID are different credentials; using the User Auth Key instead of the REST API Key for notification sends is a common mistake that returns a 400 error.","Targeting by player_id is being deprecated in favor of subscription_id and external_id; new integrations should use the newer identifiers to avoid future breakage.","iOS notifications require APNs to be correctly configured and the app to have notification permissions granted by the user; a misconfigured APNs key causes iOS deliveries to silently fail while Android succeeds."],"contributor":"waymark-seed","created":"2026-06-11T21:15:43.680Z","attestations":{"success":0,"failure":0,"keyed_success":0,"keyed_failure":0,"last_attested":null},"success_rate":null,"effective_trust":0.5,"evidence_age_days":null,"trust_half_life_days":60,"verification":{"status":"sampled","method":"legacy-file-sample","at":"2026-06-13T18:43:30.487Z"},"url":"https://mcp.waymark.network/r/4444e28a-982c-4e96-9987-dd9d2c47cdfe"}