---
title: "Check Spelling & Grammar"
method: POST
path: "/v1/emails/validate/spelling"
tags: ["Email Validation"]
---

# Check Spelling & Grammar

`POST /v1/emails/validate/spelling`

AI-powered spell checking, grammar analysis, and content quality assessment for email content.

## Request body

- object
  - `html` string, required — Email HTML content to check
  - `languages` string[] — Languages to check (auto-detected if not provided)
  - `checkGrammar` boolean — Include grammar checking

## Response `200`

Spelling check completed

- object
  - `success` boolean
  - `data` object
    - `totalWords` integer
    - `errors` object[]
      - `word` string
      - `suggestions` string[]
      - `context` string
      - `type` string
    - `summary` object
      - `totalErrors` integer
      - `uniqueErrors` integer
    - `metadata` object
      - `processingTime` integer
      - `aiModel` string
      - `tokensUsed` integer

## Other responses

- `400` — Bad request
- `401` — Unauthorized

---

[API](https://skmtc.net/migma/apis/migma-ai-api-v1.md) · [All operations](https://skmtc.net/migma/apis/migma-ai-api-v1/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/migma/migma-ai-api-v1/revisions/3f3dba69574b/schema)
