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"}'
| Field | Required | Description |
|---|---|---|
| deviceId | ✓ | The device this token belongs to. Must already exist |
| pushToken | ✓ | FCM registration token (Android) or APNs device token (iOS) |
Response
json
{ "success": true, "data": { "ok": true } }
| Status | Meaning |
|---|---|
| 400 | Invalid JSON, or deviceId / pushToken missing or blank |
| 401 | API key missing or invalid |
| 404 | No device with that deviceId in this project |