---
title: "Extract Text"
method: POST
path: "/api/v1/ai/extract-text"
tags: ["api", "api", "ai"]
---

# Extract Text

`POST /api/v1/ai/extract-text`

## Request

- Base URL: `https://www.faroz.uz` (the document declares no server; this is the origin it was published from)
- URL: `https://www.faroz.uz/api/v1/ai/extract-text`
- Auth: HTTP bearer

Yuklangan fayldan matnni ajratib qaytaradi. Fayl saqlanmaydi.

## Response `200`

Successful Response

- ExtractedText: PDF/DOCX/TXT fayldan ajratilgan matn.
  - `filename` string, required
  - `file_type` 'pdf' | 'docx' | 'txt', required
  - `char_count` integer, required
  - `text` string, required

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/faroz/apis/edu-app-api.md) · [All operations](https://skmtc.dev/faroz/apis/edu-app-api/llms.txt) · [OpenAPI document](https://skmtc.dev/faroz/apis/edu-app-api/revisions/414a551ba773?raw)
