---
title: "Check spelling for HTML content"
method: POST
path: "/api/v1/toolkit_ai/check-spelling"
tags: ["Toolkit AI"]
---

# Check spelling for HTML content

`POST /api/v1/toolkit_ai/check-spelling`

## Request

- Base URL: `https://toolkit.browserstack.com`
- URL: `https://toolkit.browserstack.com/api/v1/toolkit_ai/check-spelling`
- Auth: API key in cookie `_wdt_rails_session`

Runs spell check on provided HTML content and returns suggestions

## Request body

- object
  - `html_file` string, required
  - `language` string
  - `model` string
  - `page_url` string

## Response `200`

Spell check completed successfully

- object
  - `success` boolean
  - `response` object
    - `suggestions` string[]

## Other responses

- `400`: Bad request - html_file missing
- `403`: Forbidden - user lacks access
- `429`: Too many requests - rate limited
- `500`: Internal server error

---

[API](https://skmtc.dev/birdeatsbug/apis/wdt-rails-api.md) - [All operations](https://skmtc.dev/birdeatsbug/apis/wdt-rails-api/llms.txt) - [OpenAPI document](https://skmtc.dev/birdeatsbug/apis/wdt-rails-api/revisions/cbd06b547b6a?raw)
