Send your first notification

After a device is registered, create a token and send:

# mode A (self-hosted default): the relay encrypts on arrival
curl -X POST "https://your-server.example.com/v1/notify" \
  -H "Authorization: Bearer $PRELAY_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
    "device": "phone",
    "title": "Backup complete",
    "message": "nas-01 at 03:00"
  }'

The device field may carry the name or the device ID. Zero-knowledge senders post a sealed envelope instead: "encrypted": true with a protocol envelope in payload (the CLI builds it).

The only required field is title. See api reference.

On this page

No Headings