โพCustom push gateways
{
// type of the integration - "smartico-by-token" or "smartico-by-user"
"gateway-type": "smartico-by-token",
// URL of the custom gateway that will be called by smartico to deliver the push token
"URL": "https:/some.com/post_handler",
// auth key that will be sent in the HTTP-header: 'Authorization'
"auth_key": "some_secret_key"
}{
// ID of the user in the smartico system
"user_id": 123123123,
// ID of the user on operator side
"user_ext_id": "1123123",
// ID of the brand, relevant for the multi-brand setups
"ext_brand_id": "mybrand1",
// push token for the type of integration "smartico-by-token"
"push_token": "e311mfDpNx4:APA91bFzTRPjTNMHGBIyrqF46zHQmOk0l77GHHDNlX7MX-PbxDlixbyZWBEDkFlN817RdvQM4AG5Ncspg8Tvy2ab1mj3IbFqERepXWBcCqRVp6y1GwjR7vCFSY6SKNXRNtmpd0rKDGe4",
// type of device to which this token is assigned - DESKTOP/MOBILE/IOS/ANDROID
"device_type": "DESKTOP",
// message content of the push notification
"message": {
// smartico internal message id, should be used also to report impressions/clicks
"message_id": 123456,
"body": "some body",
"title": "short title",
"button1": "button1", // optional
"button2": "button2", // optional
"button3": "button3", // optional
"action": "https://mysite.com/link.html", // optional
"action2": "https://mysite.com/link2.html", // optional
"action3": "https://mysite.com/link3.html", // optional
"iconUrl": "icon", // optional
"badgeUrl": "badge", // optional
"imageUrl": "image", // optional
// ID of the user on operators side prefixed with a unique brand ID, needed for reporting
"user_ext_id": "684:f21aaf49-54cf-4ff4-b3ce-146bd2535004",
// Unique ID of the notification
"engagement_uid": "f56883c4-2898-4388-a033-6205bbc41d8d",
// URL to the site of the domain for this user, used for Deep links
// you need to replace {action} parameter with the action that user is clicked and
// navigate user with the final link
// you can also skip this part, if your action is always a final URL
"_WEB_SITE_DP_HANDLER": "https://demo.smartico.ai/demo.html#_smartico_dp={action}",
}
}Reporting push message status back to Smartico
Last updated
Was this helpful?