---
title: "Validate formatted text"
method: POST
path: "/api/v2/text/validate/"
tags: ["Formatted Documents"]
---

# Validate formatted text

`POST /api/v2/text/validate/`

Validate plain text or an uploaded file before submitting it for a formatted text check. The endpoint parses the content, counts words and pages, checks UTF-8 and text length constraints, and applies language/letter-percentage validation.

This endpoint does not charge the account or create a text check. If `group_id` is supplied and the group disables language validation, the language and letter-percentage validations are skipped.

## Response `200`

The formatted text is valid enough to submit for checking.

- FormattedTextValidation — Result returned when formatted text validation succeeds.
  - `success` boolean, required
  - `warning` string, nullable, required — Optional validation warning. An empty string means no warning was produced.
  - `words` integer, required — Number of words parsed from the submitted text or file.
  - `pages` integer, required — Estimated page count calculated from the parsed word count.

## Other responses

- `400` — The formatted text could not be validated. Some validation failures include `code`, `words`, and `pages`; request parsing errors use the common error shape.
- `403` — Authentication or authorization failed because the token is missing, invalid, blocked, or not allowed to access the resource.

---

[API](https://skmtc.net/plagiarismcheck/apis/plagiarismcheck-org-api.md) · [All operations](https://skmtc.net/plagiarismcheck/apis/plagiarismcheck-org-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/plagiarismcheck/plagiarismcheck-org-api/revisions/034b4999350e/schema)
