View user identity
Retrieve all aliases associated with a user using a known alias, such as an external_id
, onesignal_id
, or a custom alias. This API helps you map back to a user’s full identity from any one piece of identifying information.
Overview
Use this API when you want to retrieve the complete identity object for a user, which includes all aliases tied to that user. It is ideal for cases where you know one alias and want to discover others—especially helpful for user mapping, debugging, or linking systems.
This endpoint is similar to the View user API but only returns the identity
object—not subscriptions or properties.
If you only know a subscription_id, use View user identity (by subscription) instead.
For more context on user identity and aliasing:
How to use this API
To identify the user, use:
alias_label
– the type of alias you’re using to find the user (e.g.external_id
,onesignal_id
, or a custom alias)alias_id
– the actual value of that alias
Common usage patterns:
Using external_id
(recommended):
alias_label
:external_id
alias_id
: your user ID (e.g., user-123)
Using onesignal_id
:
alias_label
:onesignal_id
alias_id
: the OneSignal-assigned unique ID
Using a custom alias:
- Define your own alias label (e.g.
shopify_customer_id
) and its value
We strongly recommend setting and using the external_id
as your primary user identifier for portability and simplicity across your systems.
Headers
Your App API key with prefix Key
. See Keys & IDs.
Path Parameters
Your OneSignal App ID in UUID v4 format. See Keys & IDs.
The alias name or key to locate the user. Most commonly set as external_id
but can be the onesignal_id
or a custom alias.
The specific identifier for the given alias to identify the user.
Response
200
The response is of type object
.