Access is invite-only during beta. Once invited, create a key to personalize these examples. Production sending requires a separate review.
Send emails with Rust
Install the Rust crate from GitHub and call emails().send.
emails().send posts to POST /api/v1/emails. Pass team_id on the client. Calls use bearer auth against https://app.postshiba.com.
Not on crates.io yet. Open pull requests on postshiba/sdks.
Send through a cluster with an idempotency key and sandbox mode.
Errors and throttling
Failed responses return Error 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, check err.error.as_deref() == Some("throttled") before sending again.
See Errors.