BotPings HTTP API
Send alerts and record check-ins from scripts, servers and scheduled jobs.
POST /send
Accept an alert as text, form data, or JSON. The channel defaults to the key’s channel. An idempotency key is optional.
curl -fsS https://botpings.com/send \
-H "Authorization: Bearer $BOTPINGS_KEY" \
-H "Content-Type: application/json" \
-d '{"title":"Checkout unavailable","priority":"urgent"}'BOTPINGS_KEY is your channel’s bearer key. An optional Idempotency-Key is a UUID that can be reused for an identical retry.
| Field | Meaning |
|---|---|
title | The alert title shown in Inbox. |
message | Optional detail for the responder. |
priority | Use low, normal, high or urgent. The app labels them Quiet, Normal, Important and Urgent. |
channel | Optional allowed channel name. Omit it to use the key’s channel. |
dedupeKey | Optional stable key for merging matching open alerts during the channel’s deduplication window. |
expiresIn | Optional alert lifetime in seconds. |
202 confirms acceptance. The response includes id, status, merged and url. Delivery and acknowledgment can be checked in the app. The send rate limit is 60 per minute per key.
Expected errors include 401 for an invalid key, 403 for denied access, 409 for a conflicting retry, 422 for invalid input and 429 for a rate limit.
/ping/<token>
GET or POST records a successful check-in. HEAD also records it. The token in the URL authorizes the request.
curl -fsS "https://botpings.com/ping/$CHECK_IN_TOKEN"CHECK_IN_TOKEN comes from the app’s private check-in URL.
/ping/<token>/fail
GET or POST reports a failure immediately. With POST you can include a short plain-text note. A valid response is 200 OK. An unknown token returns 404. Respect Retry-After on 429.
curl -fsS -H "Content-Type: text/plain" -d "Backup failed" "https://botpings.com/ping/$CHECK_IN_TOKEN/fail"Use the same CHECK_IN_TOKEN as for successful runs.