This API is currently in Beta. If you would like to make suggestions for this API, please contact a MOTAR customer support representative.
This API routes are for teacher (instructor) users. Using these endpoints as a student user will likely not return any data.
Reminder: if you are using an app/client ID in sandbox, you must use sandbox.motar.io as the endpoint for your requests. Requests to api.motar.io with a sandbox client ID will fail!
These routes all require the "data analysis" scope to be registered for the app you are making requests from. This scope requires special permission from MOTAR administrators.
Get teacher courses
GEThttps://api.motar.io/edu/v1/teacher/courses
Retrieves a paginated list of course belonging to an authenticated teacher user
Query Parameters
Name
Type
Description
page
string
Page number. Defaults to 1 if not provided.
limit
string
Number of results per page. Defaults to 10 if not provided.
Headers
Name
Type
Description
Authorization*
string
Auth token generated by SSO, provided as a Bearer token.
{"docs": [ {"courseId":"610140fbc4206ecd3f6ac52a589dd5560f69ddee86f85ddb5904a32ac746610012a3e790d1beb5e6d77e20f57ac3b13d57dfbfc2ea867e12d8bdd707499353e9d5ae037444c271349c5761b55c03b5e043$e3039ced169799b21a054595fd4ffe9d","name":"Test Course","description":"A test course","profilePic":"63612df89ce540836565d4ba","coverPhoto":"63612df89ce540836565d4bc" } ],"total":1,"limit":10,"page":1,"pages":1}
Get teacher classes
GEThttps://api.motar.io/edu/v1/teacher/classes
Retrieves a paginated list of classes (a group of students taking a course) belonging to an authenticated teacher user.
Query Parameters
Name
Type
Description
page
string
Page number. Defaults to 1 if not provided.
limit
string
Number of results per page. Defaults to 10 if not provided.
includeCourses
boolean
If "true", the "courseId" property in the returned documents will be replaced with a full course document.
Headers
Name
Type
Description
Authorization*
string
Auth token generated by SSO, provided as a Bearer token.