Skip to main content
Retrieve detailed information about a single PDF quiz, including its question PDF metadata and the complete list of student submission records associated with it.

Endpoint

GET /api/v3/quiz/pdf-quizzes/{id}

Required Role

Admin — you must authenticate with an admin-scoped Bearer token.

Required Headers

HeaderValue
AuthorizationBearer <token>
Acceptapplication/json

Path Parameters

id
integer
required
The unique ID of the PDF quiz you want to retrieve.

Example Request

curl -X GET https://app.example.com/api/v3/quiz/pdf-quizzes/1 \
  -H "Authorization: Bearer your-token" \
  -H "Accept: application/json"

Response

200 OK

{
  "data": {
    "id": 1,
    "title": "Math Quiz PDF",
    "questions_pdf_url": "https://example.com/media/quiz-questions.pdf",
    "questions_count_of_quiz_pdf": 10,
    "total_grade_for_quiz_pdf": 100,
    "submissions": [
      {
        "id": 15,
        "student_name": "John Doe",
        "grade": 95,
        "total_grade": 100,
        "is_marked": 1,
        "pdf_answer_url": "https://example.com/media/answer-15.pdf"
      }
    ]
  }
}

Response Fields

data
object
A single PDF quiz object containing full details and all associated student submissions.

Error Responses

StatusMessageCause
403Unauthorized AccessThe token provided does not belong to an admin account.
404Not FoundNo quiz exists with the specified id.