API documentation
Getting started
The HotLearn API lets other systems use a HotLearn account: an LMS that imports workbooks into the school's courses, an AI assistant that reads the catalog, a script that checks the credit balance. It is the same API for everyone, with standard authorization (OAuth 2.1) and fine-grained permissions called scopes.
Two ways in
| For | How | Key |
|---|---|---|
| An app used by many accounts (an LMS, an MCP server, a partner) | The account owner authorizes the app on a HotLearn screen (Authorization) | 1-hour key, refreshed automatically |
| Your own use (scripts, an AI assistant on your computer) | The owner creates the key under Integrations in the panel (Personal keys) | Personal key with a chosen validity |
Either way the key goes in the same header:
Authorization: Bearer {key}
First call in 5 minutes
- Sign in to HotLearn as the account owner and open Integrations in the menu.
- Under Personal keys, create a key with See your plan and credit balance checked. Copy it: it is shown only once.
- Run:
export HOTLEARN_KEY="paste-the-key-here"
curl https://hotlearn.com.br/api/v1/me \
-H "Authorization: Bearer $HOTLEARN_KEY"
The response brings the account, plan, subscription status and credit balance. The fields are in the Reference.
Register an app
An app that will be used by other accounts must be registered with HotLearn. Write to contatos@estudiosite.com with:
- the app name (shown on the authorization screen);
- the return address after authorization, always
https. It can be a subdomain pattern such ashttps://*.yourdomain.com/hotlearn/return, when each customer has its own subdomain; - whether the app serves many schools (or customers) in the same account. In that case,
external_idbecomes required in the authorization; - the scopes the app will request (Scopes);
- whether it runs on a server (gets a secret) or on the person's device (no secret, PKCE only).
You receive the client_id and, for server apps, the client_secret. The secret is shown only once: keep it like a password.
Addresses
| What | Address |
|---|---|
| API | https://hotlearn.com.br/api/v1 |
| Authorization screen | https://hotlearn.com.br/oauth/authorize |
| Key exchange and refresh | https://hotlearn.com.br/oauth/token |
| Revocation | https://hotlearn.com.br/oauth/revoke |
| Automatic discovery | https://hotlearn.com.br/.well-known/oauth-authorization-server |
| OpenAPI specification | https://hotlearn.com.br/api/v1/openapi.json |
Conventions
- JSON responses (UTF-8). A single item comes in
data; lists come as{ "data": [...], "next_cursor": "..." }. - Dates in ISO 8601, with time zone.
- Text language:
localein the query (pt_BR,en,es) or theAccept-Languageheader. With neither, Portuguese. - Errors in
application/problem+json, with acodethat never changes. Decide by thecode, not by the text (Errors and limits).
What the API offers
Version 1.0 beta:
- discovery, authorization, refresh and revocation;
GET /meand the connection itself (GET/PUT /connection);- catalog: product list (catalog, library and creations), detail with the chapter table of contents, PDF preview, cover, categories and license. The list and categories also serve the public showcase, without an account;
- acquisitions: acquire products with the account's credits (with safe retries) and the history;
- materials: each product's materials, the workbook as lesson HTML, Markdown, JSON and PDF (whole or by chapter), the SCORM course package and quizzes (Materials and files);
- publications: record what became a course or lesson on your side (shown to the school under Integrations);
- shortcuts: the "Send to…" button in HotLearn, which opens the right screen of your app (Connection), and the already-signed-in link (
POST /login-links); - subscribing through the app: people without an account go through HotLearn's sign-up and come back to authorize (
signup=1, in Authorization). - credits for usage: some heavy operations may use the account's credits; check your key's table at
GET /usage(Credits and usage limits).
During the beta, details may still change. Changes after launch are listed in the Changelog.
