OpenAPI 3.1 · REST · JSON
EmacronAI CRM API Reference
Build on top of WhatsApp OTP, messaging, contacts, and conversations. Explore the REST API and the setup required for your workspace. API access depends on the active package and connected provider configuration.
Quick start — Node.js
whatsapp-otp.js
const API_KEY = 'YOUR_API_KEY';
const BASE = 'https://api.crm.emacronai.com/api/v1';
// 1. Send OTP
const { request_id } = await fetch(`${BASE}/whatsapp/otp/send`, {
method: 'POST',
headers: { 'Authorization': `Bearer ${API_KEY}`, 'Content-Type': 'application/json' },
body: JSON.stringify({ phone: '+919876543210' }),
}).then(r => r.json());
// 2. Verify OTP
const { verified } = await fetch(`${BASE}/whatsapp/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 ✅