RAID API
  1. Courses
  • 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
        • Get exam result
          GET
        • Submit course exam
          POST
        • Sign skills (diver)
          POST
        • Get course detail
          GET
        • Submit module quiz
          POST
        • List expired courses
          GET
        • Get quiz result
          GET
        • Get skills progress
          GET
      • 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 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. Courses

Get course detail

GET
https://test.diveraid.com/api/v1/diver/courses/{log_code}
Diver / Courses
Maintainer:Not configured

Overview#

Returns one enrolment in full: the course, the modules with each module's latest quiz attempt, the latest exam attempt, and a count of skills signed.
Controller: App\Http\Controllers\Api\V1\Diver\CourseController::show()
Route name: api.v1.diver.courses.show

Authentication#

Type: Bearer Token
Header: Authorization: Bearer {token}
Ownership is enforced in the controller: the enrolment is resolved by log_code and the authenticated user id, so another diver's log_code yields 404, not 403.

Request#

Method: GET
Path: /api/v1/diver/courses/{log_code}

Path parameters#

ParameterTypeDescription
log_codestring(32)Opaque enrolment code from GET /api/v1/diver/courses. Not a primary key, and resolved manually rather than by route-model binding

Example request#


Response 200 OK#

Captured live, abbreviated to one module.
{
  "success": true,
  "status": "success",
  "message": "OK",
  "data": {
    "log_code": "a6b952760c2b672d2f45da6989b1a8c1",
    "course": {
      "id": 130,
      "name": "Oxygen Administration",
      "group": "recreational",
      "need_quiz": true,
      "need_exam": true,
      "need_skills": true
    },
    "instructor": null,
    "dive_center": {
      "id": 308,
      "name": "Simply Sidemount & Simply Tec Ltd"
    },
    "purchase_date": "2018-06-02",
    "expire_date": "2019-06-02",
    "quiz_lock": true,
    "admin_lock": true,
    "exam_enable": false,
    "exam_unlock_hash": null,
    "modules": [
      {
        "id": 463,
        "name": "Management",
        "quiz_questions": 10,
        "quiz_minimum": 8,
        "manual_url": "https://example.com/modules/463_course/manual-en.pdf",
        "quiz_status": {
          "passed": false,
          "score": 30,
          "date": "2026-09-17"
        }
      }
    ],
    "exam_status": {
      "passed": true,
      "score": 93,
      "date": "2018-02-11"
    },
    "skills_count": {
      "total": 10,
      "signed": 0
    },
    "is_completed": false
  }
}

Response fields#

The enrolment fields match GET /api/v1/diver/courses. The additions:
FieldTypeNullableAlways presentDescription
data.instructorobjectYesYesid, full_name of the instructor, null without one
data.exam_unlock_hashstringYesYessha256(unlock code) of the instructor, lowercase hex. null without an instructor and for a free learning. See the Offline exam unlock section of GET /api/v1/sync/download
data.modules[].idintegerNoYesModule id. Send it to the quiz endpoints
data.modules[].namestringNoYes
data.modules[].quiz_questionsintegerYesYesHow many questions the quiz draws
data.modules[].quiz_minimumintegerYesYesScore needed to pass
data.modules[].manual_urlstringYesYesAbsolute URL of the module manual (PDF) in the request locale. null when the module has no manual
data.modules[].quiz_statusobjectYesYesThe latest attempt only: {passed, score, date}. null when never attempted
data.exam_statusobjectYesYesThe latest exam attempt: {passed, score, date}. null when never attempted
data.skills_count.totalintegerNoYesSkills in the enrolment's skill logs
data.skills_count.signedintegerNoYesOf those, signed by the diver
quiz_status and exam_status show only the most recent attempt. There is no attempt history in this payload; use the quiz and exam result endpoints for that.

Errors#

401 Unauthorized#

Standard shape. message is one of Unauthenticated, Invalid token, Token expired.

404 Not Found#

No enrolment with that log_code for this diver. Because the lookup is manual rather than route-model bound, the message does not include the looked-up value.

Notes#

Read-only, no side effects.
skills_count.total counts the keys present in the skill logs' user_skills maps, which is the number of skills frozen for that enrolment at its course version. It is not the count of skills in the current catalogue version of the course.
The same resource serves GET /api/v1/diver/free-learnings/{log_code}, where exam_status and skills_count are null by design.

Source: docs/api/diver/courses/GET_show.md

Request

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

Responses

🟢200
application/json
Success
Bodyapplication/json

🟠401
🟠404
Request Request Example
Shell
JavaScript
Java
Swift
curl --location 'https://test.diveraid.com/api/v1/diver/courses/' \
--header 'Authorization: Bearer <token>'
Response Response Example
200 - Example 1
{
    "status": "success",
    "message": "string",
    "data": {
        "log_code": "string",
        "course": {
            "id": 0,
            "name": "string",
            "group": "string",
            "need_quiz": true,
            "need_exam": true,
            "need_skills": true
        },
        "instructor": {
            "id": 0,
            "full_name": "string"
        },
        "dive_center": {
            "id": 0,
            "name": "string"
        },
        "purchase_date": "2019-08-24",
        "expire_date": "2019-08-24",
        "quiz_lock": true,
        "admin_lock": true,
        "exam_enable": true,
        "is_completed": true,
        "is_repetition": true,
        "repetition": {
            "confirmed_at": "2019-08-24T14:15:22.123Z",
            "confirmed_by": {
                "id": 0,
                "full_name": "string"
            }
        },
        "exam_unlock_hash": "string",
        "modules": [
            {
                "id": 0,
                "name": "string",
                "quiz_questions": 0,
                "quiz_minimum": 0,
                "manual_url": "string",
                "quiz_status": {
                    "passed": true,
                    "score": 0,
                    "date": "2019-08-24"
                }
            }
        ],
        "exam_status": {
            "passed": true,
            "score": 0,
            "date": "2019-08-24"
        },
        "skills_count": {
            "total": 0,
            "signed": 0
        }
    }
}
Modified at 2026-11-05 11:58:43
Previous
Sign skills (diver)
Next
Submit module quiz
Built with