Create a new user or modify the subscriptions associated with an existing User.
If you are still using pre-User Model APIs or SDKs (Mobile SDKs version 4 or lower, Web SDKs version 15 or lower), we recommend thorough testing of this endpoint before switching to the new User Model. Discrepancies may occur where the External ID set through the SDK and the External ID set through the API do not generate matching OneSignal IDs. To ensure a smooth transition, consider the following options:
This endpoint enables you to create and manage users outside of frontendSDK-based sessions. It’s primarily used to:
If you’re using the frontend SDKs, user creation is typically handled automatically via methods like login
, addEmail
, and addSms
. See Users and Subscriptions for conceptual guidance.
To successfully create a user via the API:
identity
and Subscription via the subscriptions
fields.properties
) and one or more messaging subscriptions
.Aliases uniquely identify a user and should include an external_id
(the recommended identifier). Up to 20 custom aliases are supported. They allow you to reference users across platforms or external systems.
User properties store information such as tags, location, activity, and device data. These attributes help you personalize campaigns and optimize engagement strategies.
A user can have up to 20 subscriptions (across email, SMS, push, etc.). Subscriptions connect users to channels for message delivery and are transferable across users. See Subscriptions for more.
Your OneSignal App ID in UUID v4 format. See Keys & IDs.
200
The response is of type object
.
Create a new user or modify the subscriptions associated with an existing User.
If you are still using pre-User Model APIs or SDKs (Mobile SDKs version 4 or lower, Web SDKs version 15 or lower), we recommend thorough testing of this endpoint before switching to the new User Model. Discrepancies may occur where the External ID set through the SDK and the External ID set through the API do not generate matching OneSignal IDs. To ensure a smooth transition, consider the following options:
This endpoint enables you to create and manage users outside of frontendSDK-based sessions. It’s primarily used to:
If you’re using the frontend SDKs, user creation is typically handled automatically via methods like login
, addEmail
, and addSms
. See Users and Subscriptions for conceptual guidance.
To successfully create a user via the API:
identity
and Subscription via the subscriptions
fields.properties
) and one or more messaging subscriptions
.Aliases uniquely identify a user and should include an external_id
(the recommended identifier). Up to 20 custom aliases are supported. They allow you to reference users across platforms or external systems.
User properties store information such as tags, location, activity, and device data. These attributes help you personalize campaigns and optimize engagement strategies.
A user can have up to 20 subscriptions (across email, SMS, push, etc.). Subscriptions connect users to channels for message delivery and are transferable across users. See Subscriptions for more.
Your OneSignal App ID in UUID v4 format. See Keys & IDs.
200
The response is of type object
.