AlertMagnet
Sending Push Notifications

Sending Push Notifications

You can send push notifications in two ways: through the user-friendly admin dashboard, or programmatically via the REST API.

Sending from the Dashboard

  1. Log in to your AlertMagnet admin dashboard.
  2. Click New Campaign.
  3. Enter your Title, Message Body, and Destination URL.
  4. Click Send Now (or schedule for later).

Using POST /api/v1/send

To trigger notifications automatically from your server, CMS, or blog when new content is published, send an HTTP POST request:

curl -X POST "https://push.yourdomain.com/api/v1/send" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "title": "New Blog Post Published!",
    "body": "Read our latest engineering update.",
    "target_url": "https://yourdomain.com/blog/latest"
  }'