FCM Token API
The FCM Token API lets you retrieve the Firebase Cloud Messaging tokens registered for your app. Each token represents a specific device installation. You can use this API to build your own notification infrastructure, sync your user list with an external CRM, or audit which devices are registered.
Endpoint
GET https://appilix.com/api/push-notification-tokenRequired Parameters
| Parameter | Description |
|---|---|
app_key | Your app key, found in the Appilix dashboard |
api_key | Your API key, found in the Firebase settings page |
Optional Parameters
| Parameter | Default | Description |
|---|---|---|
user_identity | — | Filter tokens for a specific user identity |
page | 1 | Page number for pagination |
items_per_page | 100 | Number of tokens returned per page |
secondary_app_key | — | App key for a second app (e.g., iOS) |
secondary_api_key | — | API key for the secondary app |
Response Format
json
{
"status": true,
"current_page": 1,
"has_next_page": false,
"tokens": [
{
"token": "fcm-device-token-string",
"user_identity": "user@example.com",
"modified_at": "2026-05-22 10:30:00"
}
]
}| Field | Description |
|---|---|
status | true if the request succeeded, false if credentials are invalid |
current_page | The page number returned |
has_next_page | true if more pages of results exist |
tokens | Array of token records |
tokens[].token | The FCM device token |
tokens[].user_identity | The identity recorded for this device, or empty if not set |
tokens[].modified_at | When the token was last updated |
Pagination
Results are paginated. Use page and items_per_page to step through large lists:
?app_key=YOUR_APP_KEY&api_key=YOUR_API_KEY&page=2&items_per_page=50Check has_next_page in the response to determine whether additional pages exist.
Filtering by User
To retrieve tokens for a specific user, pass their identity:
?app_key=YOUR_APP_KEY&api_key=YOUR_API_KEY&user_identity=user@example.comFetching Tokens for Two Apps
If you have separate Android and iOS apps, include secondary_app_key and secondary_api_key. The response will contain results for both apps indexed separately.
Error Response
json
{
"status": false,
"message": "Invalid Primary `api_key`."
}