Programmatically create a new OneSignal app via the REST API. This guide explains required fields, supported platform configurations (Web, Android, iOS), and how to properly authenticate using your Organization API key.
organization_id
in the request body.
site_name
chrome_web_origin
safari_site_origin
chrome_web_default_notification_icon
: URL of a 256x256px
PNG for Chrome.safari_icon_256_256
: URL of a 256x256px
PNG for Safari.safari_apns_p12
: Base64 encoded p12 certificate for Safari Push Notifications.safari_apns_p12_password
: Password for the safari_apns_p12
file if set.fcm_v1_service_account_json
apns_key_id
apns_team_id
apns_bundle_id
apns_p8
apns_p12
apns_p12_password
additional_data_as_root_payload
: If set to true
, the data
paramater in your push notification payload will be added to the root payload of the notification. Helpful for customizations that require access to the data outside of our OSNotification payload additionalData
property.200
The response is of type object
.