RAID API
  1. Classroom
  • 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 student progress
        • Sign student skills
        • Get student exam result
        • Get student quiz result
        • Get student skills progress
      • 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
        • Get classroom progress (all students)
          GET
        • Get classroom student progress
          GET
        • Sign classroom student skills
          POST
        • Get classroom student exam result
          GET
        • Get classroom student quiz result
          GET
        • Get classroom student skills
          GET
      • 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. Classroom

Get classroom progress (all students)

GET
https://test.diveraid.com/api/v1/professional/classroom/{classroom}
Professional / Classroom
Maintainer:Not configured

Overview#

Returns one of the instructor's classrooms with the list of its students. For each student it gives the log_code that every students/{log_code} route of the classroom area takes. Served by ClassroomController::progress().
Controller: App\Http\Controllers\Api\V1\Professional\ClassroomController::progress()
Route name: api.v1.professional.classroom.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/classroom/{classroom}

Path parameters#

ParameterTypeDescription
{classroom}integerClassroom id, as returned by GET /api/v1/professional/classroom. Bound by route-model binding
No query parameters, no body.

Example request#


Response 200 OK#

Captured live, except progress, which is the body tests/Api/Professional/ClassroomProgressSummaryTest.php asserts in its first case. Names, emails and ids are examples.
{
  "success": true,
  "status": "success",
  "message": "OK",
  "data": {
    "classroom": {
      "id": 4001,
      "name": "CAVERN DIVER @ 2025-01-10",
      "course": "Cavern"
    },
    "students": [
      {
        "log_code": "5b8e2f0a9c1d4e7a83b6c2d1e0f49a37",
        "student_id": 700001,
        "student_name": "Example Student",
        "student_raid_id": "IT26-300-003",
        "status": null,
        "expire_date": "2025-07-10",
        "is_repetition": false,
        "repetition": null,
        "progress": {
          "quiz": {
            "completed": 2,
            "required": 3,
            "percent": 66.67,
            "complete": false,
            "locked": false
          },
          "exam": {
            "passed": false,
            "score": null,
            "enabled": false,
            "admin_lock": false
          },
          "skills": {
            "total": 4,
            "percent": 50,
            "complete": false
          }
        }
      }
    ]
  }
}

Response fields#

FieldTypeNullableAlways presentDescription
data.classroom.idintegerNoYesClassroom id
data.classroom.namestringNoYesClassroom name
data.classroom.coursestringYesYesCourse name, a plain string here, not the {id, name} object of the list. null when the course no longer exists
data.studentsarrayNoYesOne entry per course log of the classroom. Empty ([]) when nobody is enrolled
data.students[].log_codestring(32)NoYesOpaque course log code. Not a primary key. Pass it to the students/{log_code} routes
data.students[].student_idintegerNoYesUser id of the student
data.students[].student_namestringYesYesFull name of the student. null when the user no longer exists
data.students[].student_raid_idstringYesYesRAID ID of the student, public and immutable. null when the user no longer exists
data.students[].statusTO VERIFYYesYesCourse log status. Only null was observed; the set of values was not captured
data.students[].expire_datestringYesYesCourse log expiry date, YYYY-MM-DD
data.students[].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.students[].repetitionobjectYesYesnull unless is_repetition is true
data.students[].repetition.confirmed_atstringYesWhen repetition is setISO 8601, when the assigned instructor confirmed the in-water dive. null until confirmed
data.students[].repetition.confirmed_byobjectYesWhen repetition is setid, full_name of the instructor who confirmed. null until confirmed
data.students[].progressobjectNoYesProgress summary of the student, the same values as the website classroom row. Last key of the item. A repetition gets the same summary: is_repetition tells the app what applies
data.students[].progress.quiz.completedintegerNoYesQuiz modules completed
data.students[].progress.quiz.requiredintegerNoYesQuiz modules required by the course
data.students[].progress.quiz.percentnumberNoYescompleted / required * 100, 2 decimals; 0 when the course has no modules. A whole number is sent without a fraction (50, 100)
data.students[].progress.quiz.completebooleanNoYestrue when completed >= required
data.students[].progress.quiz.lockedbooleanNoYestrue when the quiz is locked
data.students[].progress.exam.passedbooleanNoYestrue when at least one exam is passed
data.students[].progress.exam.scorenumberYesYesScore of the latest passed exam. null when no exam is passed. A whole number is sent without a fraction (85)
data.students[].progress.exam.enabledbooleanNoYestrue when the exam is enabled for the student
data.students[].progress.exam.admin_lockbooleanNoYestrue when the exam is locked by an administrator
data.students[].progress.skills.totalintegerNoYesSkills in the skill trace of the course log
data.students[].progress.skills.percentnumberNoYes(signatures / 2) * 100 / total, 2 decimals; 0 when there are no skills. Signatures count the skills signed by the diver plus the skills signed by the instructor, so a skill signed by the diver only counts as half. A whole number is sent without a fraction (100)
data.students[].progress.skills.completebooleanNoYestrue when total > 0 and every skill is signed by both the diver and the instructor

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 the classroom exists but belongs to another instructor. The second case uses the standard envelope:
{
  "success": false,
  "status": "error",
  "message": "Forbidden"
}

404 Not Found#

A {classroom} id that does not exist returns 404 from route-model binding, before the controller runs. The body was not captured for this route.

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.
Unlike the students/{log_code} routes, an unknown classroom id answers 404, while a classroom of another instructor answers 403: the endpoint tells the two apart.
Each student carries a progress summary (quiz, exam, skills) computed with the website rules, so the app no longer needs one call per student for the list. The per-student routes remain for the detail: for quizzes, exams and skills of one student use GET /api/v1/professional/classroom/students/{log_code}.
The list still includes course logs whose expire_date has passed.

Source: docs/api/professional/classroom/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
🟠404
🟠429
Request Request Example
Shell
JavaScript
Java
Swift
curl --location 'https://test.diveraid.com/api/v1/professional/classroom/' \
--header 'Authorization: Bearer <token>'
Response Response Example
200 - Example 1
{
    "status": "success",
    "message": "string",
    "data": {
        "classroom": {
            "id": 0,
            "name": "string",
            "course": "string"
        },
        "students": [
            {
                "log_code": "string",
                "student_id": 0,
                "student_name": "string",
                "student_raid_id": "string",
                "status": "string",
                "expire_date": "2019-08-24",
                "is_repetition": true,
                "repetition": {
                    "confirmed_at": "2019-08-24T14:15:22.123Z",
                    "confirmed_by": {
                        "id": 0,
                        "full_name": "string"
                    }
                },
                "progress": {
                    "quiz": {
                        "completed": 0,
                        "required": 0,
                        "percent": 0,
                        "complete": true,
                        "locked": true
                    },
                    "exam": {
                        "passed": true,
                        "score": 0,
                        "enabled": true,
                        "admin_lock": true
                    },
                    "skills": {
                        "total": 0,
                        "percent": 0,
                        "complete": true
                    }
                }
            }
        ]
    }
}
Modified at 2026-11-05 15:22:16
Previous
List classrooms
Next
Get classroom student progress
Built with