Examplary
Start for free
Developer docs

Generate question

POSThttps://api.examplary.ai/exams/{id}/questions/generate

Generate a new question for the exam using an AI prompt.

Path parameters

idstringrequired

Request body

messagestring· min length: 1· max length: 5000required
questionTypestring
formatstring

Allowed values:examplary_jsonqti_v3p0qti_v2p1

Responses

400 — Validation Error

successbooleanrequired

Allowed values:false

errorarray any[]required
dataanyrequired

429 — Rate limit exceeded

Requirements

Rate limit

10 requests per minute per user.

User roles

This endpoint requires the teacher, admin, or owner role to be present.

OAuth scopes

This endpoint requires the exams:write scope to be present.