GET /api/v1/student/{studentId}/attempts

Retrieve all assessment attempts made by the student across assignments, CATs, and exams with detailed attempt information

Path parameters

  • studentId string Required

    Unique identifier of the student

Responses

  • 200 application/json

    Student attempts retrieved successfully

    Hide response attributes Show response attributes object
    • message string Required

      Success message

    • success boolean Required

      Success status

    • attempts array[object] Required

      Student attempts

      Hide attempts attributes Show attempts attributes object
      • id string Required

        Attempt ID

      • assessmentId string Required

        Assessment ID

      • assessmentTitle string Required

        Assessment title

      • assessmentType string Required

        Assessment type

      • startedAt string Required

        Started at

      • submittedAt string

        Submitted at

      • totalScore number

        Total score achieved

      • maxScore number Required

        Maximum possible score

      • percentage number

        Percentage score

      • status string Required

        Attempt status

  • 400 application/json

    Default bad request error 400 response

    Hide response attributes Show response attributes object
    • message string Required

      Response message

    • error string Required
    • statusCode number Required
  • 404

    Student not found

GET /api/v1/student/{studentId}/attempts
curl \
 --request GET 'https://api.echoplain.social/api/v1/student/uuid-string/attempts'
Response examples (200)
{
  "message": "string",
  "success": true,
  "attempts": [
    {
      "id": "uuid-string",
      "assessmentId": "uuid-string",
      "assessmentTitle": "Programming Assignment 1",
      "assessmentType": "assignment",
      "startedAt": "2025-10-10T14:30:00.000Z",
      "submittedAt": "2025-10-10T16:45:00.000Z",
      "totalScore": 85,
      "maxScore": 100,
      "percentage": 85,
      "status": "completed"
    }
  ]
}
Response examples (400)
{
  "message": "string",
  "error": "string",
  "statusCode": 42.0
}