Retrieves all questions with their explanations for a given worksheet.
The response includes worksheet metadata along with questions that have an explanation key added to each question object.
Prerequisites:
How to Use:
GET /worksheet/v1/generate-explanations/{work_sheet_id} with the worksheet ID.404 error is returned.400 error is returned with the current status.400 error is returned with the failure message.Path Parameters:
work_sheet_id (UUID, required): The unique ID of the worksheet.Response Data:
id: Worksheet ID.board: Board details (id and name).grade: Grade details (id and name).section: Worksheet section.subject: Subject details (id and name).status: Current status of the explanation generation step.number_of_questions: Total number of questions in the worksheet.topic: Topic of the worksheet.documents: List of document URLs associated with the worksheet.audio: Audio URL if available.questions: Array of questions with explanations merged.Response Codes:
200 OK: Questions with explanations returned successfully.400 Bad Request: Questions or explanations not yet generated, or generation failed.404 Not Found: Worksheet, questions, or explanations not found.500 Internal Server Error: Unexpected error occurred.Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Unique identifier of the worksheet
Worksheet questions with explanations retrieved successfully.