Skip to content

Send a notification

Send a POST to https://api.pocketbell.dev/v1/messages with the Source’s API key as a bearer token. Only message is required.

Terminal window
curl https://api.pocketbell.dev/v1/messages \
-H "Authorization: Bearer pb_live_…" \
-H "Content-Type: application/json" \
-d '{"title": "Backup finished", "message": "db-1: 4.2 GB in 3m 12s"}'

Add "markdown": true and the app shows bold, italic, code, links, and lists of lines starting with - or *. The notification on the lock screen shows the same text without the formatting.

Terminal window
curl https://api.pocketbell.dev/v1/messages \
-H "Authorization: Bearer pb_live_…" \
-H "Content-Type: application/json" \
-d '{"title": "Deploy finished", "markdown": true,
"message": "`main@4f2a91c` is live.\n\n- 14 commits\n- [Release notes](https://example.com/releases)"}'

Without it, text arrives exactly as sent, so snake_case_names and cron lines like */5 * * * * are left alone.

Every field, and every response, is in the API reference.