Export Learner Data
Authentication Required: PARENT or ADMIN role
GET /api/export
Learner ID to export data for
Authorization
- PARENT: Can export data for their children only
- ADMIN: Can export data for any learner
Response Format
The response is a JSON file with the following structure:Learner user object (password removed)
Complete learner profile including grade level, subjects, and knowledge graph
Array of up to 1,000 lesson records with full specifications and scores
Array of all earned achievements
ISO timestamp when the export was generated
User ID of the person who requested the export
Response Headers
The response includes special headers to trigger a file download:learner-data-{learnerId}-{date}.json
Example Export
Export Example
Error Codes
- 400 - learnerId is required
- 401 - Unauthorized
- 403 - Forbidden (parent can only export their own children)
- 404 - Learner not found
Use Cases
Data Portability
Export learner data to move to another system or for archival purposes.Compliance
Provide data export for GDPR, COPPA, or other privacy regulation compliance.Backup
Create periodic backups of learner progress and achievements.Analysis
Export data for offline analysis or reporting in external tools.The export includes sensitive learner data. Ensure itβs stored and transmitted securely.