New Feature: Send to Alias

DJ Swanepoel wrote this on December 28, 2015

After quite a few late nights we are excited to release our newest feature – send to alias!

Send to alias allows you to programmatically send push notifications to users who meet certain criteria. Under normal circumstances you would create a separate segment to narrow down your target audience and then send your message to that segment. Generally speaking that works great, but it can become a bit of a burden if you are looking to send out dynamic messages to a narrower selection of users.

This new feature works specifically well when combining it with custom attributes or events. For instance, imagine your website has a user backend. Given that scenario you might already be recording the user’s username when they login. Did that user receive a new message? Perhaps someone followed that user? In either case you can now send an API call passing the username and message and our system will take care of the rest!

Here are some example calls:

curl -XPUT -H 'X-Authorization: AUTH_TOKEN' -H "Content-type: application/json" -d '{
    "idSite": "33",
    "title": "An Awesome Push",
    "body": "Looks pretty great.",
    "link" : "https://aimtell.com",
    "alias": "eventAction!=watched video"
}' 'https://api.aimtell.com/prod/push'
curl -XPUT -H 'X-Authorization: AUTH_TOKEN' -H "Content-type: application/json" -d '{
    "idSite": "33",
    "title": "An Awesome Push",
    "body": "Looks pretty great.",
    "link" : "https://aimtell.com",
    "alias": "username==djswan"
}' 'https://api.aimtell.com/prod/push'

For more information on how to leverage the new send to alias feature visit our detailed API documentation here: API Documentation

About The Author DJ Swanepoel is the Founder & CEO of Aimtell who loves all things tech. He enjoys coding, chess, tennis and the competitive side of life.