Skip to content

Push notifications API

The push API lets you send notifications from your own systems (CRM, ERP, marketing automation) without going through the backoffice. It is currently the only documented public Reskyt API.

HeaderValueRequired
Content-Typeapplication/jsonYes
x-api-keyYour API keyYes

API keys are generated from the Reskyt panel.

POST https://push.api.reskyt.com/push/send
{
"title": "Your order is on its way",
"heading": "Shipping",
"dateEnd": 1790000000,
"url": "https://yourstore.com/offers",
"pictureUrl": "https://yourstore.com/img/preview.jpg",
"utmCampaign": "black_friday_2026",
"deviceId": [
"41dc840f7e76bcec71a40bce87699431",
"076b3c207b9a010d654efdfab92cb898"
]
}
FieldTypeRequiredDescription
titlestringYesText or body of the notification.
headingstringNoTitle of the notification.
deviceIdstring[]Yes in V2Recipients of the send, identified by their hashed installation ID.
dateEndnumberNoUnix timestamp in seconds at which the notification expires. If not specified, the API applies 7 days from the send.
urlstringNoURL opened when the notification is tapped.
pictureUrlstringNoURL of the preview image.
utmCampaignstringNoCampaign identifier or label.
tokensstring[]V1 onlyRecipients identified by their MD5 push token. Only for customers coming from V1; V2 uses deviceId.

deviceId carries hashed installation IDs, not APNs or FCM tokens. The recommended flow to obtain them is:

  1. Check that the user agent contains rktwebview, which is what indicates that the code is running inside the app. See detecting that you are inside the app.
  2. During login or sign-up, call window.ReskytLayout.device.getId(), which returns a promise.
  3. Store the returned hashed installation ID.
  4. Associate it with the corresponding user in your systems.
  5. Then use it as the value of deviceId in your sends.

Without step 4 it is not possible to segment by customer.

If you already send notifications with V1, you can keep doing so with the tokens you have stored, in tokens.

To move to V2, start storing each device’s hashed installation ID, following the flow above, the same way you stored the tokens, and send it in deviceId. Push tokens can change over time, while the hashed installation ID stays the same for as long as the app remains installed.

Ventana de terminal
curl -X POST https://push.api.reskyt.com/push/send \
-H "Content-Type: application/json" \
-H "x-api-key: $RESKYT_API_KEY" \
-d '{
"title": "Your order is on its way",
"heading": "Shipping",
"dateEnd": 1790000000,
"url": "https://yourstore.com/orders/1234",
"deviceId": ["41dc840f7e76bcec71a40bce87699431"]
}'