# Get all materials for a specific topic **GET /api/v1/materials/topic/{topicId}** Retrieve all learning materials from all lessons within a specific topic. **Returns:** - Topic information - Materials grouped by lesson - All materials in a flat list - Summary statistics **Use Cases:** - Topic overview page - Bulk material download - Topic progress tracking ## Servers - Local server: http://localhost:3500 (Local server) - Production server: https://api.echoplain.social (Production server) ## Parameters ### Path parameters - **topicId** (string) UUID of the topic to get materials for ## Responses ### 200 Topic materials retrieved successfully #### Body: application/json (object) - **topic** (object) - **materialsGroupedByLesson** (array[object]) - **totalMaterials** (number) - **totalLessons** (number) ### 400 Default bad request error 400 response #### Body: application/json (object) - **message** (string) Response message - **error** (string) - **statusCode** (number) [Powered by Bump.sh](https://bump.sh)