Integrate your CRM, database, or DMP with OneSignal to trigger personalized, real-time notifications and sync user messaging data at scale.
Connecting OneSignal to your internal systems like a database, CRM, or data management platform (DMP) unlocks powerful capabilities for real-time, personalized, and scalable messaging. Whether you’re using Salesforce, a custom user system, or another platform, integration enables you to:
This guide walks through common use cases, integration methods, and setup best practices.
Personalized messaging at scale
Use data from your internal systems to personalize messages:
custom_data
in the Create message API to personalize without storing data permanently.See more in Message personalization.
Trigger time-sensitive messages
Send messages instantly when key events occur in your system, such as:
Trigger using the Create message API with aliases or filters to reach the right users at the right time.
Unified user identity with External ID and aliases
OneSignal supports:
external_id
as a stable cross-platform user IDcrm_id
, facebook_id
)Set these using the SDK’s login
method or APIs like Create user and Create subscription (by alias).
For more on this model, review Users and Subscriptions.
Use external_id
as your primary user identifier across systems. You can attach other aliases or identifiers for flexibility. If no global user ID exists, OneSignal/Subscription IDs can be used but require extra handling, as they are anonymous until linked.
There are two primary ways to sync user data into OneSignal
API-based sync
Use:
Key features:
CSV import
To retrieve data from OneSignal:
Decide based on the data’s purpose:
Store data used directly for messaging
Store data used directly for messaging:
external_id
and aliasesFor richer personalization, avoid storing full profiles—inject dynamic fields at send time using custom_data
.
What to keep in your own systems
Keep data unrelated to messaging (e.g., full user profiles, transaction logs) in your own systems for performance, privacy, and control. Archive message history from OneSignal for long-term analytics or compliance.
You can trigger messages using two approaches—choose one or both based on your use case.
Use the Create message API for immediate, transactional messaging.
Target users via:
external_id
crm_id
)Best for:
You can also schedule messages using the send_after
parameter.
Use the Create message API for immediate, transactional messaging.
Target users via:
external_id
crm_id
)Best for:
You can also schedule messages using the send_after
parameter.
Use Tags to build dynamic user segments.
Send messages by:
Best for: