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

idStringRequired An app id

Example Code - View an app

curl --include \
     --header "Content-Type: application/json" \
     --header "Authorization: Basic USER_AUTH_KEY" \
$ch = curl_init();
    curl_setopt($ch, CURLOPT_URL, "");
    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);

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: "",
  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: "",
  safari_icon_32_32: "[email protected]",
  safari_icon_64_64: "[email protected]",
  safari_icon_128_128: "",
  safari_icon_256_256: "[email protected]",
  site_name: "The URL to your website for Web Push",  
  basic_auth_key: "NGEwMGZmMjItY2NkNy0xMWUzLTk5ZDUtMDAwYzI5NDBlNjJj"