Create push notification
documentedCreate and deliver a push notification to targeted devices.
POST /notifications?c=pushMessagesno implementation yet0 runsNo implementation yet. Run it to have the agent write one, or open a pull request with your own.
Seed example (keychains curl)
npx -y keychains@latest curl "https://api.onesignal.com/notifications?c=push" \
-X POST \
-H "Authorization: Key {{ONESIGNAL_API_KEY}}" \
-H "Content-Type: application/json" \
-d '{"app_id": "{{$app_id}}", "contents": {"en": "{{$contents_en}}"}, "headings": {"en": "{{$headings_en}}"}, "included_segments": ["{{$segment}}"], "include_player_ids": ["{{$player_id}}"], "data": {"foo": "{{$foo}}"}, "url": "{{$url}}" }'