RAID API
  1. Profile
  • 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
        GET
      • Update profile
        PATCH
      • Register push token
        PUT
      • Update password
        PATCH
      • Remove push token
        DELETE
      • Rotate exam unlock code
        POST
      • Delete account
        DELETE
      • Update dive center association
        PATCH
    • 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
      • 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. Profile

Get authenticated user profile

GET
https://test.diveraid.com/api/v1/profile
Profile
Maintainer:Not configured

Overview#

Returns the authenticated user's own profile. There is no way to request another user's profile through this endpoint.
Controller: App\Http\Controllers\Api\V1\Profile\ProfileController::show()
Route name: api.v1.profile.show

Authentication#

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

Request#

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

Example request#


Response 200 OK#

{
  "success": true,
  "status": "success",
  "message": "OK",
  "data": {
    "id": 164553,
    "raid_id": "CA26-801-007",
    "exam_unlock_code": "050ee8363ef498bb551bc963d1077d69568336c5c35aa9319af55f2d45623b93",
    "email": "diver@example.com",
    "qrcode": "<svg xmlns=\"http://www.w3.org/2000/svg\" ...>",
    "qualification": "Diver",
    "qualification_cast": "Recreational",
    "category": "Recreational",
    "first_name": "Test",
    "last_name": "Diver",
    "full_name": "Test Diver",
    "nationality": "CA",
    "country": "CA",
    "state": "Ontario",
    "state_code": "ON",
    "city": "Toronto",
    "address": "100 Test Street",
    "timezone": "America/Toronto",
    "postal_code": "M5V 2T6",
    "phone": null,
    "mobile": null,
    "gender": null,
    "dob": "1990-01-15",
    "nok_first_name": null,
    "nok_last_name": null,
    "nok_phone": null,
    "nok_email": null,
    "nok_country": null,
    "avatar": "https://user.diveraid.com/build/img/avatars/user.png",
    "e_card": "https://user.diveraid.com/build/img/avatars/user.png",
    "guardian_first_name": null,
    "guardian_last_name": null,
    "guardian_email": null,
    "guardian_accepted": false,
    "default_language": "en",
    "currency": "CAD",
    "preferred_system": "Metric",
    "vat_rate": 0,
    "gdpr": "2026-09-10",
    "terms": "2026-09-10",
    "policy_accepted_at": "2026-09-10",
    "email_verified_at": "2026-09-10",
    "created_at": "2026-09-10T09:21:23.000000Z",
    "updated_at": "2026-09-10T09:21:23.000000Z",
    "dive_center": "RAID Test Dive Center",
    "dive_center_id": 1281,
    "dive_center_date": "2026-09-10",
    "distributor": "RAID Test Distributor",
    "distributor_id": 85,
    "distributor_date": "2026-09-10",
    "status": "Account Active"
  }
}
Captured from a live instance. qrcode is abbreviated above; in reality it is a complete SVG document of roughly 9 kB.

Response fields#

See _user-resource.md in this folder for the full field table, including the fifteen conditional keys that appear only for professionals and non-active accounts.

Errors#

401 Unauthorized#

{
  "success": false,
  "status": "error",
  "message": "Unauthenticated"
}
message is one of Unauthenticated, Invalid token, Token expired.

Notes#

Read-only. No side effects.
The response is dominated by the inline QR code: 9 292 bytes of a 10 664-byte response in the measured case. Clients that do not display the member card pay for it on every call.
The payload is produced by a resource shared with the administrative backend, so its field list can change for reasons unrelated to the API.

Source: docs/api/profile/GET_show.md

Request

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

Responses

🟢200
application/json
User profile
Bodyapplication/json

🟠401
Request Request Example
Shell
JavaScript
Java
Swift
curl --location 'https://test.diveraid.com/api/v1/profile' \
--header 'Authorization: Bearer <token>'
Response Response Example
200 - Example 1
{
    "status": "success",
    "message": "string",
    "data": {
        "data": {
            "raid_id": "string",
            "exam_unlock_code": "string",
            "email": "user@example.com",
            "qrcode": "string",
            "qualification": "string",
            "cast": "string",
            "category": "string",
            "dive_center": "string",
            "dive_center_id": 0,
            "dive_center_date": "2019-08-24",
            "distributor": "string",
            "distributor_id": 0,
            "distributor_date": "2019-08-24",
            "first_name": "string",
            "last_name": "string",
            "full_name": "string",
            "nationality": "string",
            "country": "string",
            "state": "string",
            "state_code": "string",
            "city": "string",
            "address": "string",
            "timezone": "string",
            "postal_code": "string",
            "phone": "string",
            "mobile": "string",
            "gender": "string",
            "dob": "2019-08-24",
            "nok_first_name": "string",
            "nok_last_name": "string",
            "nok_phone": "string",
            "nok_email": "string",
            "nok_country": "string",
            "avatar": "string",
            "e_card": "string",
            "status": "string",
            "suspension_days": 0,
            "restore_date": "2019-08-24",
            "restore_status": "string",
            "status_reason": "string",
            "professional_status": "string",
            "professional_suspension_days": 0,
            "professional_restore_date": "2019-08-24",
            "professional_status_reason": "string",
            "renewal_date": "2019-08-24",
            "expire_date": "2019-08-24",
            "guardian_first_name": "string",
            "guardian_last_name": "string",
            "guardian_email": "string",
            "guardian_accepted": true,
            "renew_causer": "string",
            "renew_reason": "string",
            "job_country": "string",
            "default_language": "string",
            "currency": "string",
            "preferred_system": "string",
            "vat_rate": 0,
            "gdpr": "2019-08-24",
            "terms": "2019-08-24",
            "policy_accepted_at": "2019-08-24",
            "email_verified_at": "2019-08-24",
            "stripe_id": "string",
            "created_at": "2019-08-24T14:15:22.123Z",
            "updated_at": "2019-08-24T14:15:22.123Z"
        },
        "status": "success"
    }
}
Modified at 2026-10-13 07:31:03
Previous
The user resource
Next
Update profile
Built with