Getting started
This guide will walk you through the steps to set up Notifery and send your first event and notification.
Step 1: Create your account
- Visit app.notifery.com.
- Click on “Sign In” and choose your preferred authentication method (Google or GitHub).
- Complete the authentication process to create your account.
Step 2: Enable push notifications
After signing in, you’ll be prompted to enable push notifications:
- When the browser permission dialog appears, click “Allow” to enable notifications.
- If you accidentally dismissed the prompt, you can enable notifications later through the Devices section in your profile.
Step 3: Configure multiple devices (optional)
To receive notifications on multiple devices:
- Sign in to app.notifery.com on each additional device.
- Enable push notifications when prompted on each device.
- You can view and manage all your registered devices in the Profile > Devices section.
Step 4: Create your first zone
Zones in Notifery are containers for organizing your notifications:
- From the dashboard, click on “Zones” in the left sidebar.
- Click “Create zone” or “Create your first zone” button.
- Enter a name for your zone (e.g., “My Project”).
- The system will automatically generate an alias based on your zone name. You can customize this alias if needed.
- Click “Create” to finalize.
Step 5: Generate an API key
To send notifications, you’ll need an API key:
- Navigate to your newly created zone.
- Click on “Settings” in the zone menu.
- Scroll down to the “API keys” section.
- Click “Create API key”.
- Copy it, we will use it in the next step.
Step 6: Send your first notification
Now you’re ready to send your first notification using the Notifery API:
Using cURL
curl -i -X POST \ -H 'Content-Type: application/json' \ -H 'x-api-key: YOUR_API_KEY' \ -d '{"title":"Hello","message":"World","zone":"YOUR_ZONE_ALIAS"}' \ https://api.notifery.com/event
Replace YOUR_API_KEY
with the API key you generated and YOUR_ZONE_ALIAS
with your zone’s alias.
Using JavaScript
fetch('https://api.notifery.com/event', { method: 'POST', headers: { 'Content-Type': 'application/json', 'x-api-key': 'YOUR_API_KEY', }, body: JSON.stringify({ title: 'Hello', message: 'World', zone: 'YOUR_ZONE_ALIAS', }),}) .then((response) => console.log('Notification sent!')) .catch((error) => console.error('Error:', error))
Using Python
import requests
response = requests.post( 'https://api.notifery.com/event', headers={ 'Content-Type': 'application/json', 'x-api-key': 'YOUR_API_KEY' }, json={ 'title': 'Hello', 'message': 'World', 'zone': 'YOUR_ZONE_ALIAS' })
print(f"Status code: {response.status_code}")
Step 7: Create groups (optional)
For better organization, you can create groups within your zone:
- Navigate to your zone’s settings.
- Click on “Groups” in the settings menu.
- Click “Create new group”.
- Provide a name and alias for your group.
- When sending notifications, include the
group
parameter in your API requests:
Tip:
curl -i -X POST \ -H 'Content-Type': 'application/json' \ -H 'x-api-key': 'YOUR_API_KEY' \ -d '{"title":"Hello","message":"World","zone":"YOUR_ZONE_ALIAS","group":"YOUR_GROUP_ALIAS"}' \ https://api.notifery.com/event