Skip to main content
Version: 26.01

/o/push/app-config

Endpoint​

/o/push/app-config

Ⓔ Enterprise Only

Overview​

Returns which push platforms have credentials configured for an app, and the app's push test configuration. No credential details are returned.

Authentication​

Pass api_key or auth_token as a query parameter, or send countly-token as a header. See Authentication.

Permissions​

Requires Read permission for Push Notifications.

Request Parameters​

ParameterTypeRequiredDescription
api_keyStringYes*API key authentication
auth_tokenStringYes*Session token authentication
app_idObjectIDYesApp ID

* Provide either api_key or auth_token.

Examples​

Read the push configuration of an app​

https://your-server.com/o/push/app-config
?api_key=YOUR_API_KEY
&app_id=6991c75b024cb89cdc04efd2

Response​

Success Response​

{
"a": {"_id": "67cab1234d1e2a001f3b4501"},
"i": {"_id": "67cab1234d1e2a001f3b4502"},
"test": {
"uids": "user_1,user_2",
"cohorts": ["67cab1234d1e2a001f3b4503"]
}
}

Response Fields​

FieldTypeDescription
aObjectAndroid credentials, present only when configured. Contains the credential _id.
iObjectiOS credentials, present only when configured. Contains the credential _id.
hObjectHuawei credentials, present only when configured. Contains the credential _id.
wObjectWeb credentials, present only when configured. Contains the credential _id.
testObjectTest configuration of the app with uids and cohorts. Present only when set.

Behavior​

  1. Reads the push settings of the app.
  2. Lists a platform only if its credential still exists.
  3. Returns {} when no platform is configured and no test configuration is set.

Impact on Other Data​

This endpoint is read-only and does not modify data.

Implementation details

Database Collections

CollectionPurposeKey Fields
countly.credsChecks that the credential of each platform exists_id