Skip to content
Preview: the PushFleet API isn't live yet. Join the waitlist

Plain HTTP

No SDK for your language? The API is plain JSON over HTTPS, so any HTTP client works. Send your secret key as a bearer token and Content-Type: application/json with every body.

curl https://api.pushfleet.com/v1/send \
  -H "Authorization: Bearer $PUSHFLEET_SECRET_KEY" \
  -H "Content-Type: application/json" \
  -d '{"to":"user_8f3k","title":"Your order shipped","body":"Arriving Thursday"}'
curl https://api.pushfleet.com/v1/send \
  -H "Authorization: Bearer $PUSHFLEET_SECRET_KEY" \
  -H "Content-Type: application/json" \
  -d '{"to":"user_8f3k","template":"order_shipped","vars":{"eta":"Thu"}}'

Without an SDK, handle these yourself:

  • Retry 429 after Retry-After seconds, and 5xx with backoff.
  • Send an Idempotency-Key header so retries never send twice.
  • Sign live-mode user tokens: an HS256 JWT with the user ID as sub and a short exp, signed with your secret key.

Every endpoint in the API reference has a cURL sample.