Topic
The topic field routes your message to the correct topic channel. You can provide a topic title or a topic token, and JustPush.io will figure out where to deliver it—or create the topic on the fly.
When sending a push message, the topic
field tells JustPush.io which topic the message belongs to. You have two ways to identify the topic:
topic
– A plain-text title (e.g.,"Server Alerts"
), which will be slugified.topic_token
– A secure, unique identifier for direct delivery.
Here’s what happens under the hood:
If a matching topic is found for the user (by token or title), the message is routed there.
If multiple topics match, we fall back to the user’s default topic.
If no topic exists and you supplied a title, we’ll create it for you.
If no topic or token is provided, we use the default topic (if it exists).
This means your messages are always delivered—either to an existing topic or a freshly minted one.
Requirements
topic
string
text
Frequently Asked Questions
Last updated