REST API v4: GET subprofile mobile push subscriptions

This method retrieves all mobile push subscriptions associated with a specific subprofile.

A mobile push subscription represents a registered device that can receive mobile push notifications.

To retrieve the mobile push subscriptions of a subprofile, send an HTTP GET request to the following URL:

https://api.copernica.com/v4/subprofile/$id/push/mobilesubscriptions

Replace $id with the ID of the subprofile.

Returned fields

This method returns a collection of mobile push subscriptions.

Name Description
ID Unique identifier of the mobile push subscription.
created Date and time when the subscription was created.
updated Date and time when the subscription was last updated.
expired Date and time when the subscription expired. Empty if the subscription is still active.
profile ID of the associated profile.
subprofile ID of the associated subprofile.
project ID of the associated Google Firebase project.
model Device model, if known.
os Device operating system, for example ios or android.

JSON example

The JSON response looks like the following:

{
    "ID": "1",
    "created": "2026-06-15 12:18:26",
    "updated": "2026-06-15 12:18:26",
    "expired": "",
    "profile": "1234",
    "subprofile": "5678",
    "project": 1,
    "model": "iPhone1",
    "os": "ios"
}

PHP example

The following script demonstrates how to use this API method.

// required scripts
require_once("CopernicaRestAPI.php");

// change this to your access token
$api = new CopernicaRestAPI("your-access-token", 4);

// replace {$id} with the ID of the subprofile
$api->get("subprofile/{id}/push/mobilesubscriptions");

This example requires the REST API class.