List Completed Study Sessions
Provides a general purpose endpoint to search Completed Study Sessions.
The date range is limited to a maximum of 12 months, if no filters are provided it defaults to the last 12 months.
Date Range Behavior:
- If no date filters are provided, it defaults to the last 12 months.
- If only
endDate[lte]is provided,endDate[gte]will default to 12 months prior toendDate[lte]. - If only
endDate[gte]is provided,endDate[lte]will default to 12 months afterendDate[gte].
Nugget Filters:
Nugget filters are combined when used together. For example, specifying both nuggetId and a courseId will include nuggets from both the specified IDs and the course.
User Filters:
User filters are combined when used together and allow you to specify users by userId, externalId, or classId. When using classId, the results will include study sessions for all users within the specified class.
Query parameters
-
Filter the results by session end date
Supports either a ISO 8601 formatted date or a Unix timestamp. For example
endDate[gte]=1688200245orendDate[lte]=2023-07-15T12:00:00.000Z -
Filter the results by user ID.
Multiple identifiers can be specified by repeating the query parameter. e.g.
userId=value1&userId=value2This parameter supports a maximum of 30 identifiers.
At least
1but not more than30elements. -
Filter the results by external ID.
Multiple identifiers can be specified by repeating the query parameter. e.g.
externalId=value1&externalId=value2This parameter supports a maximum of 30 identifiers.
At least
1but not more than30elements. -
Filter the results by nugget ID.
Multiple identifiers can be specified by repeating the query parameter. e.g.
nuggetId=value1&nuggetId=value2This parameter supports a maximum of 30 identifiers.
At least
1but not more than30elements. -
Filter the results by class ID.
-
Filter the results by course ID.
-
Specify the sort order of the results.
The default sort order is
sort[field]=endDate&sort[direction]=asc -
The maximum number of sessions to return per page.
Minimum value is
1, maximum value is250. Default value is100. -
Indicates the starting position or index (offset)
Default value is
0. -
The cursor for pagination. Encoded byte string used to navigate between pages.
curl \
--request GET 'https://connect.century.tech/api/v1/sessions/completed' \
--header "x-api-key: $API_KEY"
{
"data": [
{
"kind": "GRADED",
"user": {
"upn": "Y89421121401A",
"emails": [
"john.doe@email.com"
],
"gender": "male",
"userId": "68f06c66-702a-4c26-b8c5-b6dc4f81f25d",
"fullName": "John Doe",
"lastName": "Doe",
"username": "john_doe",
"firstName": "John",
"externalId": "External_ID_123",
"dateOfBirth": "2010-07-01"
},
"nugget": {
"name": "Addition [MF1.01]",
"nuggetId": "bc5f8904-c844-4c8a-8231-872e5c84dc8b",
"diagnostic": false
},
"endDate": "2024-23-06T12:08:48.578Z",
"metrics": {
"score": 54.16666667,
"duration": "PT3M25S",
"completion": 90,
"correctAnswers": 13,
"pointsAchieved": 13,
"pointsPossible": 24,
"questionsAnswered": 24
},
"startDate": "2024-23-06T12:05:23.456Z",
"studySessionId": "67bf476e17ed9cccd58c1fb4"
}
],
"pagination": {
"limit": 100,
"total": 1,
"offset": 0,
"nextCursor": null,
"previousCursor": null
}
}
{
"data": [
{
"kind": "NON_GRADED",
"user": {
"upn": "Y89421121401A",
"emails": [
"john.doe@email.com"
],
"gender": "male",
"userId": "68f06c66-702a-4c26-b8c5-b6dc4f81f25d",
"fullName": "John Doe",
"lastName": "Doe",
"username": "john_doe",
"firstName": "John",
"externalId": "External_ID_123",
"dateOfBirth": "2010-07-01"
},
"nugget": {
"name": "Addition [MF1.01]",
"nuggetId": "bc5f8904-c844-4c8a-8231-872e5c84dc8b",
"diagnostic": false
},
"endDate": "2024-23-06T12:08:48.578Z",
"metrics": {
"duration": "PT3M25S",
"completion": 90.456
},
"startDate": "2024-23-06T12:05:23.456Z",
"studySessionId": "67bf476e17ed9cccd58c1fb4"
}
],
"pagination": {
"limit": 100,
"total": 1,
"offset": 0,
"nextCursor": null,
"previousCursor": null
}
}