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

# Get a graded assignment by ID



## OpenAPI

````yaml /openapi-components.json get /api/v1/assignment-grader/get/{id}
openapi: 3.0.0
info:
  title: StudyFetch API
  description: API documentation for StudyFetch
  version: '1.0'
  contact: {}
servers:
  - url: https://studyfetchapi.com
    description: Production API Server
security: []
tags: []
paths:
  /api/v1/assignment-grader/get/{id}:
    get:
      tags:
        - Assignment Grader
      summary: Get a graded assignment by ID
      operationId: getAssignmentGrader
      parameters:
        - name: id
          required: true
          in: path
          description: Assignment grader document ID
          schema:
            type: string
      responses:
        '200':
          description: Assignment grader retrieved
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AssignmentGraderResponseDto'
        '401':
          description: Missing or invalid authentication
        '404':
          description: Assignment not found in your organization
      security:
        - x-api-key: []
        - bearerAuth: []
components:
  schemas:
    AssignmentGraderResponseDto:
      type: object
      properties:
        _id:
          type: string
          description: Assignment grader ID
        title:
          type: string
          description: Assignment title
        grade:
          type: number
          description: Overall percentage (0-100), rounded to nearest whole number
        rubric:
          description: Grading results with per-criterion scores and feedback
          allOf:
            - $ref: '#/components/schemas/GradedRubricDto'
        organizationId:
          type: string
          description: Owning organization ID
        userId:
          type: string
          nullable: true
          description: User who triggered the grading (null for API-key auth)
        materialId:
          type: string
          description: Material that was graded (mutually exclusive with textToGrade)
        textToGrade:
          type: string
          description: Raw text that was graded
        rubricTemplateId:
          type: string
          description: Rubric template used (if any)
        assignmentId:
          type: string
          description: Grouping tag for educator reports
        studentIdentifier:
          type: string
          description: Student email or ID
        assignmentContent:
          type: string
          description: Source material the AI used as the authoritative reference
        createdAt:
          format: date-time
          type: string
          description: Creation timestamp
        updatedAt:
          format: date-time
          type: string
          description: Update timestamp
        __v:
          type: number
          description: Mongoose version key
      required:
        - _id
        - title
        - grade
        - rubric
        - organizationId
        - createdAt
        - updatedAt
        - __v
    GradedRubricDto:
      type: object
      properties:
        attemptFeedback:
          type: string
          description: Holistic feedback for the entire submission
        criteria:
          type: array
          description: Per-criterion grading results
          items:
            $ref: '#/components/schemas/GradedRubricCriterionDto'
      required:
        - attemptFeedback
        - criteria
    GradedRubricCriterionDto:
      type: object
      properties:
        title:
          type: string
          description: Criterion title (mirrors the input)
        description:
          type: string
          description: Criterion description (mirrors the input)
        pointsAwarded:
          type: number
          description: Points the AI awarded for this criterion
        pointsPossible:
          type: number
          description: Maximum points for this criterion
        feedback:
          type: string
          description: Per-criterion feedback addressed to the student
      required:
        - title
        - pointsAwarded
        - pointsPossible
        - feedback
  securitySchemes:
    x-api-key:
      type: apiKey
      in: header
      name: x-api-key
      description: >-
        API Key for server-to-server authentication. Resolves to the owning
        organization.
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT
      description: >-
        JWT bearer token for user session authentication. Resolves to both
        organization and user.

````