Skip to main content

Get My Attempts

GET /v1/attempts
Returns the current user’s attempt counts across all case studies. Use this to show remaining attempts before a student starts a new session.

Authentication

Requires a valid access token (any role).

Example request

curl https://mind-be.staging.miva.university/v1/attempts \
  -H "Authorization: Bearer <access_token>"

Response

{
  "success": true,
  "data": [
    {
      "content_type_id": "case_study",
      "content_id": "6650e5f6a7b8c9d0e1f2a3b4",
      "attempt_count": 2,
      "max_attempts": 3,
      "last_attempt_at": "2025-06-01T14:25:00Z"
    },
    {
      "content_type_id": "case_study",
      "content_id": "6650e5f6a7b8c9d0e1f2a4b5",
      "attempt_count": 0,
      "max_attempts": 3,
      "last_attempt_at": null
    }
  ],
  "message": null
}

Response fields

FieldTypeDescription
content_type_idstringAlways "case_study"
content_idstringThe case study ID
attempt_countintegerNumber of counted attempts for that case study
max_attemptsintegerMaximum allowed attempts for that case study. Current default is 3 unless configured otherwise in stored data.
last_attempt_atdatetime | nullTimestamp of the most recent attempt
An attempt is counted once the live conversation passes 60 seconds. Short or accidental sessions don’t consume attempts. Attempts are counted by the live session worker, not by grading.