Get started with WhatsApp authentication in under 5 minutes. Complete guides, API reference, and code examples.
From zero to WhatsApp authentication in minutes
Add Zaplink to your project with npm or yarn
npm install @matterhop/auth
Set up your API keys and WhatsApp integration
import { ZaplinkAuth } from '@matterhop/auth';
const auth = new ZaplinkAuth({
apiKey: 'your-api-key',
whatsappNumber: '+1234567890'
});
Send OTP and verify user authentication
// Send WhatsApp OTP
await auth.sendOTP(phoneNumber);
// Verify the code
const result = await auth.verifyOTP(phoneNumber, code);
Official SDKs for popular languages and frameworks
Full-featured SDK for web and server applications
npm install @matterhop/auth
React hooks for seamless frontend integration
npm install @matterhop/auth-react
Clean Python SDK for backend services
pip install matterhop-auth
Direct HTTP API for any programming language
curl -X POST api.zaplink.io
Try our API directly in your browser
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}}"
}'
{
"success": true,
"message_id": "whatsapp_msg_abc123",
"expires_in": 300,
"retry_after": 60
}
Get your API keys and start integrating WhatsApp authentication today.