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

# Check spelling for text sentences

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

## Request

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

Runs spell check on a list of sentences

## Request body

- object
  - `sentences` string[], required
  - `language` string
  - `model` string
  - `page_url` string
  - `custom_dictionary` string[]

## Response `200`

Spell check completed successfully

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

## Other responses

- `400`: Bad request - sentences array 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)
