We are working on an API to create Attendance and Grades of all the students. We are unable to the find proper API Endpoints for these. Any help is appreciated
Hi Venkata,
Currently there are no dedicated Valence API's for directly creating, updating or retrieving Attendance Registers and attendance records. However, AttendanceRegisters can be copied as a course component using the API or via the UI. See https://docs.valence.desire2learn.com/res/course.html#copying-courses
Access to Attendance related DataSets is available from the DataHub and via Data Export API. See https://community.d2l.com/brightspace/kb/articles/4519-attendance-data-sets
The Grades API reference is available at https://docs.valence.desire2learn.com/res/grade.html This resource also includes reference to the scopes required to depending on the endpoint you are attempting to access. Scopes include: grades:gradeobjects:read, grades:gradeobjects:write, grades:gradevalues:read and grades:gradevalues:write
grades:gradeobjects:read
grades:gradeobjects:write
grades:gradevalues:read
grades:gradevalues:write
Hope this helps!
Thanks for explaining in detail. For the attendance part, we want to access the logins count under courseadmin→ClassProgress→StudentName→LoginHistory→Logins
I hope you are doing well
Unfortunately, Brightspace does not have a dedicated endpoint that returns a direct login count for a user. However, we can retrieve the same data using the User Tracking Logs endpoint, which returns a list of all login/access events for a specific user within a date range. You can then check the response entries to get the total number of logins for that period.
Endpoint:
GET /d2l/api/lp/1.61/users/{userId}/usertrackinglogs/?startDateTime=2026-07-01T00:00:00.000Z&endDateTime=2026-07-31T23:59:59.999Z
A few notes:
{userId}
startDateTime
endDateTime
yyyy-MM-ddTHH:mm:ss.fffZ
Please let us know if you have any questions or need further assistance!
Best regards,
Victor
Connect with our Known and Fixed Issue information to learn about improvements made to Brightspace.
Connect with leaders in pedagogy, accessibility, learning experience design and more
The Accessibility category serves as a single point of access to three avenues in Brightspace Community leading to the Accessibility Academy, Accessibility Library and Accessibility Discussions. These avenues offer courses and articles about accessibility to enhance accessibility knowledge and a group of accessibility enthusiasts to stay connected with.
Have questions about how to use Community? Stay tuned with updates, feedback opportunities and more for the Community here!
Connect with and ask questions on how to best use the Brightspace Product to transform the way your users learn!
Connect with product experts to learn more about tools frequently used by Brightspace Developers such as APIs and integrations!
Want to learn more about Brightspace Partners and Integrations? This is the place to be!
Stay up to date with product updates and announcements in this category.
Connect with our release information to learn about monthly improvements and updates to Brightspace.
Learn more about all the upskilling opportunities with courses and resources offered via the Brightspace Learning Center, Brightspace Guided Training and other training opportunities!