Skip to main content
GET
cURL

Overview

Use this API to retrieve metadata and platform configuration for all OneSignal apps associated with your account. For each app this returns app names, App IDs, subscription counts, timestamps, and the same push platform configuration (Android/FCM, iOS/APNs, Web Push, Safari) returned by View an app — with the exception of the per-app conversion attribution windows and channels, which are only returned by View an app.
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.
This endpoint is disabled for accounts with more than 1000 apps. If your account or organization exceeds this limit, the request returns an HTTP 400 error instead of a truncated list. In that case, store the app_id and name for each of your apps on your own server and look them up individually with the View an app API. Also, if you need to delete apps, then you can provide the app_id and name to OneSignal Support and ask for these to be deleted.

How to use this API

To retrieve your apps, send a GET request to the /apps endpoint using your Organization API Key. This key can be found in your OneSignal dashboard under Organization > Keys & IDs.

Headers

Authorization
string
default:Key YOUR_ORGANIZATION_API_KEY
required

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

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.