Skip to main content
The API is plain JSON over HTTPS, so any language works; the sending examples show Python, Ruby, PHP and Go. The official SDK adds types, typed errors and idempotency helpers.

TypeScript / Node.js

@sendbaze/sdk is a zero-dependency client built on fetch. It runs on Node.js 20+, Bun, Deno, Cloudflare Workers and Vercel Edge, and ships ESM and CommonJS builds with type definitions.

Options

Resources

Every method takes an optional last argument { idempotencyKey, signal }.

Errors

Webhooks

See verify the signature.

React Email

Pass a React element as react and the SDK renders it to html and text before sending. The renderer is an optional peer dependency: npm install @react-email/render react react-dom. renderReactEmail exposes the same rendering for previews and tests. See React Email.

Python

sendbaze on PyPI needs Python 3.9+ and nothing but the standard library. The same resources and method names as the TypeScript SDK, in snake_case; from_ and class_ stand in for the reserved words.
Every method returns a dict with attribute access (email.id or email["id"]). Options: api_key, base_url, timeout (seconds, default 30). See the Python guide.

Other languages

Ruby, PHP and Go packages are on the roadmap. Until then the API reference shows a request sample in each language on every endpoint, and the sending guides include a small client you can copy:

Ruby

PHP

Go

OpenAPI

The full specification is at /api-reference/openapi.yaml. Generate a client with your usual tooling, or import it into Postman or Insomnia.