---
title: "Ai Spellcheck (body)"
method: POST
path: "/Ai/SpellCheck"
tags: ["Ai"]
---

# Ai Spellcheck (body)

`POST /Ai/SpellCheck`

**Requires permission:** *StaffMember*

Gets an AI-generated spell check of a text. Identical to GET /Ai/SpellCheck, but the text and pupil id travel in the request body so pupil narrative never appears in a URL (query strings are logged by gateways even under TLS). Prefer this form.

## Request body

- PostAiSpellCheckRequest
  - `text` string, nullable
  - `pupilId` integer, nullable

## Response `200`

Success - Successfully Corrected Text using Ai

- PostAiSpellCheckResponse
  - `spellCheckedText` string, nullable
  - `meta` Meta
    - `page` integer
    - `pageSize` integer
    - `total` integer

## Other responses

- `400` — An Error Occurred - Could not correct text
- `401` — Unauthorized
- `403` — Forbidden

---

[API](https://skmtc.net/tonbridge/apis/tonbridge-app-api.md) · [All operations](https://skmtc.net/tonbridge/apis/tonbridge-app-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/tonbridge/tonbridge-app-api/versions/fab57bf5558a/schema)
