Documentation

Pub/Sub Topics API


Returns a list of your app's topics and subscribers count.

Note: Please refer to the Device Info API to retrieve a specific device's list of subscribed topics.

API Endpoint


GET https://api.pushy.me/topics?api_key=SECRET_API_KEY

Make sure to replace SECRET_API_KEY with your app's Secret API Key listed in the Dashboard.

Note: This is a backend API endpoint. Never expose your application's Secret API Key in your client code.

Sample Response

Successful Response Example

{
    "topics": [
        {
            "name": "news",
            "subscribers": 2
        },
        {
            "name": "media",
            "subscribers": 1
        }
    ]
}

Failure Response Example

{"error":"We could not find an app with the specified API key."}