palbaseDocs

Palbase Notify · API

POST/notify/receipts

Report how pushes went on the device

The app's SDK reports what happened to a push on this device: it reached the phone (the iOS Notification Service Extension, or the Android SDK as it draws it), could not be shown, was opened, dismissed, or a button was tapped. The push's own sealed token (pb_receipt) is the credential: only a push this project sent to this device can be reported, with no sign-in. Each delivery keeps the furthest it got; each stage reached for the first time is told (notification.<stage>).

Called by your app, with the publishable key; or a signed-in user of your app, with their token and the publishable key.

Request body

receiptsobject[] · required
curl
curl -X POST "https://<your-ref>.palbase.studio/notify/receipts" \
  -H "apikey: $PALBASE_PUBLISHABLE_KEY" \
  -H "authorization: Bearer $USER_ACCESS_TOKEN" \
  -H "content-type: application/json" \
  -d '{"receipts":[{"receipt":"string","status":"delivered"}]}'

Responses

200Recorded

400Validation failed or a required field is missing

401Missing or invalid API key

429Over the project's request limit, or its shared sends for this window

defaultAn error: the envelope names it (`error`) and explains it (`error_description`).

Operation RecordPushReceipts of notify's contract.