Docs / SDKs
Official SDKs
KestrelMQ ships two official SDKs, @kestrelmq/sdk for TypeScript on npm and kestrelmq for Python on PyPI, both MIT-licensed and built on the same REST API.
Updated 2026-12-02~2 min readTypeScript · Python
Both SDKs send events to POST /v1/events and verify outbound webhook signatures, including the v1=<new>,v1=<old> header sent during a zero-downtime secret rotation.
| TypeScript | Python | |
|---|---|---|
| Package | @kestrelmq/sdk | kestrelmq |
| Install | npm install @kestrelmq/sdk | pip install kestrelmq |
| Version | 0.2.0 | 0.1.0 |
| Runtime | Node.js >=22.12, ESM, zero dependencies | Python 3.10+, httpx |
| Client | new KestrelClient({ baseUrl, apiKey }) | KestrelMQ() (sync), AsyncKestrelMQ() (async) |
| Send an event | kestrel.events.send({ event, payload }) | mq.send_event(event, payload) |
| Verify a webhook | verifyWebhookSignature({ payload, signatureHeader, secret, timestamp }) | verify_webhook_signature(payload, signature_header, secrets, timestamp=...) |
| Errors | KestrelApiError, KestrelTimeoutError | KestrelAPIError, KestrelTimeoutError |
| Source | GitHub sdk/ | GitHub packages/python-sdk/ |
The TypeScript SDK also covers bulk CSV ingestion (events.sendBulk), delivery inspection, replay and cancel (deliveries.*) and analytics (analytics.summary). The Python SDK focuses on sending events and verifying webhooks.
Both read the same environment variables:
KESTRELMQ_API_KEY=kmq_live_...
KESTRELMQ_BASE_URL=http://localhost:8080 # self-hosted; your Cloud API URL otherwise- Quickstart: side-by-side TypeScript, Python and cURL
- TypeScript SDK reference
- Python SDK reference