Documentation IndexFetch the complete documentation index at: /llms.txtUse this file to discover all available pages before exploring further.
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Contact support
POST https://onesignal.com/api/v1/players
https://onesignal.com/api/v1/players
Content-Type
application/json
Authorization
Basic YOUR_REST_API_KEY
app_id
device_type
identifier
language
timezone
game_version
device_model
device_os
ad_id
sdk
session_count
tags
external_user_id
notification_types
POST /api/v1/players HTTP/1.1 Host: onesignal.com Authorization: Basic YOUR_REST_API_KEY Content-Type: application/json { "app_id": "your_app_id", "device_type": 1, "identifier": "abcdef123456", "language": "en", "timezone": -28800, "game_version": "1.0", "device_model": "Pixel 4", "device_os": "12", "ad_id": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", "sdk": "050401", "session_count": 5, "tags": { "user_type": "free", "level": "10" }, "external_user_id": "user123", "notification_types": 1 }
{ "id": "Subscription_id_string" }
Was this page helpful?