Skip to main content

Flashcards API

Route: /api/groups/flashcards
Documentation for the flashcards API endpoint will be added here.

Flashcards Analytics API

Route: POST /api/groups/flashcards
Get analytics data for flashcard usage by students within a group, including sets created, individual flashcards made, and chat questions asked with optional student-level breakdowns.

Authentication

This endpoint requires authentication using an API key. Header Required:

Parameters

Query Parameters

Response Format

Group-Level Data (students=false)

Returns aggregated flashcard analytics for the entire group.

Student-Level Data (students=true)

Returns individual student flashcard analytics.

Data Fields Explained

Flashcard Metrics

  • Sets Made: Number of flashcard sets created by students
  • Flashcards Made: Total number of individual flashcards created
  • Chat Questions: Number of chat questions asked related to flashcard content

Additional Fields

  • numStudentsUsed (Group-level only): Number of unique students who used flashcard features
  • studentName (Student-level only): Display name of the student
  • studentId (Student-level only): Unique identifier for the student

Error Responses

403 Unauthorized

Returned when API key is missing or invalid.
Causes:
  • Missing x-api-key header
  • Invalid API key
  • API key not associated with a valid group plan

400 Bad Request

Returned when required parameters are missing.

Notes

  • Reports are automatically sorted by start date in ascending order
  • Date ranges are inclusive of both start and end dates
  • All timestamps should be in ISO 8601 format