Developer REST API & Webhooks5 min readUpdated November 2026

Developer REST API & Outbound Webhook Reference

Technical documentation for HMAC-signed outbound webhooks, lead ingestion payloads, and real-time CRM event callbacks.

Webhook Security & HMAC Signatures#

Every outbound webhook dispatched by Rajlav AI includes an `X-Rajlav-Signature` header calculated using HMAC SHA-256 with your private webhook secret.

Verify this signature in your server endpoints to ensure payloads have not been tampered with in transit.

Node.js HMAC Signature Verification
const crypto = require('crypto');

function verifyWebhook(rawPayload, signatureHeader, secret) {
  const hash = crypto
    .createHmac('sha256', secret)
    .update(rawPayload)
    .digest('hex');
  return crypto.timingSafeEqual(Buffer.from(hash), Buffer.from(signatureHeader));
}

lead.created Event Payload#

Dispatched immediately when a new customer contact is qualified via Web Chat or WhatsApp:

lead.created JSON Payload
{
  "event": "lead.created",
  "timestamp": "2026-11-24T12:00:00Z",
  "data": {
    "leadId": "lead_9824_xyz",
    "businessId": "biz_ptr_104",
    "channel": "WHATSAPP",
    "customer": {
      "name": "Rohan Verma",
      "phone": "+919876543210",
      "email": "rohan@example.com"
    },
    "qualification": {
      "intent": "PROPERTY_PURCHASE",
      "urgency": "HIGH",
      "budget": "₹80L - ₹1.2 Cr"
    }
  }
}

message.status Event Payload#

Dispatched whenever a Meta delivery callback updates message status (SENT, DELIVERED, READ, FAILED):

message.status JSON Payload
{
  "event": "message.status",
  "timestamp": "2026-11-24T12:01:04Z",
  "data": {
    "providerMessageId": "wamid.HBgMOTE5ODc2NTQzMjEw...",
    "status": "READ",
    "recipientPhone": "+919876543210",
    "deliveryLatencyMs": 142
  }
}

Was this article helpful?

Your feedback helps our team improve technical documentation.