Login

Learners

Learners in Coassemble are users in your workspace who have been enrolled to study a course.

Endpoints

Get learners

GET /api/v1/students

Returns a list of all the learners in your workspace. The learners are returned sorted by Name in ascending order. Filter learners using the query parameters listed in the table.

Query parameters

FieldTypeDescriptionRequiredDefaultPattern
searchstringSearch by name.No"" N/A
pagestringWhich page of items to display, starting with zeroNo"0"\d+
lengthstringNumber of items per page (0 - 100)No"10"\d+
reversestringReverse sort.No"false" N/A
activestringFilter to active or inactive users.No"" N/A
deletedstringReturn users with deleted credentialsNo"" N/A

Responses

CodeDescription
200Returned when successful

Get learners (simple)

GET /api/v1/students/simple

Returns a simple list of all the learners in your workspace that excludes their status. The learners are returned sorted by Name in ascending order. Filter learners using the query parameters listed in the table.

Query parameters

FieldTypeDescriptionRequiredDefaultPattern
searchstringSearch by name.No"" N/A
pagestringWhich page of items to display, starting with zeroNo"0"\d+
lengthstringNumber of items per page (0 - 100)No"10"\d+
reversestringReverse sort.No"false" N/A

Responses

CodeDescription
200Returned when successful

Search for a learner

GET /api/v1/students/{id}

Returns a single learner using their User ID.

Path variables

FieldDescription
userUser ID.
id

Responses

CodeDescription
200Returned when successful

Get courses for a learner

GET /api/v1/students/{id}/courses

Returns a list of all the courses a specific learner has been enrolled in.

Path variables

FieldDescription
studentUser ID.
id

Responses

CodeDescription
200Returned when successful

Get courses and progress for a learner

GET /api/v1/students/{id}/cards

Returns a list of all the courses a specific learner has been enrolled in, including their progress status. E.g. Commenced, Completed.

Path variables

FieldDescription
studentUser ID.
id

Query parameters

FieldTypeDescriptionRequiredDefaultPattern
pagestringWhich page of items to display, starting with zeroNo"0" N/A
lengthstringItems per page (0-100)No"20" N/A
searchstringSearch by course or studentNo"" N/A
statusstringFilter courses based on how much work the student has done on them.No"any"any|uncommenced|commenced|completed
sortstringSort byNo"enrolled" N/A
starredOnlystringNo"false" N/A

Responses

CodeDescription
200Returned when successful

Get course status and count

GET /api/v1/student/cards/counts

Returns a count of the courses a learner has been enrolled in, and the course status. E.g. To do, In progress, Completed.