RAID API
  1. Documents
  • 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
          POST
        • List own medical certificates and insurance
          GET
        • List diver documents
          GET
      • 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. Documents

List diver documents

GET
https://test.diveraid.com/api/v1/diver/documents
Diver / Documents
Maintainer:Not configured

Overview#

Lists files the diver has uploaded to their documents media collection (Spatie Media Library). Served by DocumentController::index().
Controller: App\Http\Controllers\Api\V1\Diver\DocumentController::index()
Route name: api.v1.diver.documents.index

Authentication#

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

Request#

Method: GET
Path: /api/v1/diver/documents
No parameters and no body.

Example request#


Response 200 OK#

Captured live against an account with 5 uploaded documents, abbreviated to 2. The capture account itself has none (data: []) — both shapes captured live.
{
  "success": true,
  "status": "success",
  "message": "OK",
  "data": [
    {
      "id": 79730,
      "name": "example-document.jpg",
      "file_name": "example-document.jpg",
      "mime_type": "image/jpeg",
      "size": 89493,
      "url": "https://raid-backend.s3.eu-west-2.amazonaws.com/user_documents/79730/example-document.jpg?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=EXAMPLE&X-Amz-Date=20260615T100000Z&X-Amz-Expires=3600&X-Amz-SignedHeaders=host&X-Amz-Signature=EXAMPLE",
      "created_at": "2025-03-25 13:58:53"
    },
    {
      "id": 79732,
      "name": "example-document-2.jpg",
      "file_name": "example-document-2.jpg",
      "mime_type": "image/jpeg",
      "size": 146117,
      "url": "https://raid-backend.s3.eu-west-2.amazonaws.com/user_documents/79732/example-document-2.jpg?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=EXAMPLE&X-Amz-Date=20260615T100000Z&X-Amz-Expires=3600&X-Amz-SignedHeaders=host&X-Amz-Signature=EXAMPLE",
      "created_at": "2025-03-25 14:01:49"
    }
  ]
}

Response fields#

FieldTypeNullableNotes
idintegerNoSpatie Media model id
namestringNoSame value as file_name in every record observed — TO VERIFY whether they can diverge (Media Library allows a separate display name, not exercised in this dataset)
file_namestringNo
mime_typestringNo
sizeintegerNoBytes
urlstringNoS3 signed URL, valid for 60 minutes (X-Amz-Expires=3600). Do not store it: fetch the list again to get a fresh one
created_atstringYesY-m-d H:i:s

Errors#

401 Unauthorized#

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

Notes#

Read-only, no side effects.
Documents can be uploaded through POST /api/v1/diver/documents (see POST_upload.md), but those uploads go to the medical and insurance media collections (medical_certificate, medical_certificate_professional, insurance_certificate), which this list does not read. It lists only the documents collection. List them with GET /api/v1/diver/medical-documents (see ../medical-documents/GET_list.md).
TO VERIFY: how documents reach the documents collection (likely the web backend, not the API).
url is a signed URL that expires after 60 minutes. The examples above carry a fabricated signature: a real one is not shown.

Source: docs/api/diver/documents/GET_list.md

Request

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

Responses

🟢200
application/json
Success
Bodyapplication/json

🟠401
Request Request Example
Shell
JavaScript
Java
Swift
curl --location 'https://test.diveraid.com/api/v1/diver/documents' \
--header 'Authorization: Bearer <token>'
Response Response Example
200 - Example 1
{
    "status": "success",
    "message": "string",
    "data": [
        {
            "id": 0,
            "name": "string",
            "file_name": "string",
            "mime_type": "string",
            "size": 0,
            "url": "string",
            "created_at": "2019-08-24T14:15:22.123Z"
        }
    ]
}
Modified at 2026-10-13 07:38:45
Previous
List own medical certificates and insurance
Next
List diver forms
Built with