Get started with the Cesura API
The Cesura API lets your institution's own systems read and manage what Cesura holds for your organization: your OpenRouter key's state when you bring your own key (BYOK), your license usage, and the budget tree of your courses. This article takes you from nothing to your first successful call.
What you need
- An org admin account in your Cesura organization.
- API keys turned on for your organization. Until Cesura turns them on, your organization's settings have no API Keys page. To turn them on, contact Cesura support.
- Your organization's ID. See Find the organization ID.
Base URL
Every endpoint is under:
https://app.cesura.ai/api/v1
Every request and response body is JSON. Send requests over HTTPS only.
Find the organization ID
Every endpoint in this guide takes your organization's ID in its path. To find it, sign in as an org admin and open your organization's settings. The ID is the part of the address after /admin/organizations/, for example:
https://app.cesura.ai/admin/organizations/6650f3a2b1c4d5e6f7a8b9c0/api-keys
Here the organization ID is 6650f3a2b1c4d5e6f7a8b9c0.
Create an API key
- In your organization's settings, open API Keys.
- Select Create API Key.
- Enter a Name that says what the key is for, for example Budget dashboard.
- Under Scopes, check the scopes your integration needs. See Organization API keys and scopes.
- Choose an Expiration, then select Create.
- Copy the key. Cesura shows the full key only once.


An organization key starts with sk_org_live_. Store it as you would a password: in a secret manager, never in source code or a browser.
Make your first call
Send the key as a bearer token in the Authorization header. For example, with a key that holds license.read:
curl -H "Authorization: Bearer ORG_API_KEY" \
"https://app.cesura.ai/api/v1/organizations/ORG_ID/license"
Replace ORG_API_KEY with your key and ORG_ID with your organization's ID. A successful call returns 200 and your license counts.
If the call fails, the body tells you why in a stable code. See Errors.
Call the API from a server, not a browser
An organization key reads your organization's data without a person signing in. Keep it on your server: have your dashboard's browser code call your own backend, and have your backend call Cesura.
Test safely
Cesura has no separate test environment for customers. Your integration works against your organization's real data, so:
- Start with read-only scopes. Every read endpoint in this guide only reads.
- Give a key that writes to the budget tree only the part of the tree it needs. See The budget tree API.
- Revoke a key on the API Keys page as soon as you no longer need it.
The APIs in this guide
- Read your OpenRouter key's status: the limit, what is left, and whether learners get AI replies.
- Read your license usage: students, lecturers, and runs counted against your license, overall and per course.
- The budget tree API: your years, faculties, departments, and courses, what each course spent, and how to manage the tree.