Appearance
Get Stale Users
Retrieve users who need reassessment based on their last quiz activity.
Overview
This endpoint returns users whose last quiz activity was more than a specified number of months ago. Users are split into two categories:
- usersToReassess: Users who completed a quiz but haven't taken one recently
- incompleteUsers: Users who started but never finished a quiz
Method: GET
Endpoint:/api/v1/namespaces/{namespaceId}/staleUsers
Requires administrator authentication with valid token.
Request
Headers
http
x-api-key: {your_api_key} # Required
Content-Type: application/jsonPath Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
namespaceId | string | ✅ | The unique identifier for the namespace |
Query Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
months | number | ❌ | Number of months threshold for stale users (default: 12) |
detailed | boolean | ❌ | If true, returns detailed objects instead of just UUIDs (default: false) |
Response
Simple Response (detailed=false)
json
{
"usersToReassess": ["user-uuid-1", "user-uuid-2"],
"incompleteUsers": ["user-uuid-3"],
"usersToReassessCount": 2,
"incompleteUsersCount": 1
}Detailed Response (detailed=true)
json
{
"usersToReassess": [
{
"userUUID": "user-uuid-1",
"quizId": "quiz-1",
"lastActivityDate": "2024-01-15T10:30:00.000Z"
}
],
"incompleteUsers": [
{
"userUUID": "user-uuid-3",
"quizId": "quiz-2",
"lastActivityDate": "2024-02-20T14:45:00.000Z"
}
],
"usersToReassessCount": 1,
"incompleteUsersCount": 1
}Response Fields
| Field | Type | Description |
|---|---|---|
usersToReassess | array | Users who completed a quiz but need reassessment |
incompleteUsers | array | Users who started but never finished a quiz |
usersToReassessCount | number | Count of users needing reassessment |
incompleteUsersCount | number | Count of users with incomplete quizzes |
When detailed=true, each user object contains:
| Field | Type | Description |
|---|---|---|
userUUID | string | The unique identifier for the user |
quizId | string | The ID of the user's most recent quiz |
lastActivityDate | string | ISO timestamp of the user's last activity |
Notes
- The default threshold is 12 months if
monthsis not specified. - Use
detailed=truewhen you need to know which quiz each user last interacted with and when. - A
400error is returned ifmonthsis not a positive integer.