Developer Documentation

Developer Docs

Get started with WhatsApp authentication in under 5 minutes. Complete guides, API reference, and code examples.

Get started in 3 simple steps

From zero to WhatsApp authentication in minutes

1

Install the SDK

Add Zaplink to your project with npm or yarn

npm install @matterhop/auth
2

Configure

Set up your API keys and WhatsApp integration

import { ZaplinkAuth } from '@matterhop/auth';

const auth = new ZaplinkAuth({
  apiKey: 'your-api-key',
  whatsappNumber: '+1234567890'
});
3

Verify Users

Send OTP and verify user authentication

// Send WhatsApp OTP
await auth.sendOTP(phoneNumber);

// Verify the code
const result = await auth.verifyOTP(phoneNumber, code);

Choose your SDK

Official SDKs for popular languages and frameworks

🟨

JavaScript/Node.js

Full-featured SDK for web and server applications

npm install @matterhop/auth
JavaScriptMIT License
⚛️

React Hooks

React hooks for seamless frontend integration

npm install @matterhop/auth-react
ReactMIT License
🐍

Python

Clean Python SDK for backend services

pip install matterhop-auth
PythonMIT License
🌐

REST API

Direct HTTP API for any programming language

curl -X POST api.zaplink.io
HTTPMIT License

API Playground

Try our API directly in your browser

Request

curl -X POST https://api.zaplink.io/v1/auth/send-otp \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "phone_number": "+1234567890",
    "template": "Your verification code is: {{code}}"
  }'

Response

{
  "success": true,
  "message_id": "whatsapp_msg_abc123",
  "expires_in": 300,
  "retry_after": 60
}

Explore the documentation

Mobile Integration

Complete guides for iOS, Android, and React Native apps.

Learn more

Web Integration

Add WhatsApp OTP to React, Vue, or vanilla JavaScript apps.

Learn more

Backend APIs

Server-side authentication with Node.js, Python, and more.

Learn more

Ready to start building?

Get your API keys and start integrating WhatsApp authentication today.