Access is invite-only during beta. Once invited, create a key to personalize these examples. Production sending requires a separate review.
Send emails with Java
Install the Java SDK from GitHub and call emails.send.
emails.send posts to POST /api/v1/emails. Pass teamId on Options. GET /users/me does not return one.
Installation
Not on Maven Central yet. Clone postshiba/postshiba-java and ./mvnw install. Requires Java 17. Open pull requests on postshiba/sdks.
Cluster send can add Idempotency-Key and "sandbox": true.
Errors and throttling
Failed responses throw ApiError with error, field, and message.
A 429 with error throttled means the cluster hit its hourly throttle or its 24-hour cap. Do not retry that send immediately. Immediate retries hit the same cap.
The client does not delay for you. In a queued worker, catch ApiError and check e.error.equals("throttled") before sending again.
See Errors.