emails, leads, automations, events, and senders.
- Repo: github.com/DropoutCapital/reallyquickemails-sdk
- npm: @reallyquickemails/sdk
- License: MIT
- Size: ~13 KB CJS / ~12 KB ESM, zero runtime deps (uses native
fetch)
Works in any runtime with native
fetch: Node.js 18+, Bun, Deno, Cloudflare Workers, Vercel Edge.
It does NOT run in the browser: the constructor throws an error if it detects window, to avoid exposing the API key in the client bundle.Installation
- npm
- pnpm
- yarn
- bun
Quickstart
1
Get an API key
Generate a key in
Settings → Integrations → API Keys. To get started, use a Test key (sk_test_*): it sends real emails without polluting your production metrics. See API Keys.2
Initialize the client
apiKey, the SDK reads process.env.RQE_API_KEY. To point to another backend (staging, self-hosted), pass baseUrl or set RQE_BASE_URL:3
Send your first email
Error handling
Each method returns{ data, error, headers }. Always check error before using data — data is null when there’s an error.
Modules
emails — transactional + broadcast
leads — contact management
automations — trigger flows
events — custom tracking
senders — list / verify senders (v0.1.1+)
Discover which senders are verified, verify new ones via magic link, and check a sender’s status.
- Multi-tenant — list the active project’s senders and choose based on the client
- Failover — if a sender fails DKIM/DMARC, automatically fall back to another verified one
- Onboarding wizard — UI shows available senders for the client to choose from
- Health check — periodic polling of status to detect failed senders
Idempotency
For safe retries (network timeouts, Lambda retries), passidempotencyKey on write operations. Currently supported on emails.send and emails.sendBatch.
(project_id, idempotencyKey) pair. A second call with the same key returns the cached response without re-processing and adds the Idempotency-Replayed: true header.
More on the backend’s behavior in API Keys → Idempotency.
Runtime compatibility
Configuration
Support
- Bugs and feature requests: GitHub Issues
- Email: harold@dropout.cl