View the details of a single OneSignal app

🚧

Requires Authentication Key

Requires your OneSignal App's REST API Key, available in Keys & IDs.

Path Parameters

ParameterTypeDescription
idStringRequired An app id

Example Code - View an app

curl --include \
     --header "Content-Type: application/json" \
     --header "Authorization: Basic USER_AUTH_KEY" \
 https://onesignal.com/api/v1/apps/YOUR_APP_ID
$ch = curl_init();
    curl_setopt($ch, CURLOPT_URL, "https://onesignal.com/api/v1/apps/YOUR_APP_ID");
    curl_setopt($ch, CURLOPT_HTTPHEADER, array('Content-Type: application/json',
                           'Authorization: Basic YOUR_USER_AUTH_KEY'));
    curl_setopt($ch, CURLOPT_RETURNTRANSFER, TRUE);
    curl_setopt($ch, CURLOPT_HEADER, FALSE);
    curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, FALSE);

    $response = curl_exec($ch);
        $response = json_decode($response, true);
    curl_close($ch);

Result Format - View an app

{
  id: "92911750-242d-4260-9e00-9d9034f139ce",
  name: "Your app 1",
  players: 150,
  messageable_players: 143,
  updated_at: "2014-04-01T04:20:02.003Z",
  created_at: "2014-04-01T04:20:02.003Z",
  gcm_key: "a gcm push key",
  chrome_key: "A Chrome Web Push GCM key",
  chrome_web_origin: "Chrome Web Push Site URL",
  chrome_web_gcm_sender_id: "Chrome Web Push GCM Sender ID",
  chrome_web_default_notification_icon: "http://yoursite.com/chrome_notification_icon",
  chrome_web_sub_domain:"your_site_name",
  apns_env: "production",
  apns_certificates: "Your apns certificate",
  safari_apns_certificate: "Your Safari APNS certificate",
  safari_site_origin: "The homename for your website for Safari Push, including http or https",
  safari_push_id: "The certificate bundle ID for Safari Web Push",
  safari_icon_16_16: "http://onesignal.com/safari_packages/92911750-242d-4260-9e00-9d9034f139ce/16x16.png",
  safari_icon_32_32: "http://onesignal.com/safari_packages/92911750-242d-4260-9e00-9d9034f139ce/[email protected]",
  safari_icon_64_64: "http://onesignal.com/safari_packages/92911750-242d-4260-9e00-9d9034f139ce/[email protected]",
  safari_icon_128_128: "http://onesignal.com/safari_packages/92911750-242d-4260-9e00-9d9034f139ce/128x128.png",
  safari_icon_256_256: "http://onesignal.com/safari_packages/92911750-242d-4260-9e00-9d9034f139ce/[email protected]",
  site_name: "The URL to your website for Web Push",  
  basic_auth_key: "NGEwMGZmMjItY2NkNy0xMWUzLTk5ZDUtMDAwYzI5NDBlNjJj"
}
Language
Authentication
Basic
base64
: