attn.ca API
Trigger personal notifications from any script, job, or service.
Authentication
Bearer API key
Mint an API key from your dashboard with one click (it is issued by the pastebin.ca identity authority, audience-bound to https://attn.ca, scope attn:notify). Send it as a bearer token.
POST /api/v1/notify
Send a notification
Body fields (JSON or form): title, body, priority (low|normal|high, display-only), and an optional dedup_key for safe retries. At least one of title/body is required.
Returns 202 with the notification id. A repeated dedup_key returns the original id without sending again.
curl -X POST https://attn.ca/api/v1/notify \
-H 'Authorization: Bearer pbca_live_...' \
-H 'Content-Type: application/json' \
-d '{"title":"Backup done","body":"42 GB archived","dedup_key":"backup-2024-06-01"}'Channels
Pair your own destinations
Pair destinations from your dashboard: a Telegram chat (open the bot deep-link) or this browser (Web Push). Only verified channels you own receive notifications.