App\Http\Controllers\Api\V1\Profile\PushTokenController::store()api.v1.profile.push-token.storeAuthorization: Bearer {token}PUT/api/v1/profile/push-tokenapplication/json{
"provider": "expo",
"token": "ExponentPushToken[xxxxxxxxxxxxxxxxxxxxxx]",
"platform": "ios",
"app_version": "1.2.3"
}| Field | Type | Required | Validation | Description |
|---|---|---|---|---|
provider | string | Yes | required|enum | Push provider. Only expo is accepted |
token | string | Yes | required|string|max:255, plus regex when provider is expo | Expo token, in the form ExponentPushToken[...] or ExpoPushToken[...] |
platform | string | Yes | required|enum | ios or android |
app_version | string | No | nullable|string|max:32 | Version of the app that registered the token |
App\Http\Requests\Api\V1\Profile\StorePushTokenRequest.200 OK{
"success": true,
"status": "success",
"message": "OK",
"data": {
"provider": "expo",
"platform": "ios",
"app_version": "1.2.3",
"updated_at": "2026-10-14T09:30:00.000000Z"
}
}app_version is null when it was not sent.401 Unauthorizedmessage is one of Unauthenticated, Invalid token, Token expired.403 Forbidden{
"success": false,
"status": "error",
"message": "Account suspended"
}422 Unprocessable Entity - validation{
"success": false,
"status": "error",
"message": "Validation failed",
"errors": {
"token": ["The token field format is invalid."],
"platform": ["The selected platform is invalid."]
}
}DELETE /api/v1/profile/push-token to stop notifications without logging out.data.type that tells the app what happened. The values the app can receive:data.type | Extra fields | Meaning |
|---|---|---|
certification_issued | log_code | A certification was issued to the diver. log_code is the certification identifier used by the diver routes certifications/{log_code}/... |
course_opened | log_code | A course was opened for the diver. log_code is the course log identifier |
document_rejected | document_id, document_type | One of the diver's documents was rejected. document_id is the document identifier, document_type its type value. The rejection reason is not in the payload: the app shows it after opening the document |
renewal_approved | none | The diver's professional renewal request was approved |
course_level_up_opened | log_code | A level-up was opened for the diver. log_code is the course log identifier |
course_extended | log_code | The diver's course was extended. log_code is the course log identifier |
dive_center_removed | none | The diver was removed from a dive center |
certification_revoked | log_code | A certification was revoked. log_code is the certification identifier. The certification is no longer available, so the app should not try to open it |
award_obtained | none | The diver received a new award. The payload carries no identifier, the app can refresh the awards list |
classroom_created | classroom_id | A classroom was created for the instructor. classroom_id is the classroom identifier used by GET /api/v1/professional/classroom/{classroom} |
classrooms_created | none | Several classrooms were created for the instructor in one accreditation; there is no single classroom to open |
course_expiring | log_code | The diver's course is about to expire (30 and 7 days before). log_code is the course log identifier |
certification_expiring | log_code | The diver's certification is about to expire (30 and 7 days before). log_code is the certification identifier |
professional_status_expiring | none | The professional status is about to expire (30 and 7 days before). The payload carries no identifier |
docs/api/profile/PUT_push_token.mdcurl --location --request PUT 'https://test.diveraid.com/api/v1/profile/push-token' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"provider": "expo",
"token": "string",
"platform": "ios",
"app_version": "string"
}'{
"status": "success",
"message": "string",
"data": {
"provider": "expo",
"platform": "ios",
"app_version": "string",
"updated_at": "2019-08-24T14:15:22.123Z"
}
}