Skip to content

Getting Started

PostStack is the email API for developers. Send transactional emails, manage contacts, verify domains, and track delivery -- all through a simple, type-safe API.

Install the SDK

Install the PostStack SDK with your preferred package manager:

bash
bun add @poststack.dev/sdk
bash
npm install @poststack.dev/sdk
bash
pnpm add @poststack.dev/sdk

Send Your First Email

Initialize the client with your API key and send an email in just a few lines:

typescript
import { PostStack } from '@poststack.dev/sdk';

const poststack = new PostStack('sk_live_...');

const { id } = await poststack.emails.send({
  from: 'you@yourdomain.com',
  to: ['user@example.com'],
  subject: 'Hello!',
  html: '<p>Welcome!</p>',
});

// id = "em_abc123..."

Base URL

All API requests are made to the following base URL.

bash
https://api.poststack.dev

Key Concepts

Each concept below has its own dedicated reference page — click through for the full API surface, code samples, and configuration details.

What's Next

Pick the path that matches what you're building: