Developer API v1
MXLens for agents and automations
Upload email files, fetch signed URLs, create bulk batches, and retrieve privacy-safe analysis results through REST or MCP. API keys are optional for persisted history.
Analyze One Email
curl -X POST https://mxlens.com/api/v1/analyze \
-F "file=@suspicious.eml" \
-F "analyzeBody=true"Safe URL Fetch
curl -X POST https://mxlens.com/api/v1/analyze \
-H "Content-Type: application/json" \
-d '{"fetchUrl":"https://storage.example.com/email.eml?signature=..."}'Bulk Batch
curl -X POST https://mxlens.com/api/v1/batches \
-H "Content-Type: application/json" \
-d '{"items":[{"contentBase64":"..."}]}'MCP Endpoint
POST /api/mcp
Authorization: Bearer mxl_live_... (optional)
Tools:
- mxlens_analyze_email
- mxlens_create_batch
- mxlens_get_batch
- mxlens_get_analysis