api for teacher/group