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
      • The user resource
      • Get authenticated user profile
        GET
      • Remove push token
        DELETE
      • Update profile
        PATCH
      • Register push token
        PUT
      • Delete account
        DELETE
      • Update password
        PATCH
      • Update dive center association
        PATCH
    • Diver
      • Shared diver resources
      • Shared diver resources
      • Courses
        • List active courses
        • Submit course exam
        • Get course detail
        • Submit module quiz
        • List expired courses
        • Get quiz result
        • Get exam result
        • Get skills progress
        • Sign skills (diver)
      • Free Learnings
        • List enrolled free learnings
        • Submit free learning module quiz
        • List available free learning courses
        • Enroll in a free learning course
        • Get free learning detail
        • Get free learning quiz result
      • 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 award cards
      • 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
        • Get student quiz result
        • Get student exam result
        • Get student skills progress
        • Sign student skills
      • Certifications
        • Get certification history
        • Get certification quiz result
        • Get certification exam result
        • Get certification skills
        • List all professional certifications
        • List diver-level certifications
        • List specialty certifications
        • List professional certifications
        • List trainer certifications
        • List examiner certifications
      • Classroom
        • List classrooms
        • Get classroom progress (all students)
        • Get classroom student progress
        • Get classroom student quiz result
        • Get classroom student exam result
        • Get classroom student skills
        • Sign classroom student skills
      • Renewals
        • List renewal courses
        • Submit renewal exam
        • Get renewal progress
        • Submit renewal module quiz
        • Renewal status
        • Get renewal quiz result
        • Get renewal exam result
        • Get renewal skills progress
        • Sign renewal skills
      • Recognitions
        • List recognition courses
      • Dive Logs
        • Get student dive log
        • Sign student dive log
        • List student dive logs for a course
      • Store
    • Sync
      • Upload offline operations
      • Download full course data for offline use
      • Get sync status
    • Dive Center
    • 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
  • Schemas
    • Frontend API Schema
      • DiverSearch
    • SuccessResponse
    • DiverCertification
    • ValidationErrorResponse
    • TwoFactorChallengeResponse
    • TokenResponse
    • ErrorResponse
    • DiveLog
    • CourseLogDetail
    • UserProfile
    • CourseLog
    • QuizResult
    • ExamResult
    • SkillProgress
    • Certification
    • PaginatedDiveLogs
    • StoreItem
    • PaymentIntentResponse
    • OrderConfirmResponse
    • OrderStatusResponse
    • InstructorSearch
    • DiveCenterSearch
  1. Profile

Remove push token

DELETE
https://test.diveraid.com/api/v1/profile/push-token
Profile
Maintainer:Not configured

Overview#

Removes the push token registered for the access token used in the call. The device stops receiving push notifications for this session. Other sessions of the same account are not affected.
The call is idempotent: it answers 200 even when no push token was registered.
Controller: App\Http\Controllers\Api\V1\Profile\PushTokenController::destroy()
Route name: api.v1.profile.push-token.destroy

Authentication#

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

Request#

Method: DELETE
Path: /api/v1/profile/push-token
No parameters and no body.

Example request#


Response 200 OK#

{
  "success": true,
  "status": "success",
  "message": "Push token removed"
}
No data key.

Errors#

401 Unauthorized#

Standard shape. message is one of Unauthenticated, Invalid token, Token expired.

403 Forbidden#

The account is suspended. Every token of the account is revoked at the same time.
{
  "success": false,
  "status": "error",
  "message": "Account suspended"
}

Notes#

Only the registration of the current access token is removed.
Logging out, resetting the password, revoking the access token, suspending the account and expiry pruning delete the registration automatically, so this call is not needed before a logout.
See PUT /api/v1/profile/push-token for the registration rules and the push payload data.type values.

Source: docs/api/profile/DELETE_push_token.md

Request

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

Responses

🟢200
application/json
Push token removed
Bodyapplication/json

🟠401
🟠403
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request DELETE 'https://test.diveraid.com/api/v1/profile/push-token' \
--header 'Authorization: Bearer <token>'
Response Response Example
200 - Example 1
{
    "status": "success",
    "message": "string",
    "data": null
}
Modified at 2026-10-15 11:54:15
Previous
Get authenticated user profile
Next
Update profile
Built with