RAID API
  1. Certifications
  • 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
        • Get certification quiz result
          GET
        • Get certification exam result
          GET
        • Get certification skills
          GET
        • List all professional certifications
          GET
        • List diver-level certifications
          GET
        • List examiner certifications
          GET
        • List professional certifications
          GET
        • List specialty certifications
          GET
        • List trainer certifications
          GET
      • 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. Certifications

Get certification history

GET
https://test.diveraid.com/api/v1/professional/certifications/{log_code}/history
Professional / Certifications
Maintainer:Not configured

Overview#

Returns the training history for a certification log_code, from the point of view of the instructor who issued it: the certifications the caller issued under that log_code, every quiz attempt, every exam attempt, and every skill progress entry. Served by CertificationController::history().
{log_code} is a plain string, not route-model-bound: the controller queries Certification::where('log_code', $log_code). A log_code no certification carries returns 404. If none of the certifications with that log_code was issued by auth()->id(), 403.
A log_code carries more than one certification when the student has leveled up: one certification per level reached, all sharing the same log_code, possibly issued by different instructors. certifications holds only the ones the caller issued, ordered by the level's sort then by certification_date. Quizzes, exams and skill logs are read by log_code and are not filtered by instructor (see Notes).
Controller: App\Http\Controllers\Api\V1\Professional\CertificationController::history()
Route name: api.v1.professional.certifications.history

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/certifications/{log_code}/history

Path parameters#

ParameterTypeDescription
{log_code}string(32)Certification log code, as returned by GET /api/v1/professional/certifications. Not a primary key.

Example request#


Response 200 OK#

Captured live: a log_code with 1 certification, 2 quizzes, 1 exam and 1 skill log. Abbreviated to 1 question per quiz and exam and 1 skill per skill log. The two certifications below are illustrative: they show a log_code that reached two levels, both issued by the caller. Names and ids are examples.
{
  "success": true,
  "status": "success",
  "message": "OK",
  "data": {
    "certifications": [
      {
        "resource": "Certification",
        "data": {
          "log_code": "5b0c7e2a91d34f6e8a1c2d3e4f506172",
          "course": "Example Advanced Course",
          "course_level": "Example Level 1",
          "distributor": "Example Distributor",
          "dive_center": "Example Dive Center",
          "instructor": "Example Instructor",
          "order_id": null,
          "is_associated": false,
          "associated_log": null,
          "is_renewed": 0,
          "will_expire": false,
          "expire_date": null,
          "is_crossover": false,
          "leveling_up": false,
          "leveling_up_from": null,
          "leveling_id": null,
          "is_upgrade": false,
          "upgrade_course": null,
          "previous_certification": null
        }
      },
      {
        "resource": "Certification",
        "data": {
          "log_code": "5b0c7e2a91d34f6e8a1c2d3e4f506172",
          "course": "Example Advanced Course",
          "course_level": "Example Level 2",
          "distributor": "Example Distributor",
          "dive_center": "Example Dive Center",
          "instructor": "Example Instructor",
          "order_id": null,
          "is_associated": false,
          "associated_log": null,
          "is_renewed": 0,
          "will_expire": false,
          "expire_date": null,
          "is_crossover": false,
          "leveling_up": false,
          "leveling_up_from": null,
          "leveling_id": null,
          "is_upgrade": false,
          "upgrade_course": null,
          "previous_certification": "Example Level 1 certification"
        }
      }
    ],
    "quizzes": [
      {
        "id": 700001,
        "log_code": "5b0c7e2a91d34f6e8a1c2d3e4f506172",
        "module_id": 274,
        "total": 10,
        "correct": 9,
        "wrong": 1,
        "score": 90,
        "passed": true,
        "date": "2020-07-25",
        "start": "2020-07-25 05:50:14",
        "end": "2020-07-25 05:54:10",
        "questions": [
          {
            "id": 4567,
            "text": "Example quiz question",
            "missing": false,
            "answers": [
              { "id": 17537, "text": "Example wrong answer", "is_correct": false, "selected": true },
              { "id": 17538, "text": "Example right answer", "is_correct": true, "selected": false }
            ]
          }
        ]
      }
    ],
    "exams": [
      {
        "id": 180001,
        "log_code": "5b0c7e2a91d34f6e8a1c2d3e4f506172",
        "total": 15,
        "correct": 14,
        "wrong": 1,
        "score": 93,
        "passed": true,
        "date": "2023-12-13",
        "start": "2023-12-13 11:45:40",
        "end": "2023-12-13 11:58:14",
        "questions": [
          {
            "id": 4551,
            "text": "Example exam question",
            "missing": false,
            "answers": [
              { "id": 17469, "text": "Example wrong answer", "is_correct": false, "selected": false },
              { "id": 17471, "text": "Example right answer", "is_correct": true, "selected": true }
            ]
          }
        ]
      }
    ],
    "skills": [
      {
        "id": 160001,
        "log_code": "5b0c7e2a91d34f6e8a1c2d3e4f506172",
        "skill_type_id": 2,
        "skill_type_name": "Open Water",
        "user_completed": [8, 0, 8, 100, 1],
        "start": "2023-12-13 19:35:25",
        "end": "2023-12-14 23:59:59",
        "skills": [
          {
            "id": 1279,
            "name": "Example skill",
            "description": "<p>Example skill description.</p>",
            "diver_signed": true,
            "instructor_signed": true
          }
        ]
      }
    ]
  }
}

Response fields#

FieldTypeNullableNotes
certificationsarrayNoCertificationResource collection, docs/api/diver/_resources.md -> "Certification". Only the certifications of that log_code issued by the caller, ordered by the level's sort then by certification_date
quizzesarrayNoQuizResultResource collection, docs/api/diver/_resources.md -> "Quiz result". Every quiz of the log_code
examsarrayNoExamResultResource collection, docs/api/diver/_resources.md -> "Exam result". Every exam of the log_code
skillsarrayNoSkillProgressResource collection, docs/api/diver/_resources.md -> "Skill progress entry". [] when the log_code has no skill log records
The response has no certification key: the singular key of the earlier primary-key version of this route is gone.

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 certification carrying that log_code was issued by the caller. The second case uses the standard envelope:
{
  "success": false,
  "status": "error",
  "message": "Forbidden"
}

404 Not Found#

Returned when no certification carries the log_code.
{
  "success": false,
  "status": "error",
  "message": "Resource not found"
}

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 example shows two certifications to illustrate a leveled-up log_code; the capture behind it held a single certification, which is the common case.
Only certifications the caller issued are returned. When another instructor issued a later level of the same log_code, that certification is left out of certifications, and the caller still gets 200 as long as they issued at least one.
quizzes, exams and skills are read by log_code and are not filtered by instructor. After a level-up certified by another instructor they can include skills that other instructor signed.
Every question under quizzes and exams carries its full answers array, and each answer exposes is_correct alongside selected.

Source: docs/api/professional/certifications/GET_history.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/certifications//history' \
--header 'Authorization: Bearer <token>'
Response Response Example
200 - Example 1
{
    "status": "success",
    "message": "string",
    "data": {
        "log_code": "string",
        "course": "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
Get student skills progress
Next
Get certification quiz result
Built with