RAID API
  1. Dive Logs
  • 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
          DELETE
        • Create dive log
          POST
        • Update dive log
          PATCH
        • List loggable courses
          GET
        • List dive logs (paginated)
          GET
        • Get dive log
          GET
      • 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. Dive Logs

Get dive log

GET
https://test.diveraid.com/api/v1/diver/dive-logs/{diveLog}
Diver/Dive Logs
Maintainer:Not configured

Overview#

Returns one dive log. Served by DiveLogController::show().
{diveLog} is route-model-bound to App\Models\Users\DiveLog by its primary key. Ownership is checked inside the controller through DiveLogPolicy::viewOwn() (no role bypasses it: an administrator token cannot read another diver's dive log), unlike PATCH_update.md, which enforces it via the FormRequest's authorize() instead — the two use different mechanisms and, as a result, different 403 response shapes (see PATCH_update.md's Errors section).
Controller: App\Http\Controllers\Api\V1\Diver\DiveLogController::show()
Route name: api.v1.diver.dive-logs.show

Authentication#

Type: Bearer Token
Header: Authorization: Bearer {token}

Request#

Method: GET
Path: /api/v1/diver/dive-logs/{diveLog}

Path parameters#

ParameterTypeDescription
{diveLog}integerDive log primary key, route-model-bound

Example request#


Response 200 OK#

Captured live.
{
  "success": true,
  "status": "success",
  "message": "OK",
  "data": {
    "id": 671940,
    "uuid": "48553191-fd1f-4fbc-93fe-c15c15b3529e",
    "number": 401,
    "date": "2026-09-17 00:00:00",
    "dive_type": "shore",
    "purpose_type": "fun_dive",
    "location": "Example Site",
    "country": "US",
    "lat": null,
    "lon": null,
    "dive_config": "open_circuit",
    "gas": "air",
    "gas_mix": { "helium": 0, "nitrogen": 79, "oxygen": 21 },
    "max_depth": 19,
    "average_depth": 10,
    "depth_unit": "meters",
    "dive_time": 40,
    "abt": 0,
    "rnt": 0,
    "tbt": 0,
    "tts": 0,
    "pressure_start": null,
    "pressure_end": null,
    "pressure_unit": "bar",
    "water_temperature": null,
    "weather_temperature": null,
    "temperature_unit": "celsius",
    "weather": null,
    "water": null,
    "current": null,
    "visibility": null,
    "weights": null,
    "weights_unit": "kilogram",
    "buddy": null,
    "verified_by": null,
    "wetsuit": null,
    "sac_rate": null,
    "safety_stop": false,
    "has_decompression": false,
    "decompression_note": null,
    "mod": null,
    "end": null,
    "group_in": null,
    "group_out": null,
    "comments": "Updated via docs capture.",
    "log_code": null,
    "course_id": null,
    "skill_log_id": null,
    "skill_id": null,
    "instructor_id": null,
    "is_signed": false,
    "signed_at": null,
    "cylinder_count": null,
    "bottom_cylinder_volume": null,
    "dive_condition_notes": null
  }
}

Response fields#

Full field table: _resources.md → "Dive log". Same shape as one entry of GET_list.md's collection, not wrapped in pagination.

gas_mix#

gas_mix is always returned as {oxygen, nitrogen, helium}, whichever way the dive log was created, as in the example above. Dive logs created in the web application are stored internally as {o, n, h}; the API translates them. The order of the keys inside gas_mix is not significant. A dive log without a recorded mix returns "gas_mix": null.

Errors#

401 Unauthorized#

{
  "success": false,
  "status": "error",
  "message": "Unauthenticated"
}

403 Forbidden#

Captured live, against a dive log belonging to another user.
{
  "success": false,
  "status": "error",
  "message": "Forbidden"
}

404 Not Found#

Captured live, against a nonexistent dive log id. A dive log deleted through DELETE_destroy.md answers the same way. Laravel's default route-model-binding 404. Unlike the manually-resolved 404s elsewhere in this area (e.g. courses/{log_code}), route-model binding's NotFoundHttpException includes the id that was looked up.
{
  "message": "No query results for model [App\\Models\\Users\\DiveLog] 999999999"
}

Notes#

Read-only, no side effects.

Source: docs/api/diver/dive-logs/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
🟠403
🟠404
Request Request Example
Shell
JavaScript
Java
Swift
curl --location 'https://test.diveraid.com/api/v1/diver/dive-logs/' \
--header 'Authorization: Bearer <token>'
Response Response Example
200 - Example 1
{
    "status": "success",
    "message": "string",
    "data": {
        "id": 0,
        "uuid": "095be615-a8ad-4c33-8e9c-c7612fbf6c9f",
        "number": 0,
        "date": "2019-08-24",
        "dive_type": "string",
        "purpose_type": "string",
        "location": "string",
        "country": "string",
        "lat": 0,
        "lon": 0,
        "dive_config": "string",
        "gas": "string",
        "gas_mix": {
            "oxygen": 0,
            "nitrogen": 0,
            "helium": 0
        },
        "max_depth": 0,
        "average_depth": 0,
        "depth_unit": "string",
        "dive_time": 0,
        "abt": 0,
        "rnt": 0,
        "tbt": 0,
        "tts": 0,
        "pressure_start": 0,
        "pressure_end": 0,
        "pressure_unit": "string",
        "water_temperature": 0,
        "weather_temperature": 0,
        "temperature_unit": "string",
        "weather": "string",
        "water": "string",
        "current": "string",
        "visibility": "string",
        "weights": 0,
        "weights_unit": "string",
        "buddy": "string",
        "verified_by": "string",
        "wetsuit": "string",
        "sac_rate": 0,
        "safety_stop": true,
        "has_decompression": true,
        "decompression_note": "string",
        "mod": 0,
        "end": "2019-08-24T14:15:22.123Z",
        "group_in": "string",
        "group_out": "string",
        "comments": "string",
        "log_code": "string",
        "course_id": 0,
        "skill_log_id": 0,
        "skill_id": 0,
        "instructor_id": 0,
        "is_signed": true,
        "signed_at": "2019-08-24T14:15:22.123Z",
        "cylinder_count": 0,
        "bottom_cylinder_volume": 0,
        "dive_condition_notes": "string"
    }
}
Modified at 2026-10-08 09:32:16
Previous
List dive logs (paginated)
Next
List the recognition cards issued to the user
Built with