Developers

Integration Guide

Step-by-step setup for CRM, identity, email, payments, analytics, and enterprise monitoring.

Internal CRM

Demo, contact, brochure, TCO, and newsletter leads unified in the admin CRM panel.

  1. POST /api/demo or /api/contact from your site
  2. Leads appear in /admin/dashboard → CRM
  3. Use CRM webhooks via admin export

Microsoft Entra ID

OIDC SSO for staff admin and partner portal authentication.

  1. Register app per docs/ENTRA-SSO-SPEC.md
  2. Set AZURE_ENTRA_* env vars or admin UI
  3. Enable SSO channel toggles in admin

Resend Email

OTP verification for gated downloads, TCO access, and learner login.

  1. Set RESEND_API_KEY and EMAIL_FROM
  2. Verify sender domain in Resend
  3. Test via admin email notification panel

WAIG Proprietary Captcha

Bot protection via signed SVG security codes on admin, partner, LMS, and assessment flows.

  1. CAPTCHA_ENABLED=true (default)
  2. Optional CAPTCHA_SECRET; defaults to ENCRYPTION_KEY
  3. Refresh code via /api/auth/captcha

Google Analytics 4

Consent-gated analytics via cookie banner.

  1. Set NEXT_PUBLIC_GA_MEASUREMENT_ID
  2. Publish cookie policy in trust center
  3. Consent recorded in CookieConsentRecord

CCAvenue Payments

Secure donation and membership payment redirects — PCI scope stays with gateway.

  1. Configure merchant ID in admin → Payments
  2. Create active PaymentLink rows
  3. Donate page lists featured links automatically

WAIG Platform (GTaaS)

Governance testing APIs and sovereign chat when WAIG_PLATFORM_API_URL is configured.

  1. Set WAIG_PLATFORM_API_URL + API key in platform settings
  2. Chat falls back to local LLM when unavailable

SIEM & Webhooks

Export governance assessment results and CRM events for enterprise monitoring.

  1. Use token-gated export URLs from governance assessment
  2. Poll /api/admin/crm/leads with ADMIN_API_KEY
  3. Forward audit logs from reverse proxy