Access is invite-only during beta. Once invited, create a key to personalize these examples. Production sending requires a separate review.
Send emails with Trigger.dev
Install the Trigger.dev adapter and call sendEmail from a task.
sendEmail posts to POST /api/v1/teams/:teamId/clusters/:clusterId/sends. clusterId is required. Put catchPostShibaError on the task. A 429 with error throttled is the hourly throttle or 24-hour cap. Do not retry that send immediately. Permanent errors skip retrying.
Pass a stable idempotencyKey so a retried task does not double-send.
Node 18 or later. Open pull requests on postshiba/sdks.
Webhooks
HMAC-SHA256 of {timestamp}.{rawBody} against X-Capsule-Signature with a sha256= prefix. X-Capsule-Timestamp must be within 300 seconds.
Errors and throttling
Failed responses throw PostShibaHttpError with status, code, and retryable. Permanent errors become AbortTaskRunError.
A 429 with error throttled means the cluster hit its hourly throttle or its 24-hour cap. catchPostShibaError waits before retrying. Do not retry that send immediately.
See Errors.