> ## Documentation Index
> Fetch the complete documentation index at: https://docs.fermion.app/llms.txt
> Use this file to discover all available pages before exploring further.

# Get course quiz submissions 

> Get all quiz submissions for a course product, grouped by quiz. Returns question-wise breakdown with scores.

Authentication with the "FERMION-API-KEY" header is required to use this endpoint.

Rate limit: Maximum 60 requests in a window of 1m.



## OpenAPI

````yaml https://backend.codedamn.com/webhook/fermion-backend-openapi.yaml post /public/get-all-quiz-submissions
openapi: 3.0.0
info:
  version: 1.0.0
  title: Fermion Backend API
  description: Documentation for interacting with the Fermion API
  contact:
    name: Fermion Support
    email: support@codedamn.com
servers:
  - url: https://backend.codedamn.com/api
    description: Fermion primary backend server
security: []
externalDocs:
  description: Fermion Docs
  url: https://docs.fermion.app
paths:
  /public/get-all-quiz-submissions:
    post:
      tags:
        - Quiz
        - Course
        - Product
      summary: 'Get course quiz submissions '
      description: >-
        Get all quiz submissions for a course product, grouped by quiz. Returns
        question-wise breakdown with scores.


        Authentication with the "FERMION-API-KEY" header is required to use this
        endpoint.


        Rate limit: Maximum 60 requests in a window of 1m.
      requestBody:
        description: API Request Body
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                data:
                  type: array
                  items:
                    type: object
                    properties:
                      data:
                        type: object
                        properties:
                          courseIdentifier:
                            anyOf:
                              - type: object
                                properties:
                                  type:
                                    type: string
                                    enum:
                                      - course-id
                                  digitalProductCourseId:
                                    type: string
                                    description: Course ID
                                required:
                                  - type
                                  - digitalProductCourseId
                              - type: object
                                properties:
                                  type:
                                    type: string
                                    enum:
                                      - course-slug
                                  courseSlug:
                                    type: string
                                    description: Course slug
                                required:
                                  - type
                                  - courseSlug
                        required:
                          - courseIdentifier
                    required:
                      - data
              required:
                - data
      responses:
        '200':
          description: API Response Body
          content:
            application/json:
              schema:
                type: array
                items:
                  type: object
                  properties:
                    output:
                      anyOf:
                        - type: object
                          properties:
                            status:
                              type: string
                              enum:
                                - ok
                            data:
                              type: object
                              properties:
                                productId:
                                  type: string
                                  description: ID of the product
                                productTitle:
                                  type: string
                                  description: Title of the product
                                quizzes:
                                  type: array
                                  items:
                                    type: object
                                    properties:
                                      quizId:
                                        type: string
                                        description: ID of the quiz
                                      quizTitle:
                                        type: string
                                        description: Title of the quiz
                                      totalQuestions:
                                        type: number
                                        description: Total number of questions in the quiz
                                      submissions:
                                        type: array
                                        items:
                                          type: object
                                          properties:
                                            fermionUserId:
                                              type: string
                                              description: ID of the user who submitted the quiz
                                            userEmail:
                                              anyOf:
                                                - type: string
                                                  format: email
                                                - nullable: true
                                                - nullable: true
                                              description: Email of the user. Null if not available
                                            userName:
                                              type: string
                                              description: Name of the user
                                            submittedAtIso:
                                              anyOf:
                                                - type: string
                                                  format: date-time
                                                - nullable: true
                                                - nullable: true
                                              description: >-
                                                Timestamp when the quiz was submitted.
                                                Null if not completed
                                            totalScore:
                                              type: number
                                              description: Total score achieved by the user
                                            maxScore:
                                              type: number
                                              description: Maximum possible score for the quiz
                                            questionBreakdown:
                                              type: array
                                              items:
                                                type: object
                                                properties:
                                                  questionId:
                                                    type: string
                                                    description: ID of the quiz question
                                                  questionText:
                                                    type: string
                                                    description: The question text/title
                                                  selectedAnswer:
                                                    type: array
                                                    items:
                                                      type: string
                                                    description: The answer(s) selected by the user
                                                  correctAnswer:
                                                    type: array
                                                    items:
                                                      type: string
                                                    description: The correct answer(s) for the question
                                                  isCorrect:
                                                    type: boolean
                                                    description: Whether the user answered correctly
                                                  pointsForQuestion:
                                                    type: number
                                                    description: Maximum points for this question
                                                  pointsEarned:
                                                    type: number
                                                    description: >-
                                                      Points earned by the user for this
                                                      question
                                                required:
                                                  - questionId
                                                  - questionText
                                                  - selectedAnswer
                                                  - correctAnswer
                                                  - isCorrect
                                                  - pointsForQuestion
                                                  - pointsEarned
                                              description: >-
                                                Detailed breakdown of each question and
                                                answer
                                          required:
                                            - fermionUserId
                                            - userEmail
                                            - userName
                                            - submittedAtIso
                                            - totalScore
                                            - maxScore
                                            - questionBreakdown
                                        description: Array of user submissions for this quiz
                                    required:
                                      - quizId
                                      - quizTitle
                                      - totalQuestions
                                      - submissions
                                  description: >-
                                    Array of quizzes in the course with their
                                    submissions
                              required:
                                - productId
                                - productTitle
                                - quizzes
                          required:
                            - status
                            - data
                        - type: object
                          properties:
                            status:
                              type: string
                              enum:
                                - error
                            errorMessage:
                              type: string
                          required:
                            - status
                            - errorMessage
                  required:
                    - output
      security:
        - FERMION-API-KEY: []
components:
  securitySchemes:
    FERMION-API-KEY:
      name: FERMION-API-KEY
      type: apiKey
      in: header

````