RAID API
  1. Students
  • DiveRAID frontend public API
    • Search divers
      POST
    • Search instructors
      POST
    • Search dive centers
      POST
    • Search dive centers by country
      GET
  • DiveRAID rest API V1
    • Auth
      • Register a new user
      • Login and get a Sanctum token
      • Send password reset email
      • Reset password using token
      • Logout and revoke the current token
      • Resend email verification
      • Complete a two-factor login and get a Sanctum token
    • Profile
      • The user resource
      • Get authenticated user profile
      • Update profile
      • Register push token
      • Update password
      • Remove push token
      • Rotate exam unlock code
      • Delete account
      • Update dive center association
    • Diver
      • Shared diver resources
      • Courses
        • List active courses
        • Get exam result
        • Submit course exam
        • Sign skills (diver)
        • Get course detail
        • Submit module quiz
        • List expired courses
        • Get quiz result
        • Get skills progress
      • Free Learnings
        • List enrolled free learnings
        • Get free learning quiz result
        • List available free learning courses
        • Submit free learning module quiz
        • Get free learning detail
        • Enroll in a free learning course
      • Certifications
        • Get certification history
        • Get certification quiz result
        • Get certification exam result
        • Get certification skills
        • List diver certifications
      • Dive Logs
        • Delete dive log
        • Create dive log
        • Update dive log
        • List loggable courses
        • List dive logs (paginated)
        • Get dive log
      • Awards
        • List the recognition cards issued to the user
      • Documents
        • Upload own medical certificate or insurance
        • List own medical certificates and insurance
        • List diver documents
      • Forms
        • List diver forms
      • Medical
        • Get medical questionnaire structure
        • Submit medical questionnaire
      • Store
        • List courses available for purchase
        • Get order status
    • Professional
      • Students
        • List students
          GET
        • Get student progress
          GET
        • Sign student skills
          POST
        • Get student exam result
          GET
        • Get student quiz result
          GET
        • Get student skills progress
          GET
      • Certifications
        • Get certification history
        • Get certification quiz result
        • Get certification exam result
        • Get certification skills
        • List all professional certifications
        • List diver-level certifications
        • List examiner certifications
        • List professional certifications
        • List specialty certifications
        • List trainer certifications
      • Classroom
        • List classrooms
        • Get classroom progress (all students)
        • Get classroom student progress
        • Sign classroom student skills
        • Get classroom student exam result
        • Get classroom student quiz result
        • Get classroom student skills
      • Renewals
        • List renewal courses
        • Get renewal exam result
        • Submit renewal exam
        • Sign renewal skills
        • Renewal status
        • Get renewal progress
        • Submit renewal module quiz
        • Get renewal quiz result
        • Get renewal skills progress
      • Dive Logs
        • Get student dive log
        • Sign student dive log
        • List student dive logs for a course
    • Sync
      • Download full course data for offline use
      • Upload offline operations
      • Get sync status
    • Public
      • List all countries
      • Dive-log enum values with labels in the response language
      • Get country data
      • Get country divisions (states/provinces)
      • List time zone identifiers, optionally narrowed to one country
      • List, search, and radius-search publicly visible dive centres
      • Every publicly visible, geolocated dive centre as a map marker
      • Countries with at least one publicly visible dive centre
      • Full detail of one publicly visible dive centre
    • Library
      • List the RAID document library
      • List the current RAID standards
  • Schemas
    • Frontend API Schema
      • DiverSearch
    • SuccessResponse
    • DiverCertification
    • ValidationErrorResponse
    • TwoFactorChallengeResponse
    • TokenResponse
    • IssuedCertification
    • ErrorResponse
    • DiveLog
    • ExamResult
    • QuizResult
    • CourseLogDetail
    • CourseLog
    • UserProfile
    • SkillProgress
    • Certification
    • PaginatedDiveLogs
    • StoreItem
    • PaymentIntentResponse
    • OrderConfirmResponse
    • OrderStatusResponse
    • InstructorSearch
    • DiveCenterSearch
  1. Students

Get student progress

GET
https://test.diveraid.com/api/v1/professional/students/{log_code}
Professional / Students
Maintainer:Not configured

Overview#

Returns the whole progress of one student of the instructor in a single response: the student, the course, every quiz attempt, every exam attempt and every skill group of the course log. Served by StudentController::progress().
Controller: App\Http\Controllers\Api\V1\Professional\StudentController::progress()
Route name: api.v1.professional.students.progress

Authentication#

Type: Bearer Token (Sanctum)
Header: Authorization: Bearer {token}
Additional middleware: role:professional. A user without the professional role receives 403.

Request#

Method: GET
Path: /api/v1/professional/students/{log_code}

Path parameters#

ParameterTypeDescription
{log_code}string(32)Course log code, as returned by GET /api/v1/professional/students. Not a primary key
No query parameters, no body.

Example request#


Response 200 OK#

Captured live. The capture held 1 quiz, 1 exam and 1 skill group; the example keeps one question per attempt and two skills. Names, emails, ids and texts are examples.
{
  "success": true,
  "status": "success",
  "message": "OK",
  "data": {
    "log_code": "9d3f6a1b2c4e4f7a8b0c1d2e3f4a5b6c",
    "student": {
      "id": 700001,
      "raid_id": "IT26-300-003",
      "name": "Example Student",
      "email": "student@example.com"
    },
    "course": {
      "id": 301,
      "name": "Explorer 30"
    },
    "status": null,
    "start_date": null,
    "expire_date": "2019-04-09",
    "is_repetition": false,
    "repetition": null,
    "quizzes": [
      {
        "id": 910001,
        "log_code": "9d3f6a1b2c4e4f7a8b0c1d2e3f4a5b6c",
        "module_id": 801,
        "total": 10,
        "correct": 10,
        "wrong": 0,
        "score": 100,
        "passed": true,
        "date": "2018-10-27",
        "start": "2018-10-27 10:23:19",
        "end": "2018-10-27 10:25:25",
        "questions": [
          {
            "id": 6001,
            "text": "Example question?",
            "missing": false,
            "answers": [
              { "id": 24001, "text": "Example answer one", "is_correct": false, "selected": false },
              { "id": 24002, "text": "Example answer two", "is_correct": true, "selected": true }
            ]
          }
        ]
      }
    ],
    "exams": [
      {
        "id": 920001,
        "log_code": "9d3f6a1b2c4e4f7a8b0c1d2e3f4a5b6c",
        "total": 13,
        "correct": 11,
        "wrong": 2,
        "score": 84,
        "passed": true,
        "date": "2018-10-27",
        "start": "2018-10-27 21:22:32",
        "end": "2018-10-27 21:24:56",
        "questions": [
          {
            "id": 6002,
            "text": "Example question?",
            "missing": false,
            "answers": [
              { "id": 24003, "text": "Example answer one", "is_correct": true, "selected": true },
              { "id": 24004, "text": "Example answer two", "is_correct": false, "selected": false }
            ]
          }
        ]
      }
    ],
    "skills": [
      {
        "id": 930001,
        "log_code": "9d3f6a1b2c4e4f7a8b0c1d2e3f4a5b6c",
        "skill_type_id": 2,
        "skill_type_name": "Open Water",
        "user_completed": null,
        "start": "2025-04-02 18:07:13",
        "end": null,
        "skills": [
          {
            "id": 5001,
            "name": "Example skill one",
            "description": "Example skill description.",
            "diver_signed": false,
            "instructor_signed": false
          },
          {
            "id": 5002,
            "name": "Example skill two",
            "description": "Example skill description.<br />",
            "diver_signed": false,
            "instructor_signed": false
          }
        ]
      }
    ]
  }
}

Response fields#

FieldTypeNullableAlways presentDescription
data.log_codestring(32)NoYesCourse log code, echoing the path
data.student.idintegerNoYesUser id of the student
data.student.raid_idstringYesYesRAID ID of the student, public and immutable. null when the user no longer exists
data.student.namestringYesYesFull name of the student
data.student.emailstringYesYesEmail address of the student. The instructor receives it in clear
data.course.idintegerNoYesCourse id
data.course.namestringYesYesCourse name
data.statusTO VERIFYYesYesCourse log status. Only null was observed; the set of values was not captured
data.start_datestringYesYesYYYY-MM-DD. null in the capture
data.expire_datestringYesYesYYYY-MM-DD
data.is_repetitionbooleanNoYestrue when the course log repeats a non-certifying course the student already holds (ADR-0029). A repetition needs no quiz, exam or skills, and the write routes refuse them
data.repetitionobjectYesYesnull unless is_repetition is true
data.repetition.confirmed_atstringYesWhen repetition is setISO 8601, when the assigned instructor confirmed the in-water dive. null until confirmed
data.repetition.confirmed_byobjectYesWhen repetition is setid, full_name of the instructor who confirmed. null until confirmed
data.quizzesarrayNoYesOne entry per quiz attempt of the log_code, shaped as in GET /api/v1/professional/students/{log_code}/quiz/{quiz}. Empty ([]) when there is none
data.examsarrayNoYesOne entry per exam attempt, shaped as in GET /api/v1/professional/students/{log_code}/exam/{exam}. Empty ([]) when there is none
data.skillsarrayNoYesOne entry per skill group, a SkillProgressResource collection, shaped as in GET /api/v1/professional/students/{log_code}/skills
student.raid_id, student.name, student.email and course.name are null-safe reads in the controller: they are null when the user or the course record no longer exists. A null was not observed.

Errors#

401 Unauthorized#

{
  "success": false,
  "status": "error",
  "message": "Unauthenticated"
}
message is Token expired or Invalid token when a bearer token was sent but is expired or unknown.

403 Forbidden#

Returned in two cases: the authenticated user does not have the professional role (role:professional middleware, body not captured), or no course log with that log_code has the caller as instructor, or that log_code does not exist. The second case uses the standard envelope:
{
  "success": false,
  "status": "error",
  "message": "Forbidden"
}

429 Too Many Requests#

The route sits behind the API rate limiter; the live responses carried x-ratelimit-limit: 120. The body is the standard envelope with message: "Too many requests" and a Retry-After header.

Notes#

Read-only, no side effects.
An unknown log_code answers 403, exactly like a log_code owned by another instructor: the endpoint does not tell the two apart, and never answers 404.
Returns the student's email address to the instructor.
Reveals every answer's is_correct flag alongside selected, for every quiz and exam attempt.
The id of each quiz and exam is the {quiz} and {exam} parameter of the two detail routes.

Source: docs/api/professional/students/GET_progress.md

Request

Authorization
JWT Bearer
Add the parameter
Authorization
to Headers
Example:
Authorization: ********************
or
Path Params

Responses

🟢200
application/json
Success
Bodyapplication/json

🟠401
🟠403
🟠429
Request Request Example
Shell
JavaScript
Java
Swift
curl --location 'https://test.diveraid.com/api/v1/professional/students/' \
--header 'Authorization: Bearer <token>'
Response Response Example
200 - Example 1
{
    "status": "success",
    "message": "string",
    "data": {
        "log_code": "string",
        "student": {
            "id": 0,
            "raid_id": "string",
            "name": "string",
            "email": "string"
        },
        "course": {
            "id": 0,
            "name": "string"
        },
        "status": "string",
        "start_date": "2019-08-24",
        "expire_date": "2019-08-24",
        "is_repetition": true,
        "repetition": {
            "confirmed_at": "2019-08-24T14:15:22.123Z",
            "confirmed_by": {
                "id": 0,
                "full_name": "string"
            }
        },
        "quizzes": [
            {
                "id": 0,
                "log_code": "string",
                "module_id": 0,
                "total": 0,
                "correct": 0,
                "wrong": 0,
                "score": 0,
                "passed": true,
                "date": "2019-08-24",
                "start": "2019-08-24T14:15:22.123Z",
                "end": "2019-08-24T14:15:22.123Z",
                "questions": [
                    {
                        "id": 0,
                        "text": "string",
                        "missing": true,
                        "answers": [
                            {
                                "id": 0,
                                "text": "string",
                                "is_correct": true,
                                "selected": true
                            }
                        ]
                    }
                ]
            }
        ],
        "exams": [
            {
                "id": 0,
                "log_code": "string",
                "total": 0,
                "correct": 0,
                "wrong": 0,
                "score": 0,
                "passed": true,
                "date": "2019-08-24",
                "start": "2019-08-24T14:15:22.123Z",
                "end": "2019-08-24T14:15:22.123Z",
                "questions": [
                    {
                        "id": 0,
                        "text": "string",
                        "missing": true,
                        "answers": [
                            {
                                "id": 0,
                                "text": "string",
                                "is_correct": true,
                                "selected": true
                            }
                        ]
                    }
                ]
            }
        ],
        "skills": [
            {
                "id": 0,
                "log_code": "string",
                "skill_type_id": 0,
                "skill_type_name": "string",
                "user_completed": true,
                "start": "2019-08-24T14:15:22.123Z",
                "end": "2019-08-24T14:15:22.123Z",
                "skills": [
                    {
                        "id": 0,
                        "name": "string",
                        "description": "string",
                        "diver_signed": true,
                        "instructor_signed": true
                    }
                ]
            }
        ]
    }
}
Modified at 2026-12-04 08:05:13
Previous
List students
Next
Sign student skills
Built with