Skip to content
Developer Hub

Build with Samva's
powerful APIs

Unified API for Email, SMS, and WhatsApp. Send messages, manage templates, and track conversations with just a few lines of code.

Quick Start

Get started with Samva in seconds

Send your first message
API v1
import { createSamvaClient } from 'samva';

const samva = createSamvaClient({
  apiKey: process.env.SAMVA_API_KEY!
});

// Send an email
await samva.email.send({
  body: {
    to: 'user@example.com',
    subject: 'Your verification code',
    text: 'Your OTP is 839201'
  }
});

// Or send SMS
await samva.sms.send({
  body: {
    to: '+14155552671',
    message: 'Your OTP is 839201'
  }
});

Official SDKs

Native libraries for your favorite programming language

🟦
stable

TypeScript

Version 1.0.0

npm install samvaView on GitHub
🌐
stable

REST API

Version v1

curl, fetch, requests, etc.View on GitHub

Built for Developers

Modern APIs with everything you need for production

RESTful Design

Clean, predictable URLs with standard HTTP methods

Idempotent Requests

Safe retries with idempotency keys for critical operations

Pagination & Filtering

Efficient data retrieval with cursor-based pagination

Real-time Webhooks

Instant notifications for message status and events

Comprehensive Errors

Detailed error messages with actionable solutions

OpenAPI Spec

Auto-generated clients and interactive documentation

Ready to start building?

Get your API key and send your first message in minutes