Docs
Everything bonk does fits on this page.
Your URL
The app shows your URL: https://trybonk.com/to/b_…. The part after /to/ is your secret. Treat it like a password. If it leaks, tap Regenerate URL in the app and the old one stops working immediately.
Send a notification
POST to your URL. The body becomes the notification text:
POST https://trybonk.com/to/<secret>
curl -d "deploy finished" https://trybonk.com/to/b_YOUR_SECRET
Send JSON to set a title or attach a link:
curl https://trybonk.com/to/b_YOUR_SECRET \
-H "Content-Type: application/json" \
-d '{"title":"CI","body":"main is green","url":"https://github.com"}'
title(up to 100 characters, optional): defaults to “bonk”.body(up to 2,000 characters, optional): the notification text.url(up to 2,000 characters, optional): must start withhttp://orhttps://. Tapping the notification opens it.urgent(trueorfalse, optional): see Urgent bonks.
Without Content-Type: application/json, the whole body is the notification text and the title is “bonk”. Title, body and url together must stay under 3,500 bytes, and requests are capped at 16 KB.
Urgent bonks
Mark a bonk urgent and iPhones deliver it as Time Sensitive: it breaks through Focus and stays on the Lock Screen for an hour. It doesn't override the mute switch. Add "urgent": true to JSON, or ?urgent=1 to the URL:
curl -d "prod is down" "https://trybonk.com/to/b_YOUR_SECRET?urgent=1"
Each person can turn Time Sensitive off for bonk in iOS Settings → Notifications → bonk. Save it for things that really can't wait.
Send to several phones
Separate secrets with commas, up to 20 per request:
curl -d "server down" https://trybonk.com/to/b_FIRST,b_SECOND,b_THIRD
Unknown secrets are skipped. The response tells you how many phones accepted it.
Responses
200: Handed to the push service. The body is{"sent": n}, the number of phones accepted. It doesn't confirm the phone showed it.400: Invalid body, a field over its limit, the notification over 3,500 bytes, or more than 20 secrets.404: None of the secrets exist.429: Rate limited. Wait the number of seconds inRetry-After.502: The push service didn't answer. Retry with backoff; a retry can rarely deliver the notification twice.
Limits
Each phone accepts 60 notifications per minute. When you send to several phones, any phone over its limit is skipped; you get 429 only when all of them are. Requests with unknown secrets are limited to 30 per minute per IP address.
Examples
Copy-paste recipes for JavaScript, Python, Go, CI, cron and AI agents are in the Guides.
Using bonk from scripts and agents
- The secret is a credential. Read it from an environment variable; never log it or commit it.
- Delivery is best effort. Don't use bonk for safety-critical alerts.
- bonk's server doesn't store messages, but they aren't end-to-end encrypted. The app can keep a history on the phone itself.