RAID API
  1. Auth
  • 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
        POST
      • Login and get a Sanctum token
        POST
      • Send password reset email
        POST
      • Reset password using token
        POST
      • Logout and revoke the current token
        POST
      • Resend email verification
        POST
      • Complete a two-factor login and get a Sanctum token
        POST
    • 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
      • 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. Auth

Reset password using token

POST
https://test.diveraid.com/api/v1/auth/password/reset
V1 Auth
Maintainer:rivalex

Overview#

Completes a password reset using the token from the emailed link. On success the password is replaced, the remember token is regenerated, and every API token on the account is revoked.
Controller: App\Http\Controllers\Api\V1\Auth\AuthController::resetPassword()
Route name: api.v1.auth.password.reset

Authentication#

Type: None. Public endpoint — the reset token is the credential.
Additional middleware: throttle:auth — 10 requests per minute per IP address.

Request#

Method: POST
Path: /api/v1/auth/password/reset
Content-Type: application/json

Body#

{
  "token": "8f14e45fceea167a5a36dedd4bea2543...",
  "email": "diver@example.com",
  "password": "NewSecurePass123!",
  "password_confirmation": "NewSecurePass123!"
}
FieldTypeRequiredValidationDescription
tokenstringYesrequired|stringFrom the reset link
emailstringYesrequired|email:rfc,dnsMust match the address the token was issued for
passwordstringYesrequired|string|confirmed plus the password policySame policy as registration
password_confirmationstringYesrequired|same:password
Validated by App\Http\Requests\Api\V1\Auth\ResetPasswordRequest.

Example request#


Response 200 OK#

{
  "success": true,
  "status": "success",
  "message": "Password reset successfully"
}
No data key, and no token. The client must call POST /api/v1/auth/login with the new password.

Errors#

422 Unprocessable Entity — validation#

{
  "success": false,
  "status": "error",
  "message": "Validation failed",
  "errors": {
    "password": ["The password field must contain at least one uppercase and one lowercase letter."]
  }
}

422 Unprocessable Entity — domain rejection#

No errors key. Covers an unregistered email, an expired token, a token already used, and a token that does not match the supplied email — the same response either way, so the endpoint does not reveal whether the email is registered.
{
  "success": false,
  "status": "error",
  "message": "Invalid or expired reset token"
}

429 Too Many Requests#

{
  "success": false,
  "status": "error",
  "message": "Too many requests"
}
Retry-After header present. The throttle:auth limiter allows 10 requests per minute per IP address, shared across register, login, password/forgot and password/reset.

Notes#

Every API token on the account is deleted, including the one belonging to the device performing the reset if it had one. This is deliberate: a reset is recovery from lost or compromised credentials and the caller has proved nothing, so no token is spared. Tokens live 90 days and do not rotate, which makes the exposure window real.
This differs from PATCH /api/v1/profile/password, where the caller authenticates with their current password and their own token survives.
The same revocation applies to the web reset flow, so a reset performed in a browser also signs out the mobile app.
Side effects: PasswordReset event dispatched, remember token regenerated.

Source: docs/api/auth/POST_reset_password.md

Request

Body Params application/jsonRequired

Examples

Responses

🟢200
application/json
Password reset successful
Bodyapplication/json

🟠422
🟠429
Request Request Example
Shell
JavaScript
Java
Swift
curl --location 'https://test.diveraid.com/api/v1/auth/password/reset' \
--header 'Content-Type: application/json' \
--data-raw '{
    "token": "string",
    "email": "user@example.com",
    "password": "pa$$word",
    "password_confirmation": "pa$$word"
}'
Response Response Example
200 - Example 1
{
    "status": "success",
    "message": "string",
    "data": null
}
Modified at 2026-10-07 16:00:19
Previous
Send password reset email
Next
Logout and revoke the current token
Built with