Skip to content
๐Ÿ“– Developer Documentation

Build with EmacronAI CRM API

Integrate supported WhatsApp OTP and CRM workflows into your app. Review the REST API and code examples for Node.js, Python, PHP, Go, and cURL.

Base URL

https://api.crm.emacronai.com/v1

Auth

Bearer token โ€” Settings โ†’ API Keys

Format

JSON request + response bodies

API Reference & Guides

Everything you need to integrate in minutes.

๐ŸŒWebsite package

Website Forms, Booking & Chat

Embed live CRM booking availability, capture web forms, and send identified chat enquiries to your workspace CRM.

โ†’ Embed booking availability
โ†’ Capture website leads
โ†’ Install chat widget
๐Ÿ”Most popular

WhatsApp OTP

Send and verify one-time passwords via WhatsApp. 2 API calls, 15 min integration.

โ†’ Quick start
โ†’ Send OTP
โ†’ Verify OTP
โ†’ Rate limits
โšกNew

OTPless Magic Link

Password-free WhatsApp login. User taps "Continue with WhatsApp" โ†’ auto-verified. No code to type.

โ†’ How it works
โ†’ Init session
โ†’ Poll status
โ†’ Webhook callback
๐Ÿ’ฌ

WhatsApp Messaging

Send template messages, free-form texts, and manage conversation flows.

โ†’ Send message
โ†’ Templates
โ†’ Broadcasts
๐Ÿ‘ฅ

Contacts API

Create, update, search, and segment contacts in your CRM programmatically.

โ†’ Create contact
โ†’ List & search
โ†’ Custom fields
๐Ÿ””

Webhooks

Receive real-time events for message delivery, OTP verification, and replies.

โ†’ Setup
โ†’ Event types
โ†’ Verification
๐Ÿ”Œ8 native

Integrations

Connect EmacronAI CRM to Slack, HubSpot, Shopify, Telegram, Google Sheets, Zapier, Segment, Mixpanel and more.

โ†’ Slack
โ†’ HubSpot
โ†’ Shopify
โ†’ Zapier / Make
โ†’ Segment
โ†’ Mixpanel
๐Ÿ“ฆnpm

Node.js SDK

Official npm package. Zero dependencies, full TypeScript types, works in Node 16+.

โ†’ npm install
โ†’ GitHub
โ†’ Changelog
๐Ÿ”ญOpenAPI 3.1

API Reference

OpenAPI 3.1 reference for the documented OTP, messaging, contacts, and conversation endpoints. Read-only โ€” Try it out is disabled.

โ†’ Swagger UI
โ†’ Download spec
โ†’ Postman collection

WhatsApp OTP in 3 lines

Same two endpoints work in every language.

Node.js
import { createClient } from '@emacrontechnologies/outreachagent';
const oa = createClient(process.env.API_KEY);
const { request_id } = await oa.otp.send({ phone: '+919876543210' });
const { valid } = await oa.otp.verify(request_id, otp);
Python
import requests
r = requests.post('https://api.crm.emacronai.com/api/v1/whatsapp/otp/send',
  json={'phone': '+919876543210'},
  headers={'Authorization': 'Bearer API_KEY'})
request_id = r.json()['request_id']
cURL
curl -X POST https://api.crm.emacronai.com/api/v1/whatsapp/otp/send \
  -H "Authorization: Bearer API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"phone": "+919876543210"}'