Everything you need to capture subscribers and send web push notifications.
Tellify ships as a single embeddable script. Drop the snippet below just before the
closing </body> tag on every page where you want to collect subscribers.
Copy your API key from the dashboard under Settings → API keys.
<!-- Add before the closing </body> tag --> <script src="https://app.tellify.io/tellify-sdk.js" data-api-key="pk_live_your_api_key" data-api-url="https://api.tellify.io/api" data-auto-prompt="true" defer></script>
The SDK automatically registers the service worker and handles the browser permission
flow. Set data-auto-prompt="false" if you want to trigger the opt-in prompt
manually from your own button.
With auto-prompt enabled the SDK asks visitors for notification permission on their first visit. To wire it to your own UI instead, call the SDK from a click handler:
<button id="notify-me">Enable notifications</button> <script> document.getElementById('notify-me').addEventListener('click', () => { window.Tellify.subscribe() }) </script>
Every successful opt-in creates a subscriber in your Tellify dashboard, where you can review, segment, and target them.
Send a push from your backend by calling the REST API with your secret key in the
X-Tellify-Key header:
curl -X POST https://api.tellify.io/api/notifications/send \ -H "Content-Type: application/json" \ -H "X-Tellify-Key: sk_live_your_secret_key" \ -d '{ "title": "New drop is live", "body": "Check out the latest arrivals.", "url": "https://your-store.com/new" }'
You can also compose and schedule campaigns visually from the dashboard — no code required.
Prefer not to touch code? Install the one-click Tellify plugin for your platform and paste your API key into its settings screen:
Need a hand? Reach us any time at [email protected].