Skip to content
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.

1

Get API key

Sign up → Settings → API Keys

Create account →
2

Send your first OTP

POST /api/v1/whatsapp/otp/send with phone number

See endpoint →
3

Go live

Verify OTP and integrate in your app

Verify endpoint →

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 ✅