---
title: "Ai Spellcheck"
method: GET
path: "/Ai/SpellCheck"
tags: ["Ai"]
---

# Ai Spellcheck

`GET /Ai/SpellCheck`

**Requires permission:** *StaffMember*

Gets an AI-generated spell check of a text

## Query parameters

- `text` string, nullable
- `pupilId` integer, nullable
- `page` integer, required
- `pageSize` integer, required
- `includes` string[], nullable
- `sort` string, nullable
- `filter` string, nullable

## Response `200`

Success - Successfully Corrected Text using Ai

- GetAiSpellCheckResponse
  - `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)
