JavaScript
import Migma from 'migma'; const migma = new Migma('YOUR_API_KEY'); const { data, error } = await migma.validation.spelling({ html: '<html>...</html>' });
{ "success": true, "data": { "totalWords": 123, "errors": [ { "word": "<string>", "suggestions": [ "<string>" ], "context": "<string>", "type": "<string>" } ], "summary": { "totalErrors": 123, "uniqueErrors": 123 }, "metadata": { "processingTime": 123, "aiModel": "<string>", "tokensUsed": 123 } } }
AI-powered spell checking, grammar analysis, and content quality assessment for email content.
API key authentication. Use 'Authorization: Bearer YOUR_API_KEY' where YOUR_API_KEY is obtained from the Migma dashboard under Settings → API Integration.
Email HTML content to check
Languages to check (auto-detected if not provided)
Include grammar checking
Spelling check completed
Show child attributes
Was this page helpful?
Suggestions
Contact support