---
title: "Generate a quiz."
method: POST
path: "/v1/study/quiz"
---

# Generate a quiz.

`POST /v1/study/quiz`

## Request

- Base URL: `https://api.cortexplus.io`
- URL: `https://api.cortexplus.io/v1/study/quiz`
- Auth: HTTP bearer

Generate a multiple-choice quiz from the study material of a subject. Nothing is stored.

## Request body

- object
  - `subject` string, required: Subject name or slug.
  - `count` integer

## Response `200`

Successful response.

- object
  - `items` object[], required
    - `question` string, required
    - `options` string[], required
    - `answerIndex` integer, required
    - `explanation` string, required
    - `sourceId` string, nullable, required

## Other responses

- `default`: Request failed.

---

[API](https://skmtc.dev/cortexplus/apis/cortexplus-rest-api.md) · [All operations](https://skmtc.dev/cortexplus/apis/cortexplus-rest-api/llms.txt) · [OpenAPI document](https://skmtc.dev/cortexplus/apis/cortexplus-rest-api/revisions/2d04f1593663?raw)
