---
title: "Text"
method: POST
path: "/v2/text/sync"
tags: ["Reports by Modality"]
---

# Text

`POST /v2/text/sync`

Analyze **text** to determine if it was generated by AI.

This endpoint analyzes text content and returns confidence scores for AI detection.

**Text Processing Limits:**
- **Minimum Text Length:** 250 characters
- **Maximum Text Length:** 500,000 characters (500KB)
- **Minimum Words**: Approximately 64 words

## Query parameters

- `external_id` string, nullable
- `include_annotations` boolean

## Response `200`

Successful Response

- TextReportResponse
  - `id` string, uuid, required — Unique identifier associated with the request
  - `created_at` string, date-time — Date and time of request processing
  - `report` object, required
    - `ai_text` AITextReportScheme, required
      - `confidence` number, required — Confidence score for AI-generated text detection
      - `is_detected` boolean, required — Whether AI-generated text was detected
      - `annotations` array[] — Block-level AI detection results (only included when include_annotations=true)
        - unknown[]
          - unknown
  - `metadata` TextMetadata, required
    - `word_count` integer, required — Number of words in the analyzed text
    - `character_count` integer, required — Number of characters in the analyzed text
    - `token_count` integer, required — Number of tokens in the analyzed text
    - `md5` string, required — MD5 hash of the analyzed text
  - `external_id` string, nullable — The external identifier provided in the request, if any

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.dev/aiornot/apis/aiornot-api.md) · [All operations](https://skmtc.dev/aiornot/apis/aiornot-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/aiornot/aiornot-api/revisions/5e511404c8f9/schema)
