Skip to main content

Overview

The Contiguity JavaScript SDK is the official TypeScript/JavaScript library for interacting with Contiguity’s communication APIs. Built with TypeScript, it provides a type-safe and intuitive interface for sending messages across multiple channels from your Node.js applications.

Key Features

SMS/Text Messages

Send text messages, reactions, and retrieve conversation history

Email

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

OTP/Verification

Generate and verify one-time passwords for authentication

iMessage

Send iMessages with typing indicators, reactions, and read receipts

WhatsApp

Send WhatsApp messages with rich formatting and reactions

Webhooks

Handle incoming messages and delivery updates securely

What You Can Build

With the Contiguity JavaScript SDK, you can build:
  • Authentication systems with OTP verification via SMS or email
  • Notification services that reach users on their preferred channels
  • Marketing campaigns with personalized messages across SMS, email, and WhatsApp
  • Customer support with two-way messaging and conversation history
  • Alerts and reminders for time-sensitive information
  • Conversational applications with webhook handlers for incoming messages

Requirements

Quick Example

import { Contiguity } from 'contiguity';

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

// Send a text message
await contiguity.text.send({
  to: "+1234567890",
  message: "Hello from Contiguity!"
});

// Send an email
await contiguity.email.send({
  to: "[email protected]",
  from: "Your App <[email protected]>",
  subject: "Welcome!",
  text: "Welcome to our platform!"
});

Next Steps

Quickstart

Get started in 5 minutes with your first API call

Installation

Detailed setup and configuration guide

API Reference

Explore all available methods and parameters

Core Features

Learn from real-world code examples

Build docs developers (and LLMs) love