API KeysQuiz

Quiz

Generate quiz sets from an existing note. All endpoints below accept an API key (X-API-Key or Authorization: Bearer ntx_...).

Base URL: https://api.notexapp.com

Generate quiz — POST /v6/create/quiz

Create a quiz set from a note. Returns a task_id — poll Tasks for the result.

Also accepts: user JWT, service key.

Content-Type: application/x-www-form-urlencoded

FieldTypeRequiredDescription
note_idstringrequiredID of the note to generate a quiz from
num_questionsstringoptionalNumber of questions to generate
set_namestringoptionalName for the quiz set
difficultystringoptionalDifficulty level (easy, medium, hard)
custom_promptstringoptionalCustom instruction for the AI
communitybooleanoptionalGenerate from a community note
curl -X POST https://api.notexapp.com/v6/create/quiz \
  -H "X-API-Key: ntx_live_..." \
  -H "Content-Type: application/x-www-form-urlencoded" \
  --data-urlencode "note_id=665f..." \
  --data-urlencode "num_questions=10" \
  --data-urlencode "difficulty=medium"

Response (200) — returns a task_id:

{
  "status": "PROCESSING",
  "data": {
    "task_id": "b3f1a2c4-...",
    "user_id": "665f..."
  }
}

Poll the task result to get the generated quiz:

{
  "status": "SUCCESS",
  "data": {
    "quiz_set_id": "665f...",
    "set_name": "Machine Learning Quiz",
    "questions": [
      {
        "question": "Which algorithm is used for classification?",
        "options": ["Linear Regression", "Decision Tree", "K-Means", "PCA"],
        "answer": "Decision Tree"
      },
      ...
    ]
  }
}