Read your license usage
A BYOK license counts the students, lecturers, and teaching assistants who use Cesura in your license year. This endpoint reads those counts, overall and for each course, so your portal can show how much of the license is used. It returns counts only, never a student's identity.
Before you start
- Your organization has a BYOK license.
- An organization API key with the
license.readscope. See Organization API keys and scopes.
Get the counts
curl -H "Authorization: Bearer ORG_API_KEY" \
"https://app.cesura.ai/api/v1/organizations/ORG_ID/license?by=course"
Leave out ?by=course when you need only the totals.
Response
{
"type": "byok",
"period": {"starts": "2026-10-18", "ends": "2027-10-17"},
"students": {"licensed": 800, "counted": 612},
"lecturers": {"licensed": 15, "counted": 11},
"teaching_assistants": {"counted": 7},
"anonymous_runs": {"allowed": false, "count": 0},
"runs": {"count": 4210},
"courses": [
{
"space_id": "SPACE_ID",
"name": "Negotiation",
"external_id": "NEG-101",
"students": {"counted": 40},
"anonymous_runs": {"count": 0},
"runs": {"count": 120}
}
]
}
| Field | Meaning |
|---|---|
type |
The license type, byok. |
period |
The license year: its first and last day. |
students |
Students your license allows (licensed) and students who ran an activity this license year (counted). |
lecturers |
Lecturers your license allows, and lecturers counted: accounts with the Creator role. |
teaching_assistants |
Teaching assistants counted: accounts with the Teacher role. |
anonymous_runs |
Whether runs from an open link without an account are allowed, and how many there were. |
runs |
Every run counted this license year. |
courses |
With ?by=course, the counts for each course (space) that has a counted run. null without it. |
courses[].name |
The space's name. It can differ from the name of the course's node in the budget tree. |
courses[].external_id |
The external ID of the course's node in the budget tree, or null when it has none. Use it to match a course to your own systems. |
How students are counted
- A student counts once per license year, however many activities they run.
- A student who runs in two courses counts once in
studentsand once in each course, so the course counts can add up to more than the total. - A learner from your LMS counts by their LMS identity, and a SCORM learner by their learner ID.
- Lecturer and teaching assistant counts can be up to 15 minutes old.
After the license year ends
The endpoint returns that year's final counts until Cesura sets your next year's terms.
Errors
| Status | code |
Cause |
|---|---|---|
401 |
ORG_API_KEY_REQUIRED |
The request has no organization API key. |
401 |
INVALID_ORG_API_KEY |
The API key is wrong, revoked, or expired. |
403 |
INSUFFICIENT_SCOPE |
The API key does not hold license.read. |
404 |
ORGANIZATION_NOT_FOUND |
ORG_ID is not the API key's organization. |
404 |
ORG_LICENSE_NOT_FOUND |
The organization has no license. |
For the error body, see Errors.