Skip to main content
GET
cURL

Overview

Use this API to retrieve metadata and platform configuration for a single OneSignal app associated with your account. This includes app names, App ID, Subscription counts, timestamps, and push platform credentials (Android/FCM, iOS/APNs, Web Push, Safari), making it easy to programmatically manage or audit your applications.
This API does not return the app’s API keys. To manage API keys, use the Create API Key, Rotate API Key, and Delete API Key APIs.

How to use this API

To retrieve your app, send a GET request to the /apps/{app_id} endpoint using your App API Key. This key can be found in your OneSignal dashboard under Settings > Keys & IDs.
Pass ?view=config to return configuration-only data. This omits the players and messageable_players subscription counts and skips the count lookup, returning a faster response when you only need platform configuration.

Headers

Content-Type
string
default:application/json
required
Authorization
string
default:Key YOUR_APP_API_KEY
required

Your App API key with prefix Key. See Keys & IDs.

Path Parameters

app_id
string
required

Your OneSignal App ID in UUID v4 format. See Keys & IDs.

Query Parameters

view
enum<string>

Set to config to return configuration-only data. This omits players and messageable_players, skipping the subscription-count lookup for a faster response.

Available options:
config

Response

200

id
string

The OneSignal App ID in UUID v4 format.

name
string

An internal name you set to help organize and track Apps. Maximum 128 characters.

players
integer

The total number of Subscriptions in the app. Omitted when view=config is passed.

messageable_players
integer

The number of Subscriptions eligible to receive messages in the app. Omitted when view=config is passed.

created_at
string

The date and time the app was created.

updated_at
string

The date and time the app was last updated.

organization_id
string

The Organization ID in which the app was created.

additional_data_is_root_payload
boolean

When true, custom additional data is sent at the root of the push payload instead of nested under a custom key (iOS only).

gcm_key
string

Legacy. The deprecated Google Cloud Messaging (GCM/FCM legacy) server API key. Retained for backward compatibility; use fcm_v1_service_account_json instead.

fcm_v1_service_account_json
string

Your FCM Service Account JSON file for Android push notifications. See Android: Firebase Credentials.

fcm_sender_id
string

The FCM Sender ID associated with your Firebase project.

chrome_key
string

Legacy. The deprecated Google Chrome extension (GCM) API key. Retained for backward compatibility.

chrome_web_key
string

Web push VAPID public key for Chrome web push notifications.

chrome_web_origin
string

The HTTPS origin URL for your website. Required for web push notifications.

chrome_web_gcm_sender_id
string

The GCM Sender ID used for web push notifications.

chrome_web_default_notification_icon
string

The full HTTPS URL to your default notification icon. Should be a 256x256px PNG.

chrome_web_sub_domain
string

The OneSignal subdomain for web push if not using your own origin.

apns_env
string

The APNS environment: production or development. See iOS SDK Setup.

apns_certificates
string

The APNS p12 certificate for iOS push notifications.

apns_p8
string

The APNs Auth Key (.p8) token-based credential for iOS push notifications.

apns_team_id
string

The Apple Developer Team ID associated with the APNs Auth Key.

apns_key_id
string

The Key ID of the APNs Auth Key (.p8).

apns_bundle_id
string

The app bundle ID associated with the APNs Auth Key.

safari_apns_certificate
string

The Safari APNs certificate, or "OneSignal Provided Certificate" when using a OneSignal-managed Safari certificate.

safari_site_origin
string

The HTTPS origin URL configured for Safari web push.

safari_push_id
string

The Safari Web Push ID (website push ID / certificate bundle ID).

safari_icon_16_16
string

URL to the 16x16px Safari notification icon.

safari_icon_32_32
string

URL to the 32x32px Safari notification icon.

safari_icon_64_64
string

URL to the 64x64px Safari notification icon.

safari_icon_128_128
string

URL to the 128x128px Safari notification icon.

safari_icon_256_256
string

URL to the 256x256px Safari notification icon.

site_name
string

The name of the website configured for web push.

conversion_attribution_window_push
integer

Conversion (outcome) attribution window for push, in minutes.

conversion_attribution_window_iam
integer

Conversion (outcome) attribution window for in-app messages, in minutes.

conversion_attribution_window_email
integer

Conversion (outcome) attribution window for email, in minutes.

conversion_attribution_window_sms
integer

Conversion (outcome) attribution window for SMS, in minutes.

channels
object

Messaging channels available for this app, keyed by channel name. Each entry indicates whether the channel is enabled and which platforms are configured for it.