---
title: "🔒 #26677 ИИ-функция «Орфография и пунктуация»: текст Markdown с исправленными ошибками и список правок; код, ссылки, адреса, токены, разделы и маркеры заголовков модель не видит и не меняет."
method: POST
path: "/llm/edit/spellcheck"
tags: ["LLM Functions"]
---

# 🔒 #26677 ИИ-функция «Орфография и пунктуация»: текст Markdown с исправленными ошибками и список правок; код, ссылки, адреса, токены, разделы и маркеры заголовков модель не видит и не меняет.

`POST /llm/edit/spellcheck`

## Request

- Base URL: `http://localhost`
- URL: `http://localhost/llm/edit/spellcheck`
- Auth: one of:
  - API key in header `sid` and API key in header `rts` and API key in header `sig`
  - HTTP bearer

#26677 ИИ-функция «Орфография и пунктуация»: текст Markdown с исправленными ошибками и список правок; код, ссылки, адреса, токены, разделы и маркеры заголовков модель не видит и не меняет.

**Access:** `authorized` (10 ) · **Scope:** `read`

**Allows:** `task:update`, `feature:update`, `meeting:update` (все обязательны; проверка в команде по ресурсу из запроса)

### TypeScript (copy-paste)

**`POST /llm/edit/spellcheck`**

<details open><summary><b>Body</b></summary>

```typescript
export interface LlmEditSpellcheckBody {
  text: string
  entityType?: string | null
  entityID?: string | null
}
```

</details>

<details open><summary><b>Response</b></summary>

```typescript
export type LlmEditSpellcheckResponse = IServerResponse<Resp_llm_edit_spellcheck>

export interface IServerResponse<T = any> {
  code: number
  data: T
  srvTS: number
  rkey: string
}
```

</details>

> Полный файл типов: [`/docs/types`](/docs/types) · raw: [`/docs/api-types.ts`](/docs/api-types.ts)

## Headers

- `devID` string, uuid, required
- `tz` string, required
- `app` string, required
- `appVer` string, required
- `rKey` string

## Request body

- LlmEditSpellcheckBody: JSON body for `llm/edit/spellcheck`
  - `text` string, required
  - `entityType` string, nullable
  - `entityID` string, uuid, nullable

## Response `200`

OK — `IServerResponse<Resp_llm_edit_spellcheck>`

- object
  - `code` integer, required
  - `data` RespLlmEditSpellcheck, required: TS type: LLMSpellcheck.Result & { runID: string }
  - `srvTS` integer, required: Server timestamp (ms)
  - `rkey` string, required: Request key

## Other responses

- `400`: BadRequest / Validation — неверные params/body/headers
- `401`: Authorize — сессия отсутствует, истекла или невалидна
- `403`: AccessNotAllowed: the function is not activated in the company (reason: notActivated)
- `406`: TimeResync — расхождение rts с сервером
- `422`: UnprocessableContent: the text is larger than the function limit (reason: tooLarge, max) or has fewer than 10 characters without markup, code, links and tokens (reason: tooShort, min)
- `502`: ExternalRequest: no model answered or the edits changed a protected part (reason: LLMError.Kind); the check text is only in the log

---

[API](https://skmtc.dev/kosmodrom/apis/kosmodrom-backend-api.md) · [All operations](https://skmtc.dev/kosmodrom/apis/kosmodrom-backend-api/llms.txt) · [OpenAPI document](https://skmtc.dev/kosmodrom/apis/kosmodrom-backend-api/revisions/a143b51ba29a?raw)
