Send an alert from any script with curl
Use the BotPings push notification API from a shell script. Create a channel key, send an alert with curl, and verify the result on your iPhone.
Shell · iPhone · 4 min · Servers and scripts
Before you start
You need curl and a BotPings channel. Keep the channel key in your secret store or protected environment.
Steps
Create a key
From Channels, choose Add a server or script, select the alert option and choose the channel. Save the key shown by the app. The command uses it as BOTPINGS_KEY.

Send the alert
curl -fsS https://botpings.com/send -H "Authorization: Bearer $BOTPINGS_KEY" -H "Content-Type: application/json" -d '{"title":"Checkout unavailable","priority":"urgent"}'Set the title, priority and destination
Use low, normal, high or urgent for Quiet, Normal, Important or Urgent. The key’s channel is the default. Add a permitted channel name as channel when you need to select it.
Handle repeated requests
A channel can group matching open alerts within its configured deduplication window. Set dedupeKey to a stable value for the same incident. An optional UUID in the Idempotency-Key header lets you safely retry an identical request.
Test it
Look for HTTP 202 in the response and then find the alert in Inbox. Open its detail to verify the priority and channel.

If it doesn’t work
- 401. Check that the key was copied correctly and has not been replaced.
- 403. Check the key’s channel permissions.
- 422. Check the title and priority against the HTTP API reference.
- 429. Wait before retrying and use the response’s retry guidance when present.
Related guides
Checked with BotPings 1.0 in a local test environment, November 2026.