DocumentationPush Token API

Push Token API

Registers a device push token so Nohmo can detect uninstalls. The uninstall sweep sends a silent push; a permanent failure from FCM or APNs is what marks the install as gone.

POST /api/tracker/push-token/

bash
curl -X POST https://www.nohmo.in/api/tracker/push-token/ \
-H "Content-Type: application/json" \
-H "X-API-Key: pk_xxxx" \
-d '{
"deviceId": "a1b2c3d4...",
"pushToken": "fcm-or-apns-token"
}'
FieldRequiredDescription
deviceIdThe device this token belongs to. Must already exist
pushTokenFCM registration token (Android) or APNs device token (iOS)

Response

json
{ "success": true, "data": { "ok": true } }
StatusMeaning
400Invalid JSON, or deviceId / pushToken missing or blank
401API key missing or invalid
404No device with that deviceId in this project