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

List students

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

Overview#

Lists every course log on which the authenticated professional is the instructor (course_logs.instructor_id), one entry per student enrollment. It is the entry point of the students area: the log_code of each entry is the {log_code} parameter of every other students route. Served by StudentController::index().
Controller: App\Http\Controllers\Api\V1\Professional\StudentController::index()
Route name: api.v1.professional.students.index

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
No path parameters, no query parameters, no body. The list is not paginated and cannot be filtered: every course log whose instructor_id is the caller is returned in one response, whatever the course or the status.

Example request#


Response 200 OK#

Captured live for an instructor with 88 course logs (all in a classroom) and for a second instructor with 37, 17 of them without a classroom. The example keeps one entry of each kind. Names, RAID IDs and ids are examples.
{
  "success": true,
  "status": "success",
  "message": "OK",
  "data": [
    {
      "log_code": "9d3f6a1b2c4e4f7a8b0c1d2e3f4a5b6c",
      "student_id": 700001,
      "student_name": "Example Student",
      "student_raid_id": "IT26-300-003",
      "course_id": 301,
      "course_name": "Explorer 30",
      "status": null,
      "start_date": null,
      "expire_date": "2019-04-09",
      "is_repetition": false,
      "repetition": null,
      "team_leader": {
        "id": 700002,
        "raid_id": "IT26-200-002",
        "full_name": "Example Team Leader"
      }
    },
    {
      "log_code": "0a1b2c3d4e5f60718293a4b5c6d7e8f9",
      "student_id": 700003,
      "student_name": "Another Student",
      "student_raid_id": "IT26-400-004",
      "course_id": 301,
      "course_name": "Explorer 30",
      "status": null,
      "start_date": null,
      "expire_date": "2019-06-01",
      "is_repetition": false,
      "repetition": null,
      "team_leader": null
    }
  ]
}

Response fields#

data is a plain array. It is empty ([]) when the caller is the instructor of no course log.
FieldTypeNullableAlways presentDescription
data[].log_codestring(32)NoYesOpaque course log code. Not a primary key. Pass it to the students/{log_code} routes
data[].student_idintegerNoYesUser id of the student
data[].student_namestringYesYesFull name of the student. null when the user no longer exists
data[].student_raid_idstringYesYesRAID ID of the student, public and immutable. null when the user no longer exists (the column itself is nullable)
data[].course_idintegerNoYesCourse id
data[].course_namestringYesYesCourse name. null when the course no longer exists
data[].statusTO VERIFYYesYesCourse log status. null on all 17 entries of the capture; the set of values was not captured
data[].start_datestringYesYesYYYY-MM-DD. null on all 17 entries of 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[].team_leaderobjectYesYesThe instructor of the classroom the course log belongs to. null when the course log is not in a classroom, or when that instructor no longer exists
data[].team_leader.idintegerNoWhen team_leader is setUser id of the team leader
data[].team_leader.raid_idstringYesWhen team_leader is setRAID ID of the team leader
data[].team_leader.full_namestringNoWhen team_leader is setFull name of the team leader
The nullability of student_name and course_name comes from the controller source (null-safe access); 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 when the authenticated user does not have the professional role (role:professional middleware). Body not captured.

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.
The team leader is the instructor of the classroom (classrooms.instructor_id), not necessarily the instructor of the course log (course_logs.instructor_id, which is the caller here). On the development database 4 course logs have a classroom run by a different instructor than their own.
Not paginated: the response grows with the number of course logs of the instructor and has no upper bound.
Unlike GET /api/v1/professional/classroom, the list is keyed on the course log's own instructor_id, not on classrooms.

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

Request

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

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,
            "student_name": "string",
            "student_raid_id": "string",
            "course_id": 0,
            "course_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"
                }
            },
            "team_leader": {
                "id": 0,
                "raid_id": "string",
                "full_name": "string"
            }
        }
    ]
}
Modified at 2026-10-23 14:39:03
Previous
Get order status
Next
Get student progress
Built with