Flourish QMS

API reference / Seats

Check seat availability

GET/v1/seats

Needs 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 OrganizationSeats
      • course_idstring · uuid
      • capacityinteger

        Seats currently usable (not expired, not superseded by a newer purchase).

      • assignedinteger

        Learners from your organization currently using a seat for this course.

      • availableinteger

        capacity minus assigned — how many more learners you can enrol right now.

      • expiresAtstring · date-timenullable
      • expiredboolean

        You've owned seats for this course before, but none are current any more.

      • everOwnedboolean