Skip to main content
https://.thoughtindustries.com

AssessmentAttempts

Returns a paginated list of assessment attempts across your platform, optionally filtered by date range, course, or user

Returns a paginated list of assessment attempts across your platform, optionally filtered by date range, course, or user.

GEThttps://example.thoughtindustries.com/incoming/v2/assessmentAttempts

Example request

curl "https://example.thoughtindustries.com/incoming/v2/assessmentAttempts" \
  -H 'Authorization: Bearer YOUR_API_KEY'

Parameters

NameTypeRequiredLocationDescription
cursorstringNoqueryOpaque pagination cursor returned by a previous response; use to fetch the next page of results.
startDateepoch millisecondsNoqueryFilters results to attempts created at or after this Unix timestamp, in milliseconds.
endDateepoch millisecondsNoqueryFilters results to attempts created at or before this Unix timestamp, in milliseconds.
courseIduuidNoqueryFilters results to attempts belonging to the specified course.
userIduuidNoqueryFilters results to attempts belonging to the specified user.
perPageintegerNoqueryNumber of assessment attempts to return per page.

Example response

{
  "pageInfo": {
    "hasMore": true,
    "cursor": "string",
    "perPage": 0
  },
  "assessmentAttempts": [
    {
      "id": "00000000-0000-0000-0000-000000000000",
      "courseId": "00000000-0000-0000-0000-000000000000",
      "course": {
        "id": "00000000-0000-0000-0000-000000000000",
        "title": "string"
      },
      "createdAt": "2024-01-01T00:00:00.000Z",
      "updatedAt": "2024-01-01T00:00:00.000Z",
      "grade": 0,
      "passed": true,
      "answers": [
        {
          "id": "00000000-0000-0000-0000-000000000000",
          "question": "string",
          "answer": "string",
          "correct": true
        }
      ],
      "status": "string",
      "timeElapsedInSeconds": 0,
      "assessment": {
        "id": "00000000-0000-0000-0000-000000000000",
        "type": "string",
        "title": "string"
      },
      "user": {
        "id": "00000000-0000-0000-0000-000000000000",
        "email": "string",
        "firstName": "string",
        "lastName": "string",
        "clientId": "00000000-0000-0000-0000-000000000000",
        "ref1": "string",
        "ref2": "string",
        "ref3": "string",
        "ref4": "string",
        "ref5": "string",
        "ref6": "string",
        "ref7": "string",
        "ref8": "string",
        "ref9": "string",
        "ref10": "string"
      }
    }
  ]
}

Response fields

FieldTypeDescription
pageInfoCursorPageInfoPagination metadata for the current result set.
pageInfo.hasMorebooleanIndicates whether additional pages of results are available.
pageInfo.cursorstringOpaque cursor to pass in the next request to retrieve the following page.
pageInfo.perPageintegerNumber of items returned per page.
assessmentAttemptsAssessmentAttempt[]Array of assessment attempts matching the query.
assessmentAttempts.iduuidUnique identifier of the assessment attempt.
assessmentAttempts.courseIduuidIdentifier of the course the assessment belongs to.
assessmentAttempts.courseCourseCourse the assessment attempt belongs to.
assessmentAttempts.course.iduuidUnique identifier of the course.
assessmentAttempts.course.titlestringTitle of the course.
assessmentAttempts.createdAtISO 8601 timestampDate and time the attempt was created.
assessmentAttempts.updatedAtISO 8601 timestampDate and time the attempt was last modified.
assessmentAttempts.gradeintegerGrade recorded for the attempt.
assessmentAttempts.passedbooleanIndicates whether the attempt passed.
assessmentAttempts.answersAssessmentAnswer[]Array of answers submitted for the attempt.
assessmentAttempts.answers.iduuidUnique identifier of the answer.
assessmentAttempts.answers.questionstringThe question text.
assessmentAttempts.answers.answerstringThe submitted answer.
assessmentAttempts.answers.correctbooleanIndicates whether the answer was graded correct.
assessmentAttempts.statusstringCurrent status of the assessment attempt.
assessmentAttempts.timeElapsedInSecondsintegerTime spent on the attempt, in seconds.
assessmentAttempts.assessmentAssessmentAssessment the attempt belongs to.
assessmentAttempts.assessment.iduuidUnique identifier of the assessment.
assessmentAttempts.assessment.typestringType of the assessment.
assessmentAttempts.assessment.titlestringTitle of the assessment.
assessmentAttempts.userUserUser who made the attempt.
assessmentAttempts.user.iduuidUnique identifier of the user.
assessmentAttempts.user.emailstringEmail address of the user.
assessmentAttempts.user.firstNamestringFirst name of the user.
assessmentAttempts.user.lastNamestringLast name of the user.
assessmentAttempts.user.clientIduuidIdentifier of the client the user belongs to.
assessmentAttempts.user.ref1stringCustom reference field 1 associated with the user.
assessmentAttempts.user.ref2stringCustom reference field 2 associated with the user.
assessmentAttempts.user.ref3stringCustom reference field 3 associated with the user.
assessmentAttempts.user.ref4stringCustom reference field 4 associated with the user.
assessmentAttempts.user.ref5stringCustom reference field 5 associated with the user.
assessmentAttempts.user.ref6stringCustom reference field 6 associated with the user.
assessmentAttempts.user.ref7stringCustom reference field 7 associated with the user.
assessmentAttempts.user.ref8stringCustom reference field 8 associated with the user.
assessmentAttempts.user.ref9stringCustom reference field 9 associated with the user.
assessmentAttempts.user.ref10stringCustom reference field 10 associated with the user.