RAID API
  1. Public
  • 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 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
        GET
      • Dive-log enum values with labels in the response language
        GET
      • Get country data
        GET
      • Get country divisions (states/provinces)
        GET
      • List time zone identifiers, optionally narrowed to one country
        GET
      • List, search, and radius-search publicly visible dive centres
        GET
      • Every publicly visible, geolocated dive centre as a map marker
        GET
      • Countries with at least one publicly visible dive centre
        GET
      • Full detail of one publicly visible dive centre
        GET
    • 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. Public

Dive-log enum values with labels in the response language

GET
https://test.diveraid.com/api/v1/public/dive-log-options
Public
Maintainer:Not configured

Overview#

The values of the eight dive-log enums, each with its label in the response language, in the shape the mobile pickers need. The value is what the dive-log write endpoints accept; the label is display text. Cache the response client-side, one copy per language: it changes only when a translation or an enum case changes.
Controller: App\Http\Controllers\Api\V1\Public\DiveLogOptionController::index()
Route name: api.v1.public.dive-log-options.index

Authentication#

Type: None (public endpoint)
Additional middleware: throttle:public - the dedicated public-area limiter, keyed by IP address. See docs/api/README.md §14. SetApiLocale resolves the response language from Accept-Language; see docs/api/README.md §10, Response language.

Request#

Method: GET
Path: /api/v1/public/dive-log-options
No parameters and no body. Send Accept-Language to choose the label language; without it the response is in English.

Example request#


Response 200 OK#

Captured live with no Accept-Language. The response carries Content-Language: en and Vary: Accept-Language.
{
  "success": true,
  "status": "success",
  "message": "OK",
  "data": {
    "gas": [
      {
        "value": "air",
        "label": "Air"
      },
      {
        "value": "nitrox",
        "label": "Nitrox"
      },
      {
        "value": "trimix",
        "label": "Trimix"
      },
      {
        "value": "triox",
        "label": "Triox"
      }
    ],
    "dive_type": [
      {
        "value": "pool",
        "label": "Pool dive"
      },
      {
        "value": "shore",
        "label": "Shore dive"
      },
      {
        "value": "boat",
        "label": "Boat dive"
      },
      {
        "value": "altitude",
        "label": "Altitude dive"
      },
      {
        "value": "overhead",
        "label": "Overhead Dive"
      }
    ],
    "dive_config": [
      {
        "value": "freediving",
        "label": "Free Diving"
      },
      {
        "value": "open_circuit",
        "label": "Open Circuit"
      },
      {
        "value": "semi_close_rebreather",
        "label": "Rebreather SCR"
      },
      {
        "value": "close_circuit_rebreather",
        "label": "Rebreather CCR"
      },
      {
        "value": "sidemount_oc",
        "label": "Sidemount OC"
      },
      {
        "value": "sidemount_ccr",
        "label": "Sidemount CCR"
      }
    ],
    "purpose_type": [
      {
        "value": "fun_dive",
        "label": "Fun Dive"
      },
      {
        "value": "course_log",
        "label": "Course Log Dive"
      }
    ],
    "weather": [
      {
        "value": "sunny",
        "label": "Sunny weather"
      },
      {
        "value": "cloudy",
        "label": "Cloudy weather"
      },
      {
        "value": "foggy",
        "label": "Foggy weather"
      },
      {
        "value": "rainy",
        "label": "Rainy weather"
      },
      {
        "value": "storm",
        "label": "Stormy weather"
      }
    ],
    "water": [
      {
        "value": "calm",
        "label": "Calm water"
      },
      {
        "value": "choppy",
        "label": "Choppy water"
      },
      {
        "value": "heavy",
        "label": "Heavy water"
      },
      {
        "value": "rough",
        "label": "Rough water"
      },
      {
        "value": "stormy",
        "label": "Stormy water"
      }
    ],
    "current": [
      {
        "value": "no_current",
        "label": "No current"
      },
      {
        "value": "light",
        "label": "Light current"
      },
      {
        "value": "moderate",
        "label": "Moderate current"
      },
      {
        "value": "strong",
        "label": "Strong current"
      }
    ],
    "visibility": [
      {
        "value": "poor",
        "label": "Poor visibility"
      },
      {
        "value": "sufficient",
        "label": "Sufficient visibility"
      },
      {
        "value": "good",
        "label": "Good visibility"
      },
      {
        "value": "excellent",
        "label": "Excellent visibility"
      }
    ]
  }
}

Response 200 OK with Accept-Language: it#

Captured live. The response carries Content-Language: it and Vary: Accept-Language.
{
  "success": true,
  "status": "success",
  "message": "OK",
  "data": {
    "gas": [
      {
        "value": "air",
        "label": "Aria"
      },
      {
        "value": "nitrox",
        "label": "Nitrox"
      },
      {
        "value": "trimix",
        "label": "Trimix"
      },
      {
        "value": "triox",
        "label": "Triox"
      }
    ],
    "dive_type": [
      {
        "value": "pool",
        "label": "Immersione in piscina"
      },
      {
        "value": "shore",
        "label": "Immersione da riva"
      },
      {
        "value": "boat",
        "label": "Immersione da barca"
      },
      {
        "value": "altitude",
        "label": "Immersione in altitudine"
      },
      {
        "value": "overhead",
        "label": "Overhead Dive"
      }
    ],
    "dive_config": [
      {
        "value": "freediving",
        "label": "Apnea"
      },
      {
        "value": "open_circuit",
        "label": "Circuito aperto"
      },
      {
        "value": "semi_close_rebreather",
        "label": "Rebreather SCR"
      },
      {
        "value": "close_circuit_rebreather",
        "label": "Rebreather CCR"
      },
      {
        "value": "sidemount_oc",
        "label": "Sidemount OC"
      },
      {
        "value": "sidemount_ccr",
        "label": "Sidemount CCR"
      }
    ],
    "purpose_type": [
      {
        "value": "fun_dive",
        "label": "Immersione Ricreativa"
      },
      {
        "value": "course_log",
        "label": "Log di immersione del corso"
      }
    ],
    "weather": [
      {
        "value": "sunny",
        "label": "Tempo soleggiato"
      },
      {
        "value": "cloudy",
        "label": "Tempo nuvoloso"
      },
      {
        "value": "foggy",
        "label": "Tempo nebbioso"
      },
      {
        "value": "rainy",
        "label": "Piovoso"
      },
      {
        "value": "storm",
        "label": "Tempesta"
      }
    ],
    "water": [
      {
        "value": "calm",
        "label": "Acqua calma"
      },
      {
        "value": "choppy",
        "label": "Acqua increspata"
      },
      {
        "value": "heavy",
        "label": "Acqua pesante"
      },
      {
        "value": "rough",
        "label": "Acque agitate"
      },
      {
        "value": "stormy",
        "label": "Acque agitate"
      }
    ],
    "current": [
      {
        "value": "no_current",
        "label": "Nessuna corrente"
      },
      {
        "value": "light",
        "label": "Corrente leggera"
      },
      {
        "value": "moderate",
        "label": "Corrente moderata"
      },
      {
        "value": "strong",
        "label": "Corrente forte"
      }
    ],
    "visibility": [
      {
        "value": "poor",
        "label": "Scarsa visibilità"
      },
      {
        "value": "sufficient",
        "label": "Visibilità sufficiente"
      },
      {
        "value": "good",
        "label": "Buona visibilità"
      },
      {
        "value": "excellent",
        "label": "Visibilità eccellente"
      }
    ]
  }
}

Response fields#

FieldTypeNullableAlways presentDescription
data.gasarrayNoYesGas types
data.dive_typearrayNoYesDive types
data.dive_configarrayNoYesDive configurations
data.purpose_typearrayNoYesDive purposes
data.weatherarrayNoYesWeather conditions
data.waterarrayNoYesWater conditions
data.currentarrayNoYesCurrent conditions
data.visibilityarrayNoYesVisibility conditions
data.{group}[].valuestringNoYesThe machine value. Send this back on dive-log writes
data.{group}[].labelstringNoYesDisplay text in the response language

Errors#

429 Too Many Requests#

Behind the dedicated public limiter (300 requests per minute, keyed by IP). No errors key. No Content-Language header: the limiter runs before the language is resolved.
{
  "success": false,
  "status": "error",
  "message": "Too many requests"
}

Notes#

Groups and the options inside each group follow the declaration order of the underlying enums. The order is stable but is not a sort order.
A label can fall back to English where the requested language has no translation: a response may mix languages. The two captures above show it - overhead is the same string in both.
The user's profile language does not apply here: the user is never resolved on public routes, even when a bearer token is sent. Send Accept-Language with the user's language.
Unsupported Accept-Language values are ignored and answered in English, never with a 406.

Source: docs/api/public/GET_dive_log_options.md

Request

Header Params

Responses

🟢200
application/json
Success
Bodyapplication/json

🟠429
Request Request Example
Shell
JavaScript
Java
Swift
curl --location 'https://test.diveraid.com/api/v1/public/dive-log-options' \
--header 'Accept-Language;'
Response Response Example
200 - Example 1
{
    "status": "success",
    "message": "string",
    "data": {
        "gas": [
            {
                "value": "air",
                "label": "Air"
            }
        ],
        "dive_type": [
            {
                "value": "air",
                "label": "Air"
            }
        ],
        "dive_config": [
            {
                "value": "air",
                "label": "Air"
            }
        ],
        "purpose_type": [
            {
                "value": "air",
                "label": "Air"
            }
        ],
        "weather": [
            {
                "value": "air",
                "label": "Air"
            }
        ],
        "water": [
            {
                "value": "air",
                "label": "Air"
            }
        ],
        "current": [
            {
                "value": "air",
                "label": "Air"
            }
        ],
        "visibility": [
            {
                "value": "air",
                "label": "Air"
            }
        ]
    }
}
Modified at 2026-10-07 08:54:23
Previous
List all countries
Next
Get country data
Built with