Access is invite-only during beta. Once invited, create a key to personalize these examples. Production sending requires a separate review.
Send emails with Elixir
Install the Elixir SDK from GitHub and call Emails.send.
PostShiba.Emails.send posts to POST /api/v1/emails. PostShiba.new/3 sends JSON to https://app.postshiba.com/api/v1 with a Bearer token. Pass the team id as the third argument. GET /users/me does not return one.
Not on Hex yet. Open pull requests on postshiba/sdks.
Cluster send can set Idempotency-Key and "sandbox": true.
Errors and throttling
Failed responses raise %PostShiba.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 job, catch %PostShiba.Error{} and check error.error == "throttled" before sending again.
See Errors.