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"}'Send with a template
Section titled “Send with a template”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"}}'What the SDKs do for you
Section titled “What the SDKs do for you”Without an SDK, handle these yourself:
- Retry
429afterRetry-Afterseconds, and5xxwith backoff. - Send an
Idempotency-Keyheader so retries never send twice. - Sign live-mode user tokens: an HS256 JWT with the user ID as
suband a shortexp, signed with your secret key.
Every endpoint in the API reference has a cURL sample.