OpenAPI 3.1 · REST · JSON
EmacronAI CRM API Reference
Build on top of WhatsApp OTP, messaging, contacts, and conversations. Official Meta BSP API. Production-ready. Get your API key in 30 seconds.
Quick start — Node.js
whatsapp-otp.js
const API_KEY = 'YOUR_API_KEY';
const BASE = 'https://api.crm.emacronai.com/v1';
// 1. Send OTP
const { request_id } = await fetch(`${BASE}/otp/send`, {
method: 'POST',
headers: { 'Authorization': `Bearer ${API_KEY}`, 'Content-Type': 'application/json' },
body: JSON.stringify({ phone: '+919876543210', expiry: 300, length: 6 }),
}).then(r => r.json());
// 2. Verify OTP
const { verified } = await fetch(`${BASE}/otp/verify`, {
method: 'POST',
headers: { 'Authorization': `Bearer ${API_KEY}`, 'Content-Type': 'application/json' },
body: JSON.stringify({ request_id, otp: userEnteredOtp }),
}).then(r => r.json());
console.log(verified); // true ✅