Skip to main content

Contiguity JavaScript SDK

Send SMS, email, iMessage, and WhatsApp messages from your JavaScript or TypeScript applications. Built with type safety and developer experience in mind.

Quick Start

Get up and running with the Contiguity SDK in minutes.

1

Install the package

Add the Contiguity SDK to your project using your preferred package manager.
npm install contiguity
2

Initialize the client

Import and initialize the Contiguity client with your API token. Get your token from the Contiguity Console.
import { Contiguity } from 'contiguity';

const contiguity = new Contiguity('contiguity_sk_...your_token...');
3

Send your first message

Choose your preferred messaging channel and send a message.
// Send an SMS
const response = await contiguity.text.send({
  to: "+1234567890",
  message: "Hello from Contiguity!"
});

console.log('Message sent:', response.message_id);
You can also send emails, iMessages, WhatsApp messages, and more. Check out the Core Features section for details.

Core Features

Explore the powerful messaging capabilities of the Contiguity SDK.

SMS/Text Messages

Send text messages with reactions, conversation history, and delivery tracking.

Email

Send emails with HTML, plain text, or React Email templates.

OTP Verification

Generate and verify one-time passwords with reverse OTP support.

iMessage

Send iMessages with typing indicators, reactions, and read receipts.

WhatsApp

Send WhatsApp messages with typing indicators and reactions.

Webhooks

Receive and verify incoming message webhooks securely.

Developer Experience

Built for modern TypeScript and JavaScript applications.

TypeScript First

Full type safety with TypeScript definitions for all APIs.

React Email

Integrate with React Email for beautiful templated emails.

Error Handling

Comprehensive error handling with detailed error messages.

Ready to get started?

Jump into our quickstart guide and send your first message in minutes, or explore the API reference for detailed documentation.

Build docs developers (and LLMs) love