SyncController::status().App\Http\Controllers\Api\V1\Sync\SyncController::status()api.v1.sync.statusAuthorization: Bearer {token}GET/api/v1/sync/status200 OK{
"success": true,
"status": "success",
"message": "OK",
"data": {
"last_synced_at": null,
"active_courses": 1
}
}| Field | Type | Nullable | Always present | Description |
|---|---|---|---|---|
data.last_synced_at | string | Yes | Yes | ISO 8601 timestamp written by the last GET /api/v1/sync/download that answered 200, for example 2026-09-17T10:00:00+00:00. null when no download was recorded or the cache entry expired |
data.active_courses | integer | No | Yes | Number of course logs of the user whose expire_date is today or later |
401 Unauthorized{
"success": false,
"status": "error",
"message": "Unauthenticated"
}message is Token expired or Invalid token when a bearer token was sent but is expired or unknown.429 Too Many Requestsx-ratelimit-limit: 120. The body is the standard envelope with message: "Too many requests" and a Retry-After header.last_synced_at is read from the cache key sync_last:{user_id}, written by GET /api/v1/sync/download with a 90-day lifetime. The entry exists only after a download answered 200.GET /api/v1/sync/download currently answers 500 for every user with at least one active course, so for such a user last_synced_at stays null. See that document.docs/api/sync/GET_status.mdcurl --location 'https://test.diveraid.com/api/v1/sync/status' \
--header 'Authorization: Bearer <token>'{
"status": "success",
"message": "string",
"data": {
"last_synced_at": "string",
"active_courses": 0
}
}