View player
Retrieve a single player record (Subscription) data registered to a specific OneSignal app.
This is a Legacy API. Use View User or CSV Export API instead.
Path Parameters
Parameter | Type | Required | Description |
---|---|---|---|
player_id | string | Yes | The OneSignal ID of the device. |
Query Parameters
Parameter | Type | Required | Description |
---|---|---|---|
app_id | string | Yes | Your OneSignal App ID. |
Headers
Header | Value | Required | Description |
---|---|---|---|
Authorization | Basic YOUR_LEGACY_REST_API_KEY | Yes | Your OneSignal LegacyREST API Key. |
Example Request
Example Response
Response Fields
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. |
Errors
- 400 Bad Request – Missing or invalid parameters.
- 401 Unauthorized – Invalid or missing API key.
- 403 Forbidden – Access denied for this app or resource.
- 404 Not Found – The specified player_id does not exist.