Examplary
Start for free
Developer docs

Import questions

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

Import questions into an exam from a file. Support Word, PDF, Moodle quiz XML and plain text files.

Path parameters

idstringrequired

Request body

namestring

File name

typestring

MIME type of the file, e.g. application/pdf

urlstring· uri

URL of the file, required if no content is specified. Needs to be a HTTPS URL without basic auth or port.

contentstring

Content of the file as a string, as an alternative to URL. Only supported for exports from other systems (e.g. Moodle XML).

keepExistingSettingsboolean

Whether to keep existing exam settings when importing questions via AI.

Responses

200 — Imported questions or job status.

statusstringrequired

Allowed values:successstarted

importerstring
questionsarray object[]

400 — Failed to import questions from the provided file.

errorstringrequired

429 — Rate limit exceeded

Requirements

Rate limit

5 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.