API

Developer API

Run Lensux's rule-based audit on any public URL from your code, your CI or an AI agent. It returns the HTML/CSS, accessibility, ecommerce and SaaS guideline, structured-data and information-architecture checks — the deterministic ones, scored the same every time. The browser, Core Web Vitals and AI audits stay in the app.

Authentication

Create a key in Settings → Developer API (it's shown once). Send it as x-api-key or Authorization: Bearer lmx_…. Keys are tied to your account and plan; keep them secret.

Audit a URL (REST)

POST JSON with api: "audit" and a public url. Add "full": true for every finding, or "checks": ["ecom_product", …] to run only some.

curl -s https://wmmnonqqgurmkliedeic.supabase.co/functions/v1/run-audit-check \
  -H "x-api-key: lmx_YOUR_KEY" \
  -H "Content-Type: application/json" \
  -d '{"api":"audit","url":"https://example.com/product/123"}'

List the available checks

curl -s https://wmmnonqqgurmkliedeic.supabase.co/functions/v1/run-audit-check \
  -H "x-api-key: lmx_YOUR_KEY" -H "Content-Type: application/json" \
  -d '{"api":"checks"}'

MCP-compatible endpoint (AI agents)

The same endpoint speaks JSON-RPC 2.0 for agents: send api: "mcp" with a method. It implements initialize, tools/list and tools/call with one tool, audit_url.

curl -s https://wmmnonqqgurmkliedeic.supabase.co/functions/v1/run-audit-check \
  -H "x-api-key: lmx_YOUR_KEY" -H "Content-Type: application/json" \
  -d '{"api":"mcp","method":"tools/call","id":1,
       "params":{"name":"audit_url","arguments":{"url":"https://example.com"}}}'

Notes

Create an API key