Parameter | Type | Required | Description |
---|---|---|---|
player_id | string | Yes | The OneSignal ID of the device. |
Parameter | Type | Required | Description |
---|---|---|---|
app_id | string | Yes | Your OneSignal App ID. |
Header | Value | Required | Description |
---|---|---|---|
Authorization | Basic YOUR_LEGACY_REST_API_KEY | Yes | Your OneSignal LegacyREST API Key. |
Field | Type | Description |
---|---|---|
id | string | OneSignal player ID. |
identifier | string | Push token, email, or phone number. |
session_count | integer | Number of sessions associated with this device. |
language | string | Language set on the device (e.g., “en”). |
timezone | integer | Time zone offset in seconds. |
game_version | string | Version of your app the device is running. |
device_os | string | Operating system version. |
device_type | integer | Numeric code for platform (0 = iOS, 1 = Android, etc.). |
tags | object | Custom tags set on the device. |
last_active | timestamp | Last time the user was active (Unix timestamp). |
created_at | timestamp | When the device record was created. |
invalid_identifier | boolean | Whether the push token or identifier is invalid. |
external_user_id | string | Your internal user ID mapped to this device. |