Twinr Push API
Send a push notification to one specific person from your own backend, using their device token.
Campaigns in Engage send to everyone, or to a segment. The Twinr Push API is for the other case: a notification aimed at one person, sent by your own code when something happens — an order ships, a message arrives, a booking is confirmed.
What you need to set up
Three things, in this order:
Turn on Personalized push notification in Engage.
Collect device tokens from the app with the JS bridge, and store them against your users.
Send from your backend, authenticating with an account secret.
1. Turn it on in Engage
Open Engage, click + Create campaign, and choose Personalized push notification.

Enter your Webhook URL — the endpoint on your own server that receives the app's device IDs — and click Save as draft.
2. Get the device token
Inside the app, ask for the token and save it against the signed-in user:
It returns the token and the platform (android or ios), or nothing if push is not available on that device.
Store tokens against the user, not the session, and allow more than one — a person with a phone and a tablet has a token for each.
See Push Notification - Device Token for more on the bridge call.
3. Send the notification
Create an account secret
The API authenticates with an account secret. Go to My Profile → Account secrets, click Create secret, and scope it to the organization — or to just the apps this server should be able to reach.
Copy the secret before closing the dialog. Twinr shows it once and cannot show it again.
See Account Secrets for the full walkthrough.
Make the call
Pass the secret as a Bearer token:
push_tokens, push_title, push_message and click_action are required. push_image is optional and takes an image URL.
What tapping the notification does
click_action takes one of exactly three shapes.
Opens the app wherever the person left it.
Opens a specific tab. tab_name must match the tab's name in your Twinr dashboard exactly, capitalisation included — a name that does not match simply opens the app.
Opens a URL inside the app. Use this for anything about a specific order or record — it is the only shape that can carry an identifier.
Example
Sending to one user from a Node backend:
Common Questions
Last updated