Create subscription by alias
documentedAttach a new subscription to an existing user identified by an alias.
POST /apps/{app_id}/users/by/{alias_label}/{alias_id}/subscriptionsUsersno implementation yet0 runsInput
app_id*
OneSignal App ID
Your OneSignal App ID (UUID)
alias_label*
Alias label
e.g. external_id
alias_id*
Alias id
Alias value
type*
Subscription type
Email | Push | SMS
token*
Subscription token
Token value
enabled
Enabled
true|false
notification_types
Notification types
bitmask integer
session_time
Session time (seconds)
Seconds
session_count
Session count
Count
app_version
App version
Version
device_model
Device model
Device model
device_os
Device OS
OS version
test_type
Test type
0|1|2
sdk
SDK
SDK name
rooted
Rooted
true|false
web_auth
Web auth token
WebAuth token
web_p256
Web push p256
P256 value
Calls OneSignal as you (your API key is your account); keychains.dev holds the credentials.