Levox REST & WebSocket APIs →

API Documentation

Authenticate with API keys, call 47+ endpoints organized by domain, and subscribe to WebSocket channels for live compliance metrics and alerts.

Authentication

Bearer tokens with per-company scoping. Rate limits based on license tier.

WebSocket

Subscribe to evidence analytics and compliance metrics streams for real-time dashboards.

Rate Limiting

Feature-based limits with monthly resets and persistent tracking.

Authentication

  • POST /api/auth/login
  • POST /api/auth/register
  • GET /api/auth/google

License Management

  • GET /api/license
  • POST /api/issue-license
  • POST /api/revoke-license
  • POST /api/check-scan-limit
  • POST /api/increment-scan-count

Evidence Engine

  • POST /api/evidence/generate
  • GET /api/evidence/history
  • GET /api/evidence/trends
  • GET /api/evidence/analytics
  • GET /api/evidence/insights
  • GET /api/evidence/export

Company Management

  • GET /api/companies
  • POST /api/companies
  • GET /api/companies/[id]
  • GET /api/companies/[id]/members

Admin

  • GET /api/admin/dashboard
  • GET /api/admin/users/[userId]
  • POST /api/admin/update-license

Payments & Support

  • POST /api/payments/razorpay-order
  • POST /api/payments/razorpay-verify
  • POST /api/payments/razorpay-webhook
  • POST /api/contact

Authentication Example

curl -X POST https://levox.aifenrix.com/api/auth/login \
  -H 'Content-Type: application/json' \
  -d '{"email":"user@example.com","password":"your_password"}'

WebSocket Subscription

wss://levox.aifenrix.com/api/ws/evidence?companyId=<id>
channels: ["metrics","violations","insights"]