> ## 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 assignment submissions 

> Get all submissions for an assignment. Returns user email, submission timestamps, file URLs, and text input values.

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-assignment-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-assignment-submissions:
    post:
      tags:
        - Course
        - Product
      summary: 'Get assignment submissions '
      description: >-
        Get all submissions for an assignment. Returns user email, submission
        timestamps, file URLs, and text input values.


        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:
                          assignmentId:
                            type: string
                            description: ID of the assignment
                        required:
                          - assignmentId
                    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:
                                assignmentId:
                                  type: string
                                  description: ID of the assignment
                                assignmentTitle:
                                  type: string
                                  description: Title of the assignment
                                totalSubmissionCount:
                                  type: number
                                  description: Total number of users who submitted
                                userSubmissions:
                                  type: array
                                  items:
                                    type: object
                                    properties:
                                      fermionUserId:
                                        type: string
                                        description: ID of the user
                                      userName:
                                        type: string
                                        description: Name of the user
                                      userEmail:
                                        anyOf:
                                          - type: string
                                            format: email
                                          - nullable: true
                                          - nullable: true
                                        description: >-
                                          Email of the submitting user. Null if
                                          not available
                                      submissions:
                                        type: array
                                        items:
                                          type: object
                                          properties:
                                            submissionMadeAtIso:
                                              type: string
                                              format: date-time
                                              description: Timestamp when this submission was made
                                            fileUrls:
                                              type: array
                                              items:
                                                type: string
                                                format: uri
                                              description: Presigned URLs for uploaded files
                                            textInputValues:
                                              type: array
                                              items:
                                                type: object
                                                properties:
                                                  label:
                                                    type: string
                                                    description: Text input question/label
                                                  value:
                                                    type: string
                                                    description: Text input answer/value
                                                required:
                                                  - label
                                                  - value
                                              description: Text input submissions
                                          required:
                                            - submissionMadeAtIso
                                            - fileUrls
                                            - textInputValues
                                        description: >-
                                          Array of submissions (multiple if
                                          resubmissions are allowed)
                                    required:
                                      - fermionUserId
                                      - userName
                                      - userEmail
                                      - submissions
                                  description: Submissions grouped by user
                              required:
                                - assignmentId
                                - assignmentTitle
                                - totalSubmissionCount
                                - userSubmissions
                          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

````