API KeysFlashcards

Flashcards

Generate flashcard 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 flashcards — POST /v6/create/flashcards

Create a flashcard 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 flashcards from
num_cardsstringoptionalNumber of cards to generate
set_namestringoptionalName for the flashcard 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/flashcards \
  -H "X-API-Key: ntx_live_..." \
  -H "Content-Type: application/x-www-form-urlencoded" \
  --data-urlencode "note_id=665f..." \
  --data-urlencode "num_cards=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 flashcard set:

{
  "status": "SUCCESS",
  "data": {
    "flashcard_set_id": "665f...",
    "set_name": "Machine Learning Basics",
    "cards": [
      { "front": "What is supervised learning?", "back": "..." },
      ...
    ]
  }
}