List Completed Smart IA Sessions
Convenience method that only return "Completed" Smart IA Sessions
Returns a paginated list of completed sessions
Query parameters
-
startDate object
Filter the results by session start date
Supports either a ISO 8601 formatted date or a Unix timestamp. For example
startDate[gt]=1688200245
orstartDate[lt]=2023-07-15T12:00:00.000Z
The following operators cannot be used together
gt
andgte
lt
andlte
-
endDate object
Filter the results by session end date
Supports either a ISO 8601 formatted date or a Unix timestamp. For example
endDate[gt]=1688200245
orendDate[lt]=2023-07-15T12:00:00.000Z
The following operators cannot be used together
gt
andgte
lt
andlte
-
userId array[string(uuid)]
Filter the results by user ID.
Multiple identifiers can be specified by repeating the query parameter. e.g.
userId=id1&userId=id2
This parameter supports a maximum of 30 identifiers.
At least
1
but not more than30
elements. -
testId array[string(uuid)]
Filter the results by test ID.
Multiple identifiers can be specified by repeating the query parameter. e.g.
testId=id1&testId=id2
This parameter supports a maximum of 30 identifiers.
At least
1
but not more than30
elements. -
subject array[string]
Filter the results by test subject.
Multiple identifiers can be specified by repeating the query parameter. e.g.
subject=sub1&subject=sub2
This parameter supports a maximum of 30 identifiers.
At least
1
but not more than30
elements. -
limit integer(int32)
Specify the pagination limit, defaults to 100
Minimum value is
1
, maximum value is100
. Default value is100
. -
offset integer(int32)
Specify the pagination offset, defaults to 0.
Cannot be used with
cursor
Default value is
0
. -
cursor string(byte) | null
Provide the next or previous page cursor
-
sort object
Specify the sort order of the results.
The default sort order is
sort[field]=startDate&sort[direction]=asc
curl \
-X GET https://connect.century.tech/api/v1/smart-ia/sessions/completed
{
"data": [
{
"test": {
"name": "English Smart Initial Assessment",
"testId": "c5a77fda-7174-446f-a4f5-0f47ccbf15ce",
"subject": "English",
"testVersionId": "33ea5957-9320-4300-998d-c8fba3646aaa"
},
"user": {
"emails": [
"john.doe@email.com"
],
"gender": "male",
"userId": "2716be03-cec0-4027-a373-46b53fb6a08d",
"fullName": "John Doe",
"lastName": "Doe",
"username": "john_doe",
"firstName": "John",
"externalId": "External_ID_123"
},
"result": {
"level": "L1 - Lower",
"duration": "PT1H30M",
"createdDate": "2023-07-10T15:30:00.000Z"
},
"status": "COMPLETED",
"endDate": "2023-07-10T15:30:00.000Z",
"sessionId": "d93ba3c3-2482-4b0d-8b99-42a20e68e11e",
"startDate": "2023-07-10T14:00:00.000Z"
}
],
"pagination": {
"limit": 20,
"total": 100,
"offset": 0,
"nextCursor": "eyJsaW1pdCI6MiwibGVmdDpbWyJlbmREYXRlIiwiZGVzYyJdXX0=",
"previousCursor": null
}
}