API reference / Seats
Check seat availability
/v1/seatsNeeds a bearer access token with the organizations.read scope. How authentication works
For every course your organization currently has purchased seats for (bought directly, or as part of a package), returns how many seats you have, how many are already assigned to learners, and when they expire. Scoped entirely by your access token — there's no organization id to pass. Call this before POST /v1/enrolments to avoid a 400 for a course that's already full.
Responses
- 200Seat usage per course
Response fields
dataarray of OrganizationSeatscourse_idstring · uuidcapacityintegerSeats currently usable (not expired, not superseded by a newer purchase).
assignedintegerLearners from your organization currently using a seat for this course.
availableintegercapacity minus assigned — how many more learners you can enrol right now.
expiresAtstring · date-timenullableexpiredbooleanYou've owned seats for this course before, but none are current any more.
everOwnedboolean
