---
title: "Check Answers"
method: POST
path: "/api/v1/ai/{provider}/check-answers"
tags: ["api", "api", "ai"]
---

# Check Answers

`POST /api/v1/ai/{provider}/check-answers`

## 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/{provider}/check-answers`
- Auth: HTTP bearer

O'quvchi javoblarini tekshirib, xatolarni tushuntiradi (tanlangan AI bilan).

## Path parameters

- `provider` 'claude' | 'gpt' | 'gemini' | 'deepseek', required: Qaysi AI provayderdan foydalanish. URL prefiksi sifatida ham ishlatiladi: /api/v1/ai/{provider}/...

## Request body

- CheckAnswersRequest
  - `answers` StudentAnswer[], required
    - `question` string, required
    - `student_answer` string, required
    - `correct_answer` string, nullable
    - `exercise_type` 'multiple_choice' | 'fill_in_blank' | 'true_false' | 'short_answer' | 'matching': AI generatsiya qiladigan mashq turlari.
  - `level` 'A1' | 'A2' | 'B1' | 'B2' | 'C1' | 'C2', required: CEFR til darajasi (A1–C2). AI mashq generatsiyasida o'quvchining darajasini belgilash uchun ishlatiladi.
  - `language` string: Tushuntirishlar qaysi tilda bo'lishi

## Response `200`

Successful Response

- CheckAnswersResponse
  - `total` integer, required
  - `correct` integer, required
  - `score_percent` number, required
  - `overall_feedback` string, required
  - `feedback` AnswerFeedback[], required
    - `question` string, required
    - `student_answer` string, required
    - `is_correct` boolean, required
    - `correct_answer` string, nullable
    - `error_type` string, nullable
    - `explanation` 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)
