---
title: "Create Flashcard"
method: POST
path: "/teacher/courses/{course_id}/flashcards"
tags: ["Teacher Courses"]
---

# Create Flashcard

`POST /teacher/courses/{course_id}/flashcards`

Create a new flashcard for a teacher course.

Creates a new flashcard (typically for global revision) that belongs
to a course owned by the authenticated teacher.

## Path parameters

- `course_id` string, required

## Request body

- CreateFlashcardRequest — Request model for creating a new flashcard.
  - `front` string, required
  - `back` string, required
  - `revision_type` 'unit' | 'course_global', nullable

## Response `200`

Successful Response

- Flashcard — Represents a flashcard generated from a course.
  - `_id` string
  - `course_id` string, required
  - `unit_id` string, nullable
  - `user_id` string, required
  - `front` string, required
  - `back` string, required
  - `revision_type` 'unit' | 'course_global', nullable
  - `created_at` string, date-time

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.dev/excellence-ai/apis/excellence-learning.md) · [All operations](https://skmtc.dev/excellence-ai/apis/excellence-learning/llms.txt) · [OpenAPI document](https://skmtc.dev/excellence-ai/apis/excellence-learning/revisions/2a0c1636fd3b?raw)
