Skip to content
HotLearn

API documentation

Reference

Every endpoint of the API, generated from the OpenAPI specification 1.0.0-beta. Examples use this server's address.

Download openapi.json

Discovery

Automatic discovery of the authorization endpoints.

GET /.well-known/oauth-authorization-server

Authorization server metadata

No access key

RFC 8414 document with the authorization, token and revocation endpoints, supported scopes and the PKCE method (S256).

Example

curl https://hotlearn.com.br/.well-known/oauth-authorization-server

Responses

200 Metadados application/json
{
    "issuer": "https://hotlearn.com.br",
    "authorization_endpoint": "https://hotlearn.com.br/oauth/authorize",
    "token_endpoint": "https://hotlearn.com.br/oauth/token",
    "revocation_endpoint": "https://hotlearn.com.br/oauth/revoke",
    "scopes_supported": [
        "catalog:public",
        "account:read",
        "catalog:read"
    ],
    "response_types_supported": [
        "code"
    ],
    "grant_types_supported": [
        "authorization_code",
        "refresh_token",
        "client_credentials"
    ],
    "code_challenge_methods_supported": [
        "S256"
    ],
    "token_endpoint_auth_methods_supported": [
        "client_secret_post",
        "client_secret_basic",
        "none"
    ],
    "service_documentation": "https://hotlearn.com.br/desenvolvedores"
}
GET /.well-known/oauth-protected-resource

API metadata (protected resource)

No access key

RFC 9728 document for /api/v1, pointing to the authorization server. Also served at /.well-known/oauth-protected-resource/api/v1. Used by MCP clients.

Example

curl https://hotlearn.com.br/.well-known/oauth-protected-resource

Responses

200 Metadados application/json
{
    "resource": "https://hotlearn.com.br/api/v1",
    "authorization_servers": [
        "https://hotlearn.com.br"
    ],
    "scopes_supported": [
        "catalog:public",
        "account:read",
        "catalog:read"
    ],
    "bearer_methods_supported": [
        "header"
    ],
    "resource_name": "HotLearn API",
    "resource_documentation": "https://hotlearn.com.br/desenvolvedores"
}

Authorization

OAuth 2.1 authorization: request access, exchange the code for a key, refresh and revoke.

GET /oauth/authorize

Request authorization (opens the HotLearn screen)

Open in the person's browser

Open this address in the person's browser. They sign in to HotLearn (if not yet), see what the app will be able to do and authorize it. Only the owner of an account with an active or trial subscription can authorize. When authorized, HotLearn returns to redirect_uri with code and state; when denied, with error=access_denied. A return address outside the app's registration never receives the person: HotLearn shows an error page.

Before anything else (including before sending to sign-up with signup=1), HotLearn checks the request: PKCE S256 (otherwise, code invalid_request) and external_id (external_id_required, invalid_external_id). A rejected request shows the error page with status 400, without returning to the app.

Reconnecting: if the account already has an active connection with the same app, the same external_id and the same exact redirect_uri (and already approved scopes), HotLearn approves without showing the screen and only issues a new key: the old keys keep working and display_name/url are not updated. When the owner approves on the screen (always for a new connection, or when the app sends prompt=consent), the connection is replaced: the old keys stop working and the name and address are updated.

Parameters

NameTypeDescription
response_typerequired string = code Sempre code.
client_idrequired string Identificador do aplicativo, recebido no cadastro.
redirect_urirequired string Endereço de retorno cadastrado (aceita padrão de subdomínio, ex.: https://*.exemplo.com/retorno). Em produção, só https; http vale apenas fora de produção (testes).
scoperequired string Escopos separados por espaço, ex.: account:read catalog:read.
staterequired string Valor aleatório seu; volta igual no retorno. Confira-o. Com signup=1, a pessoa pode voltar até 2 horas depois com o mesmo state: guarde-o por pelo menos 2 horas (recomendado: 2 h 15 min).
code_challengerequired string PKCE: BASE64URL(SHA256(code_verifier)).
code_challenge_methodrequired string = S256 Sempre S256.
external_idoptional string Identificador do cliente do seu lado (ex.: a escola; o id do tenant, um UUID cabe). Cada (conta, aplicativo, external_id) é uma conexão. De 1 a 64 caracteres entre A-Z a-z 0-9 . _ : -; fora disso (inclusive mais de 64), página de erro 400 com o código invalid_external_id — nunca é cortado. Opcional para aplicativo de uma conta só (ex.: assistente de IA); obrigatório para aplicativo cadastrado como de várias escolas (como o EstudioLMS): sem ele, página de erro 400 com o código external_id_required.
display_nameoptional string Opcional. Nome para mostrar ("Em nome de …"). Só é aceito quando o host de url é o mesmo do redirect_uri.
urloptional string Opcional. Endereço do seu lado (ex.: a escola), do mesmo host do redirect_uri.
promptoptional string Opcional. consent mostra a tela mesmo quando a conexão já existe. Aprovar na tela substitui a conexão: as chaves antigas param e o nome e o endereço são atualizados. Use quando quiser trocar ou atualizar a conexão.
signupoptional integer Opcional. Quem não está logado vai ao cadastro do HotLearn (aviso "Você está assinando por …") e, depois do plano ou do teste grátis, volta uma vez para esta tela. O pedido fica guardado por 2 horas (guarde o state por pelo menos esse tempo). PKCE e external_id são conferidos antes de mandar ao cadastro.

Example address

https://hotlearn.com.br/oauth/authorize?response_type=code&client_id=SEU_CLIENT_ID&redirect_uri=https%3A%2F%2Fescola.exemplo.com%2Fhotlearn%2Fretorno&scope=account%3Aread%20catalog%3Aread&state=ALEATORIO&code_challenge=DESAFIO&code_challenge_method=S256&external_id=42&display_name=Escola%20Exemplo&url=https%3A%2F%2Fescola.exemplo.com

Responses

302 Volta ao redirect_uri com code e state (ou error=access_denied).
400 Pedido inválido: página de erro do HotLearn, sem redirecionar. Código na página: invalid_request (PKCE ausente ou diferente de S256), external_id_required ou invalid_external_id.
401 Aplicativo desconhecido ou retorno fora do cadastro: página de erro do HotLearn, sem redirecionar.
POST /oauth/token

Exchange the code for a key, refresh, or get an app key

No access key

Three uses, by grant_type:

  • authorization_code: exchanges the code (valid for 10 minutes, single use) for the access key and the refresh key. Send the PKCE code_verifier.
  • refresh_token: exchanges the refresh key for a new pair. The old one stops working; using it again revokes the whole connection.
  • client_credentials: confidential apps only; the key is only valid for the public showcase (catalog:public).

The access key lasts 1 hour; the refresh key, 30 days without use. Errors follow the OAuth standard (error, error_description). Limit: 60 calls/min per app and address. After the connection was revoked, a refresh answers in the OAuth format ({"error": "invalid_grant", …}, status 400), not in application/problem+json: ask the owner to authorize again.

Example

curl -X POST https://hotlearn.com.br/oauth/token \
  -d grant_type=authorization_code \
  -d client_id=SEU_CLIENT_ID \
  -d client_secret=SEU_SEGREDO \
  -d code=CODIGO_RECEBIDO \
  -d redirect_uri=https://escola.exemplo.com/hotlearn/retorno \
  -d code_verifier=SEU_VERIFIER

Responses

200 Chaves emitidas application/json
{
    "token_type": "Bearer",
    "expires_in": 3600,
    "access_token": "eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiJ9…",
    "refresh_token": "def50200a1b2c3…"
}
400 Código ou chave de renovação inválido, vencido ou já usado application/json
{
    "error": "invalid_grant",
    "error_description": "The provided authorization grant (e.g., authorization code, resource owner credentials) or refresh token is invalid, expired, revoked…"
}
401 Aplicativo ou segredo inválido application/json
{
    "error": "invalid_client",
    "error_description": "Client authentication failed"
}
429 Limite de chamadas estourado (ver Retry-After)
POST /oauth/revoke

Revoke a key or disconnect

No access key

RFC 7009. With the refresh key, it revokes the whole connection (this is how an app disconnects). With the access key, it revokes only that key. Also answers 200 for an unknown key, as the RFC requires. Confidential apps send the secret. Limit: 30 calls per minute.

Example

curl -X POST https://hotlearn.com.br/oauth/revoke \
  -d token='def50200a1b2c3…' \
  -d client_id=SEU_CLIENT_ID \
  -d client_secret=SEU_SEGREDO

Responses

200 Revogado (ou chave desconhecida) application/json
[]
400 token ausente application/problem+json
{
    "type": "about:blank",
    "title": "Bad Request",
    "status": 400,
    "detail": "Envie a chave em `token`.",
    "code": "invalid_request"
}
401 Aplicativo ou segredo inválido application/problem+json
{
    "type": "about:blank",
    "title": "Unauthorized",
    "status": 401,
    "detail": "Aplicativo desconhecido.",
    "code": "invalid_client"
}

Account and connection

The connected account and the connection itself.

GET /api/v1/me

The connected account

Key with account:read

Account, who authorized, plan, subscription status and credit balance. Good for checking the connection right after authorizing. subscription carries status (trialing, active or inactive), on_trial, trial_ends_at and trial. During the trial, trial tells how many products the trial unlocks (max_products), how many were already acquired in it (used_products), how many are left (remaining_products) and whether acquiring during the trial spends credits (debits_credits); outside the trial it is null. Use it to show "free in the trial" instead of the cost and to warn when the trial is used up. There is no past_due or renewal date.

Example

curl https://hotlearn.com.br/api/v1/me \
  -H "Authorization: Bearer $HOTLEARN_KEY"

Responses

200 Conta application/json
{
    "data": {
        "account": {
            "id": 12,
            "name": "Escola Exemplo"
        },
        "user": {
            "id": 34,
            "name": "Ana Souza",
            "email": "ana@escola.exemplo.com",
            "role": "owner"
        },
        "plan": {
            "name": "Essencial",
            "slug": "essencial"
        },
        "subscription": {
            "status": "trialing",
            "on_trial": true,
            "trial_ends_at": "2026-11-05T13:20:28+00:00",
            "trial": {
                "max_products": 1,
                "used_products": 0,
                "remaining_products": 1,
                "debits_credits": false
            }
        },
        "credits": {
            "balance": 40,
            "unlimited": false
        },
        "scopes": [
            "account:read",
            "catalog:read"
        ]
    }
}
401 Chave ausente, inválida, vencida ou de conexão desfeita. unauthenticated: renove uma vez com a chave de renovação. connection_revoked: não renove; a escola desconectou, peça para conectar de novo. application/problem+json
{
    "type": "about:blank",
    "title": "Unauthorized",
    "status": 401,
    "detail": "Chave ausente, inválida ou vencida. Envie `Authorization: Bearer {chave}` ou renove a chave.",
    "code": "unauthenticated"
}
403 Falta o escopo da rota (insufficient_scope) ou a conta está inativa (account_inactive) application/problem+json
{
    "type": "about:blank",
    "title": "Forbidden",
    "status": 403,
    "detail": "A chave não tem a permissão necessária: account:read.",
    "code": "insufficient_scope",
    "scopes": [
        "account:read"
    ]
}
429 Limite de chamadas estourado (rate_limited); veja Retry-After. Mais de 300 respostas 401 sem chave válida por minuto, do mesmo endereço de rede, também bloqueiam esse endereço com 429. application/problem+json
{
    "type": "about:blank",
    "title": "Too Many Requests",
    "status": 429,
    "detail": "Muitas chamadas. Tente de novo depois do tempo indicado em `Retry-After`.",
    "code": "rate_limited"
}
GET /api/v1/usage

Credits for API usage

Key with account:read

The table that applies to this key: for each metered action (export_pdf_section, export_pdf, export_scorm, acquisition, publication, login_link), how many credits it costs, whether charging is on (charging), the monthly free allowance and the daily limit, with what was already used. Check it before a heavy operation to warn the person. Details in the Credits and usage limits guide.

With charging: false, the rule is in simulation: usage is counted, but no credits are taken (X-Credits-Charged: 0). The daily limit applies either way. The unlimited plan is not exempt by itself: what the table says for it applies.

Example

curl https://hotlearn.com.br/api/v1/usage \
  -H "Authorization: Bearer $HOTLEARN_KEY"

Responses

200 Tabela vigente application/json
{
    "data": {
        "balance": 4200,
        "unlimited": false,
        "actions": [
            {
                "action": "export_pdf",
                "credits": 20,
                "charging": true,
                "free_monthly": 20,
                "used_this_month": 20,
                "daily_limit": 50,
                "used_today": 3
            },
            {
                "action": "publication",
                "credits": 0,
                "charging": false,
                "free_monthly": null,
                "used_this_month": 0,
                "daily_limit": null,
                "used_today": 0
            }
        ]
    }
}
401 Chave ausente, inválida, vencida ou de conexão desfeita. unauthenticated: renove uma vez com a chave de renovação. connection_revoked: não renove; a escola desconectou, peça para conectar de novo. application/problem+json
{
    "type": "about:blank",
    "title": "Unauthorized",
    "status": 401,
    "detail": "Chave ausente, inválida ou vencida. Envie `Authorization: Bearer {chave}` ou renove a chave.",
    "code": "unauthenticated"
}
403 Falta o escopo da rota (insufficient_scope) ou a conta está inativa (account_inactive) application/problem+json
{
    "type": "about:blank",
    "title": "Forbidden",
    "status": 403,
    "detail": "A chave não tem a permissão necessária: account:read.",
    "code": "insufficient_scope",
    "scopes": [
        "account:read"
    ]
}
429 Limite de chamadas estourado (rate_limited); veja Retry-After. Mais de 300 respostas 401 sem chave válida por minuto, do mesmo endereço de rede, também bloqueiam esse endereço com 429. application/problem+json
{
    "type": "about:blank",
    "title": "Too Many Requests",
    "status": 429,
    "detail": "Muitas chamadas. Tente de novo depois do tempo indicado em `Retry-After`.",
    "code": "rate_limited"
}
GET /api/v1/connection

The connection itself

Any app key

What HotLearn knows about this key's connection: app, external_id, name and address, "open there" link and actions. A personal key has no connection (404 no_connection).

Example

curl https://hotlearn.com.br/api/v1/connection \
  -H "Authorization: Bearer $HOTLEARN_KEY"

Responses

200 Conexão application/json
{
    "data": {
        "id": 7,
        "client": {
            "id": "01a13fdf-7c67-70b3-a3b7-bb60430403d8",
            "name": "EstudioLMS"
        },
        "external_id": "42",
        "display_name": "Escola Exemplo",
        "url": "https://escola.exemplo.com",
        "open_url_template": "https://escola.exemplo.com/hotlearn/enviar?produto={product}&material={material}&acao={action}",
        "actions": [
            {
                "key": "course",
                "label": "Criar um curso novo",
                "materials": [
                    "apostila"
                ]
            }
        ],
        "scopes": [
            "account:read",
            "catalog:read",
            "connection:write"
        ],
        "authorized_by": {
            "name": "Ana Souza"
        },
        "authorized_at": "2026-10-15T14:02:11-03:00",
        "last_used_at": "2026-10-16T09:40:00-03:00"
    }
}
401 Chave ausente, inválida, vencida ou de conexão desfeita. unauthenticated: renove uma vez com a chave de renovação. connection_revoked: não renove; a escola desconectou, peça para conectar de novo. application/problem+json
{
    "type": "about:blank",
    "title": "Unauthorized",
    "status": 401,
    "detail": "Chave ausente, inválida ou vencida. Envie `Authorization: Bearer {chave}` ou renove a chave.",
    "code": "unauthenticated"
}
404 Chave pessoal (sem conexão) application/problem+json
{
    "type": "about:blank",
    "title": "Not Found",
    "status": 404,
    "detail": "Esta chave não pertence a uma conexão de aplicativo (chave pessoal).",
    "code": "no_connection"
}
PUT /api/v1/connection

Teach HotLearn how to open your side

Key with connection:write

Updates display_name, url, open_url_template and actions. This is where the "Send to {display_name}" button on the subscriber's materials comes from. open_url_template must be https (in production) and on the same host as url; use {product}, {material} and {action} where needed. Missing fields stay as they are.

Example

curl -X PUT https://hotlearn.com.br/api/v1/connection \
  -H "Authorization: Bearer $HOTLEARN_KEY" \
  -H "Content-Type: application/json" \
  -d '{"display_name":"Escola Exemplo","url":"https://escola.exemplo.com","open_url_template":"https://escola.exemplo.com/hotlearn/enviar?produto={product}&material={material}&acao={action}","actions":[{"key":"course","label":"Criar um curso novo","materials":["apostila"]},{"key":"scorm","label":"Criar uma aula SCORM","materials":["scorm"]}]}'

Responses

200 Conexão atualizada application/json
{
    "data": {
        "id": 7,
        "client": {
            "id": "01a13fdf-7c67-70b3-a3b7-bb60430403d8",
            "name": "EstudioLMS"
        },
        "external_id": "42",
        "display_name": "Escola Exemplo",
        "url": "https://escola.exemplo.com",
        "open_url_template": "https://escola.exemplo.com/hotlearn/enviar?produto={product}&material={material}&acao={action}",
        "actions": [
            {
                "key": "course",
                "label": "Criar um curso novo",
                "materials": [
                    "apostila"
                ]
            }
        ],
        "scopes": [
            "account:read",
            "catalog:read",
            "connection:write"
        ],
        "authorized_by": {
            "name": "Ana Souza"
        },
        "authorized_at": "2026-10-15T14:02:11-03:00",
        "last_used_at": "2026-10-16T09:40:00-03:00"
    }
}
401 Chave ausente, inválida, vencida ou de conexão desfeita. unauthenticated: renove uma vez com a chave de renovação. connection_revoked: não renove; a escola desconectou, peça para conectar de novo. application/problem+json
{
    "type": "about:blank",
    "title": "Unauthorized",
    "status": 401,
    "detail": "Chave ausente, inválida ou vencida. Envie `Authorization: Bearer {chave}` ou renove a chave.",
    "code": "unauthenticated"
}
403 Falta o escopo da rota (insufficient_scope) ou a conta está inativa (account_inactive) application/problem+json
{
    "type": "about:blank",
    "title": "Forbidden",
    "status": 403,
    "detail": "A chave não tem a permissão necessária: account:read.",
    "code": "insufficient_scope",
    "scopes": [
        "account:read"
    ]
}
404 Chave pessoal (sem conexão)
422 Dados inválidos (validation_failed) application/problem+json
{
    "type": "about:blank",
    "title": "Unprocessable Content",
    "status": 422,
    "detail": "Dados inválidos.",
    "code": "validation_failed",
    "errors": {
        "open_url_template": [
            "Precisa ser do mesmo domínio de `url`."
        ]
    }
}

Catalog

Catalog: products, table of contents, preview, cover, categories and license.

GET /api/v1/products

List products

Key with catalog:readcatalog:public

Catalog (default, in the requested language), the account's library (collection=acquired) or the account's creations (collection=created). Paginated by cursor.

  • owned: the account already acquired it (or created it).
  • exportable: there is a content matrix (the customized copy, the catalog original or the creation's own), which always exports (PDF), or an account SCORM course without errors. When false, export_block carries {code, message}: no_matrix (no material at all) or scorm_invalid (only SCORM courses, all with verification errors). Exportable: export_block: null.
  • The exportable=true filter runs in the database and does not run the SCORM verification: a product whose only SCORM courses have errors shows up in it, but comes with exportable: false and scorm_invalid.

With an app key without an account (catalog:public), only the catalog and only public fields (no owned, exportable, credit_cost, audience and objective).

Parameters

NameTypeDescription
collectionoptional string catalog (padrão), acquired ou created.
qoptional string Busca no título, na descrição curta, no público e no objetivo (não busca no sumário).
categoryoptional string Categoria: id ou slug.
leveloptional string iniciante, intermediario ou avancado.
exportableoptional boolean true ou false. Feito no banco, sem a verificação do SCORM: confira o exportable de cada item.
localeoptional string Idioma do acervo (pt_BR, en, es); também pelo Accept-Language.
limitoptional integer De 1 a 50 (padrão 12).
cursoroptional string O next_cursor da página anterior.

Example

curl "https://hotlearn.com.br/api/v1/products?collection=catalog&limit=12" \
  -H "Authorization: Bearer $HOTLEARN_KEY"

Responses

200 Página de produtos application/json
{
    "data": [
        {
            "id": 136,
            "slug": "arte-e-cultura",
            "title": "Arte e Cultura",
            "short_description": "Apostila para turmas do ensino médio.",
            "locale": "pt_BR",
            "category": {
                "id": 5,
                "slug": "educacao-e-ead",
                "name": "Educação e EAD"
            },
            "level": "iniciante",
            "level_label": "Iniciante",
            "workload": "30h",
            "contents": [
                "apostila",
                "quiz_lms"
            ],
            "cover_url": "https://hotlearn.com.br/storage/negocio-pronto/products/136/capa.jpg",
            "published_at": "2026-10-08T14:38:56+00:00",
            "origin": "catalog",
            "audience": "Professores do ensino médio",
            "objective": "Trabalhar arte e cultura com projetos.",
            "credit_cost": 1000,
            "version": "1.0",
            "owned": true,
            "exportable": true,
            "export_block": null,
            "publications_count": 1
        },
        {
            "id": 141,
            "slug": "oficina-de-teatro",
            "title": "Oficina de Teatro",
            "short_description": "Curso SCORM para turmas do ensino médio.",
            "locale": "pt_BR",
            "category": {
                "id": 5,
                "slug": "educacao-e-ead",
                "name": "Educação e EAD"
            },
            "level": "iniciante",
            "level_label": "Iniciante",
            "workload": "30h",
            "contents": [],
            "cover_url": "https://hotlearn.com.br/storage/negocio-pronto/products/141/capa.jpg",
            "published_at": null,
            "origin": "created",
            "audience": "Professores do ensino médio",
            "objective": "Trabalhar arte e cultura com projetos.",
            "credit_cost": 0,
            "version": "1.0",
            "owned": true,
            "exportable": false,
            "export_block": {
                "code": "scorm_invalid",
                "message": "Os cursos SCORM deste produto têm erros e ainda não podem ser exportados. Corrija-os no HotLearn."
            },
            "publications_count": 0
        }
    ],
    "next_cursor": "eyJpZCI6MTM2LCJfcG9pbnRzVG9OZXh0SXRlbXMiOnRydWV9"
}
400 O cursor informado é inválido. Recomece a lista sem ele. application/problem+json
{
    "type": "about:blank",
    "title": "Bad Request",
    "status": 400,
    "detail": "O `cursor` informado é inválido. Recomece a lista sem ele.",
    "code": "invalid_cursor"
}
401 Chave ausente, inválida, vencida ou de conexão desfeita. unauthenticated: renove uma vez com a chave de renovação. connection_revoked: não renove; a escola desconectou, peça para conectar de novo. application/problem+json
{
    "type": "about:blank",
    "title": "Unauthorized",
    "status": 401,
    "detail": "Chave ausente, inválida ou vencida. Envie `Authorization: Bearer {chave}` ou renove a chave.",
    "code": "unauthenticated"
}
403 Falta o escopo da rota (insufficient_scope) ou a conta está inativa (account_inactive) application/problem+json
{
    "type": "about:blank",
    "title": "Forbidden",
    "status": 403,
    "detail": "A chave não tem a permissão necessária: account:read.",
    "code": "insufficient_scope",
    "scopes": [
        "account:read"
    ]
}
422 Dados inválidos. application/problem+json
{
    "type": "about:blank",
    "title": "Unprocessable Content",
    "status": 422,
    "detail": "Dados inválidos.",
    "code": "validation_failed",
    "errors": {
        "collection": [
            "Use catalog, acquired ou created."
        ]
    }
}
429 Limite de chamadas estourado (rate_limited); veja Retry-After. Mais de 300 respostas 401 sem chave válida por minuto, do mesmo endereço de rede, também bloqueiam esse endereço com 429. application/problem+json
{
    "type": "about:blank",
    "title": "Too Many Requests",
    "status": 429,
    "detail": "Muitas chamadas. Tente de novo depois do tempo indicado em `Retry-After`.",
    "code": "rate_limited"
}
GET /api/v1/products/{product}

Product detail, with table of contents

Key with catalog:read

Everything in the list plus the table of contents (toc), the license and the preview and cover links.

toc are the matrix sections, split at the main headings: kind is module, intro (short opening) or appendix (glossary, references, answer key…). source tells where it came from: personalizada (the copy the account edited), original (the catalog one) or criacao (creation). Reading through the API never creates the customized copy.

Another account's product, or one taken down and not acquired: 404.

exportable and export_block follow the same rule as the list: export_block is null when it exports; otherwise {code, message} with no_matrix or scorm_invalid.

Parameters

NameTypeDescription
productrequired integer Identificador do produto.

Example

curl https://hotlearn.com.br/api/v1/products/136 \
  -H "Authorization: Bearer $HOTLEARN_KEY"

Responses

200 Produto application/json
{
    "data": {
        "id": 136,
        "slug": "arte-e-cultura",
        "title": "Arte e Cultura",
        "short_description": "Apostila para turmas do ensino médio.",
        "locale": "pt_BR",
        "category": {
            "id": 5,
            "slug": "educacao-e-ead",
            "name": "Educação e EAD"
        },
        "level": "iniciante",
        "level_label": "Iniciante",
        "workload": "30h",
        "contents": [
            "apostila",
            "quiz_lms"
        ],
        "cover_url": "https://hotlearn.com.br/storage/negocio-pronto/products/136/capa.jpg",
        "published_at": "2026-10-08T14:38:56+00:00",
        "origin": "catalog",
        "audience": "Professores do ensino médio",
        "objective": "Trabalhar arte e cultura com projetos.",
        "credit_cost": 1000,
        "version": "1.0",
        "owned": true,
        "exportable": true,
        "export_block": null,
        "source": "personalizada",
        "toc": [
            {
                "index": 0,
                "title": "Como aproveitar esta apostila",
                "kind": "intro",
                "words": 310,
                "est_bytes": 4200
            },
            {
                "index": 1,
                "title": "Capítulo 1 — Arte para quê?",
                "kind": "module",
                "words": 1194,
                "est_bytes": 14706
            },
            {
                "index": 2,
                "title": "Glossário",
                "kind": "appendix",
                "words": 420,
                "est_bytes": 5120
            }
        ],
        "license": {
            "id": 1,
            "title": "Licença Comercial",
            "version": "2.0"
        },
        "has_preview": true,
        "links": {
            "preview": "https://hotlearn.com.br/api/v1/products/136/preview",
            "cover": "https://hotlearn.com.br/api/v1/products/136/cover",
            "license": "https://hotlearn.com.br/api/v1/licenses/1"
        }
    }
}
401 Chave ausente, inválida, vencida ou de conexão desfeita. unauthenticated: renove uma vez com a chave de renovação. connection_revoked: não renove; a escola desconectou, peça para conectar de novo. application/problem+json
{
    "type": "about:blank",
    "title": "Unauthorized",
    "status": 401,
    "detail": "Chave ausente, inválida ou vencida. Envie `Authorization: Bearer {chave}` ou renove a chave.",
    "code": "unauthenticated"
}
403 Falta o escopo da rota (insufficient_scope) ou a conta está inativa (account_inactive) application/problem+json
{
    "type": "about:blank",
    "title": "Forbidden",
    "status": 403,
    "detail": "A chave não tem a permissão necessária: account:read.",
    "code": "insufficient_scope",
    "scopes": [
        "account:read"
    ]
}
404 Não encontrado. application/problem+json
{
    "type": "about:blank",
    "title": "Not Found",
    "status": 404,
    "detail": "Não encontrado.",
    "code": "not_found"
}
GET /api/v1/products/{product}/preview

PDF preview

Key with catalog:read

The product's sample PDF, delivered directly (application/pdf). 404 when the product has no preview. Requires an account key with catalog:read: the public showcase (catalog:public, no account) has only the list, the cover and the categories, no preview.

Parameters

NameTypeDescription
productrequired integer Identificador do produto.

Example

curl https://hotlearn.com.br/api/v1/products/136/preview \
  -H "Authorization: Bearer $HOTLEARN_KEY"

Responses

200 O arquivo PDF application/pdf
401 Chave ausente, inválida, vencida ou de conexão desfeita. unauthenticated: renove uma vez com a chave de renovação. connection_revoked: não renove; a escola desconectou, peça para conectar de novo. application/problem+json
{
    "type": "about:blank",
    "title": "Unauthorized",
    "status": 401,
    "detail": "Chave ausente, inválida ou vencida. Envie `Authorization: Bearer {chave}` ou renove a chave.",
    "code": "unauthenticated"
}
404 Não encontrado. application/problem+json
{
    "type": "about:blank",
    "title": "Not Found",
    "status": 404,
    "detail": "Não encontrado.",
    "code": "not_found"
}
GET /api/v1/products/{product}/cover

Cover

Key with catalog:readcatalog:public

The cover image, delivered directly. To show it on a page, the list's cover_url is already a public address, no key needed.

Parameters

NameTypeDescription
productrequired integer Identificador do produto.

Example

curl https://hotlearn.com.br/api/v1/products/136/cover \
  -H "Authorization: Bearer $HOTLEARN_KEY"

Responses

200 A imagem image/*
401 Chave ausente, inválida, vencida ou de conexão desfeita. unauthenticated: renove uma vez com a chave de renovação. connection_revoked: não renove; a escola desconectou, peça para conectar de novo. application/problem+json
{
    "type": "about:blank",
    "title": "Unauthorized",
    "status": 401,
    "detail": "Chave ausente, inválida ou vencida. Envie `Authorization: Bearer {chave}` ou renove a chave.",
    "code": "unauthenticated"
}
404 Não encontrado. application/problem+json
{
    "type": "about:blank",
    "title": "Not Found",
    "status": 404,
    "detail": "Não encontrado.",
    "code": "not_found"
}
GET /api/v1/categories

Categories

Key with catalog:readcatalog:public

All categories, with how many published catalog products each has in the requested language. Short list: returned whole, no cursor.

Example

curl https://hotlearn.com.br/api/v1/categories \
  -H "Authorization: Bearer $HOTLEARN_KEY"

Responses

200 Categorias application/json
{
    "data": [
        {
            "id": 5,
            "slug": "educacao-e-ead",
            "name": "Educação e EAD",
            "products_count": 12
        }
    ]
}
401 Chave ausente, inválida, vencida ou de conexão desfeita. unauthenticated: renove uma vez com a chave de renovação. connection_revoked: não renove; a escola desconectou, peça para conectar de novo. application/problem+json
{
    "type": "about:blank",
    "title": "Unauthorized",
    "status": 401,
    "detail": "Chave ausente, inválida ou vencida. Envie `Authorization: Bearer {chave}` ou renove a chave.",
    "code": "unauthenticated"
}
GET /api/v1/licenses/{license}

Commercial license

Key with catalog:read

License title, version and text (HTML), to show before acquiring. The id comes in license in the product detail.

Parameters

NameTypeDescription
licenserequired integer Identificador da licença.

Example

curl https://hotlearn.com.br/api/v1/licenses/1 \
  -H "Authorization: Bearer $HOTLEARN_KEY"

Responses

200 Licença application/json
{
    "data": {
        "id": 1,
        "title": "Licença Comercial",
        "version": "2.0",
        "active": true,
        "body_html": "<h3>Licença Comercial</h3><p>…</p>"
    }
}
401 Chave ausente, inválida, vencida ou de conexão desfeita. unauthenticated: renove uma vez com a chave de renovação. connection_revoked: não renove; a escola desconectou, peça para conectar de novo. application/problem+json
{
    "type": "about:blank",
    "title": "Unauthorized",
    "status": 401,
    "detail": "Chave ausente, inválida ou vencida. Envie `Authorization: Bearer {chave}` ou renove a chave.",
    "code": "unauthenticated"
}
404 Não encontrado. application/problem+json
{
    "type": "about:blank",
    "title": "Not Found",
    "status": 404,
    "detail": "Não encontrado.",
    "code": "not_found"
}

Acquisitions

Acquire products with the account's credits and see the history.

POST /api/v1/acquisitions

Acquire a product

Key with acquisitions:write

Unlocks the product for the account, with the same rule as the HotLearn button: debits credits (the cost is in credit_cost), respects the trial limit, and an unlimited plan does not debit.

  • Idempotency-Key required. Repeating the call with the same key returns the same response, without charging again.
  • Product already acquired: 200 with charged: false, no charge.
  • license_version: the license version shown to the person (GET /licenses/{id}). If it changed, 409 license_outdated with the current version.
  • on_behalf_of: who clicked on the app side (kept in HotLearn's audit).
  • The HotLearn signer is whoever authorized the connection (or, if they left the account, the owner). With neither: 409 connection_owner_missing. May use account credits according to the usage table (GET /usage): a charged response carries X-Credits-Charged and X-Credits-Balance; without balance, 402 insufficient_credits; over the daily limit, 429 daily_limit_reached.

Parameters

NameTypeDescription
Idempotency-Keyrequired string Obrigatório: um valor único por operação (ex.: um UUID). Sem ele, 400 idempotency_key_required. A resposta (inclusive 4xx) fica guardada por 24 horas e volta igual para a mesma chave; mesma chave com outros dados, 422 idempotency_key_reused; chamada simultânea com a mesma chave, 409 idempotency_in_progress. Use uma chave nova a cada nova tentativa (por exemplo, depois de corrigir o pedido).

Example

curl -X POST https://hotlearn.com.br/api/v1/acquisitions \
  -H "Authorization: Bearer $HOTLEARN_KEY" \
  -H "Idempotency-Key: 6f1c2e8a-3b0d-4c55-9a7e-2f1d9b8c4a10" \
  -H "Content-Type: application/json" \
  -d '{"product_id":136,"license_version":"2.0","on_behalf_of":{"external_user_id":"u-9","name":"Coordenação da Escola","email":"coordenacao@escola.exemplo.com"}}'

Responses

201 Adquirido agora application/json
{
    "data": {
        "acquisition": {
            "id": 58,
            "product": {
                "id": 136,
                "slug": "arte-e-cultura",
                "title": "Arte e Cultura"
            },
            "acquired_at": "2026-10-16T10:12:00-03:00",
            "source": "plan_credit",
            "credits_spent": 2,
            "license_version": "2.0",
            "acquired_by": {
                "name": "Ana Souza"
            },
            "via": {
                "app": "EstudioLMS",
                "client_id": "01a13fdf-7c67-70b3-a3b7-bb60430403d8",
                "on_behalf_of": {
                    "external_user_id": "u-9",
                    "name": "Coordenação da Escola",
                    "email": "coordenacao@escola.exemplo.com"
                }
            }
        },
        "charged": true,
        "balance": {
            "credits": 38,
            "unlimited": false
        }
    }
}
200 Já era da conta (charged: false, nada cobrado)
400 Envie o cabeçalho Idempotency-Key (um valor único por operação). application/problem+json
{
    "type": "about:blank",
    "title": "Bad Request",
    "status": 400,
    "detail": "Envie o cabeçalho `Idempotency-Key` (um valor único por operação).",
    "code": "idempotency_key_required"
}
402 A conta não tem créditos suficientes para este produto. application/problem+json
{
    "type": "about:blank",
    "title": "Payment Required",
    "status": 402,
    "detail": "A conta não tem créditos suficientes para este produto.",
    "code": "insufficient_credits",
    "required": 5,
    "available": 1
}
403 A assinatura da conta não está ativa. Para adquirir, a conta precisa de assinatura ativa ou do período de teste. application/problem+json
{
    "type": "about:blank",
    "title": "Forbidden",
    "status": 403,
    "detail": "A assinatura da conta não está ativa. Para adquirir, a conta precisa de assinatura ativa ou do período de teste.",
    "code": "subscription_inactive"
}
404 Não encontrado. application/problem+json
{
    "type": "about:blank",
    "title": "Not Found",
    "status": 404,
    "detail": "Não encontrado.",
    "code": "not_found"
}
409 A licença mudou: a versão vigente é 2.0. Mostre a licença nova à pessoa e envie essa versão. application/problem+json
{
    "type": "about:blank",
    "title": "Conflict",
    "status": 409,
    "detail": "A licença mudou: a versão vigente é 2.0. Mostre a licença nova à pessoa e envie essa versão.",
    "code": "license_outdated",
    "license": {
        "id": 1,
        "version": "2.0"
    }
}
422 Dados inválidos (validation_failed) application/problem+json
{
    "type": "about:blank",
    "title": "Unprocessable Content",
    "status": 422,
    "detail": "Dados inválidos.",
    "code": "validation_failed",
    "errors": {
        "open_url_template": [
            "Precisa ser do mesmo domínio de `url`."
        ]
    }
}
GET /api/v1/acquisitions

Acquisition history

Key with acquisitions:read

Everything the account acquired, newest first, through HotLearn or any app: product, date, source (plan_credit, trial, unlimited, admin), credits spent, license version and, when it came from an app, which one (via). Optional product_id filter. Paginated by cursor.

Parameters

NameTypeDescription
product_idoptional integer Só as aquisições deste produto.
limitoptional integer De 1 a 50 (padrão 12).
cursoroptional string O next_cursor da página anterior.

Example

curl "https://hotlearn.com.br/api/v1/acquisitions?limit=12" \
  -H "Authorization: Bearer $HOTLEARN_KEY"

Responses

200 Página de aquisições application/json
{
    "data": [
        {
            "id": 58,
            "product": {
                "id": 136,
                "slug": "arte-e-cultura",
                "title": "Arte e Cultura"
            },
            "acquired_at": "2026-10-16T10:12:00-03:00",
            "source": "plan_credit",
            "credits_spent": 2,
            "license_version": "2.0",
            "acquired_by": {
                "name": "Ana Souza"
            },
            "via": {
                "app": "EstudioLMS",
                "client_id": "01a13fdf-7c67-70b3-a3b7-bb60430403d8",
                "on_behalf_of": {
                    "external_user_id": "u-9",
                    "name": "Coordenação da Escola",
                    "email": "coordenacao@escola.exemplo.com"
                }
            }
        }
    ],
    "next_cursor": null
}
401 Chave ausente, inválida, vencida ou de conexão desfeita. unauthenticated: renove uma vez com a chave de renovação. connection_revoked: não renove; a escola desconectou, peça para conectar de novo. application/problem+json
{
    "type": "about:blank",
    "title": "Unauthorized",
    "status": 401,
    "detail": "Chave ausente, inválida ou vencida. Envie `Authorization: Bearer {chave}` ou renove a chave.",
    "code": "unauthenticated"
}
403 Falta o escopo da rota (insufficient_scope) ou a conta está inativa (account_inactive) application/problem+json
{
    "type": "about:blank",
    "title": "Forbidden",
    "status": 403,
    "detail": "A chave não tem a permissão necessária: account:read.",
    "code": "insufficient_scope",
    "scopes": [
        "account:read"
    ]
}

Materials and files

A product's materials (matrix, SCORM course, whiteboard) and file requests.

GET /api/v1/products/{product}/materials

Product materials

Key with materials:read

What the account has of this product:

  • the matrix: the copy the account customized (source: personalizada) or, without a copy, the catalog original (original). Reading never creates the copy;
  • what the account created on the product: other matrices, SCORM courses, whiteboards (criacao).

formats lists the files that can already be requested. A SCORM course has valid and errors (with errors, the package is not generated). Requires the product acquired (or created by the account) and an active or trial subscription.

When the school customizes a catalog product, the matrix becomes a copy with a new id (source goes from original to personalizada). List the materials again instead of keeping the id; older publications warn with outdated_reason: "personalized" and current_material_id.

Parameters

NameTypeDescription
productrequired integer Identificador do produto.

Example

curl https://hotlearn.com.br/api/v1/products/136/materials \
  -H "Authorization: Bearer $HOTLEARN_KEY"

Responses

200 Materiais application/json
{
    "data": [
        {
            "id": 161,
            "product_id": 136,
            "type": "apostila",
            "title": "Arte e Cultura",
            "source": "personalizada",
            "version": "1790850188",
            "updated_at": "2026-10-08T14:03:08+00:00",
            "formats": [
                "pdf"
            ],
            "exportable": true,
            "sections_count": 26
        },
        {
            "id": 162,
            "product_id": 136,
            "type": "scorm",
            "title": "Curso de Arte",
            "source": "criacao",
            "version": "1791390405",
            "updated_at": "2026-10-14T20:06:45+00:00",
            "formats": [
                "scorm12",
                "scorm2004",
                "html5"
            ],
            "exportable": true,
            "valid": true,
            "errors": []
        }
    ]
}
401 Chave ausente, inválida, vencida ou de conexão desfeita. unauthenticated: renove uma vez com a chave de renovação. connection_revoked: não renove; a escola desconectou, peça para conectar de novo. application/problem+json
{
    "type": "about:blank",
    "title": "Unauthorized",
    "status": 401,
    "detail": "Chave ausente, inválida ou vencida. Envie `Authorization: Bearer {chave}` ou renove a chave.",
    "code": "unauthenticated"
}
403 A conta ainda não adquiriu este produto. Adquira para ler os materiais. application/problem+json
{
    "type": "about:blank",
    "title": "Forbidden",
    "status": 403,
    "detail": "A conta ainda não adquiriu este produto. Adquira para ler os materiais.",
    "code": "not_acquired"
}
404 Não encontrado. application/problem+json
{
    "type": "about:blank",
    "title": "Not Found",
    "status": 404,
    "detail": "Não encontrado.",
    "code": "not_found"
}
GET /api/v1/materials/{material}

A material

Key with materials:read

Material data, with the matrix sections (chapters) or the SCORM course warnings. The response carries ETag with the version: send it in If-None-Match and, if nothing changed, the response is 304, with no body. The version changes on every save.

Parameters

NameTypeDescription
materialrequired integer Identificador do material.

Example

curl https://hotlearn.com.br/api/v1/materials/162 \
  -H "Authorization: Bearer $HOTLEARN_KEY"

Responses

200 Material application/json
{
    "data": {
        "id": 161,
        "product_id": 136,
        "type": "apostila",
        "title": "Arte e Cultura",
        "source": "personalizada",
        "version": "1790850188",
        "updated_at": "2026-10-08T14:03:08+00:00",
        "formats": [
            "pdf"
        ],
        "exportable": true,
        "sections_count": 26,
        "sections": [
            {
                "index": 0,
                "title": "Capítulo 1 — Arte para quê?",
                "kind": "module",
                "words": 1194,
                "est_bytes": 14706
            }
        ]
    }
}
304 Não mudou desde a versão do If-None-Match
401 Chave ausente, inválida, vencida ou de conexão desfeita. unauthenticated: renove uma vez com a chave de renovação. connection_revoked: não renove; a escola desconectou, peça para conectar de novo. application/problem+json
{
    "type": "about:blank",
    "title": "Unauthorized",
    "status": 401,
    "detail": "Chave ausente, inválida ou vencida. Envie `Authorization: Bearer {chave}` ou renove a chave.",
    "code": "unauthenticated"
}
403 A conta ainda não adquiriu este produto. Adquira para ler os materiais. application/problem+json
{
    "type": "about:blank",
    "title": "Forbidden",
    "status": 403,
    "detail": "A conta ainda não adquiriu este produto. Adquira para ler os materiais.",
    "code": "not_acquired"
}
404 Não encontrado. application/problem+json
{
    "type": "about:blank",
    "title": "Not Found",
    "status": 404,
    "detail": "Não encontrado.",
    "code": "not_found"
}
GET /api/v1/materials/{material}/content

Matrix content

Key with materials:read

The whole matrix, in the requested format:

  • html: lesson HTML, to paste into an LMS editor. Only simple structure (headings, paragraphs, lists, tables, quotes, images) and color as inline style: boxes become one-cell tables with a background, which editors (such as CKEditor 4) keep when editing. No classes, no <style>, no script. Question answers go in an Answer key block at the end.
  • markdown: for AI, MCP and text tools. Boxes become quotes; checklists become - [ ]; answer key at the end.
  • json: the editor document (the same as HotLearn's "Export JSON").

Labels ("Answer key", "Question", "Activity") come in the material's language. ETag and If-None-Match as in GET /materials/{id}.

Parameters

NameTypeDescription
materialrequired integer Identificador da matriz.
formatoptional string html (padrão), markdown ou json.

Example

curl "https://hotlearn.com.br/api/v1/materials/161/content?format=html" \
  -H "Authorization: Bearer $HOTLEARN_KEY"

Responses

200 Conteúdo application/json
{
    "data": {
        "material_id": 161,
        "version": "1790850188",
        "source": "personalizada",
        "format": "html",
        "title": "Inglês para Viagem",
        "content": "<h2>O cartão de embarque</h2><p>Boarding é quando o embarque começa…</p><table cellpadding=\"0\" cellspacing=\"0\" style=\"width:100%;border-collapse:collapse;margin:16px 0\"><tr><td style=\"background:#e8f3f5;border-left:4px solid #1d8a9c;padding:12px 16px\"><p><strong>Dica</strong></p><p>Confira o painel.</p></td></tr></table>…<h2>Gabarito</h2><ol style=\"list-style:none;padding-left:0\"><li>Questão 1. D) Até 22:35</li></ol>"
    }
}
304 Não mudou
401 Chave ausente, inválida, vencida ou de conexão desfeita. unauthenticated: renove uma vez com a chave de renovação. connection_revoked: não renove; a escola desconectou, peça para conectar de novo. application/problem+json
{
    "type": "about:blank",
    "title": "Unauthorized",
    "status": 401,
    "detail": "Chave ausente, inválida ou vencida. Envie `Authorization: Bearer {chave}` ou renove a chave.",
    "code": "unauthenticated"
}
403 A conta ainda não adquiriu este produto. Adquira para ler os materiais. application/problem+json
{
    "type": "about:blank",
    "title": "Forbidden",
    "status": 403,
    "detail": "A conta ainda não adquiriu este produto. Adquira para ler os materiais.",
    "code": "not_acquired"
}
404 Não encontrado. application/problem+json
{
    "type": "about:blank",
    "title": "Not Found",
    "status": 404,
    "detail": "Não encontrado.",
    "code": "not_found"
}
422 Formato não disponível para este material. Use: html, markdown, json. application/problem+json
{
    "type": "about:blank",
    "title": "Unprocessable Content",
    "status": 422,
    "detail": "Formato não disponível para este material. Use: html, markdown, json.",
    "code": "format_unavailable",
    "formats": [
        "html",
        "markdown",
        "json"
    ]
}
GET /api/v1/materials/{material}/sections/{section}

One matrix chapter

Key with materials:read

One table-of-contents section (index from GET /materials/{id}), as html or markdown. The chapter title comes in title, outside the body: in the LMS it becomes the lesson name. The answer key of the chapter's questions goes at the end of the body.

Parameters

NameTypeDescription
materialrequired integer Identificador da matriz.
sectionrequired integer index da seção.
formatoptional string html (padrão) ou markdown.

Example

curl "https://hotlearn.com.br/api/v1/materials/161/sections/1?format=html" \
  -H "Authorization: Bearer $HOTLEARN_KEY"

Responses

200 Capítulo application/json
{
    "data": {
        "material_id": 161,
        "version": "1790850188",
        "source": "personalizada",
        "format": "html",
        "title": "Módulo 2 — No aeroporto e a bordo",
        "section": {
            "index": 1,
            "title": "Módulo 2 — No aeroporto e a bordo",
            "kind": "module",
            "words": 2210,
            "est_bytes": 26003
        },
        "content": "<h2>O cartão de embarque</h2><p>Boarding é quando o embarque começa…</p><table cellpadding=\"0\" cellspacing=\"0\" style=\"width:100%;border-collapse:collapse;margin:16px 0\"><tr><td style=\"background:#e8f3f5;border-left:4px solid #1d8a9c;padding:12px 16px\"><p><strong>Dica</strong></p><p>Confira o painel.</p></td></tr></table>…<h2>Gabarito</h2><ol style=\"list-style:none;padding-left:0\"><li>Questão 1. D) Até 22:35</li></ol>"
    }
}
304 Não mudou
401 Chave ausente, inválida, vencida ou de conexão desfeita. unauthenticated: renove uma vez com a chave de renovação. connection_revoked: não renove; a escola desconectou, peça para conectar de novo. application/problem+json
{
    "type": "about:blank",
    "title": "Unauthorized",
    "status": 401,
    "detail": "Chave ausente, inválida ou vencida. Envie `Authorization: Bearer {chave}` ou renove a chave.",
    "code": "unauthenticated"
}
403 A conta ainda não adquiriu este produto. Adquira para ler os materiais. application/problem+json
{
    "type": "about:blank",
    "title": "Forbidden",
    "status": 403,
    "detail": "A conta ainda não adquiriu este produto. Adquira para ler os materiais.",
    "code": "not_acquired"
}
404 Não encontrado. application/problem+json
{
    "type": "about:blank",
    "title": "Not Found",
    "status": 404,
    "detail": "Não encontrado.",
    "code": "not_found"
}
422 Formato não disponível para este material. Use: html, markdown, json. application/problem+json
{
    "type": "about:blank",
    "title": "Unprocessable Content",
    "status": 422,
    "detail": "Formato não disponível para este material. Use: html, markdown, json.",
    "code": "format_unavailable",
    "formats": [
        "html",
        "markdown",
        "json"
    ]
}
POST /api/v1/materials/{material}/exports

Request a file

Key with materials:read

Requests a material's file in one of its formats:

  • matrix: pdf — whole, or a single chapter with section (the table-of-contents index; the chapter PDF has no cover, table of contents or back cover);

  • SCORM course: scorm12, scorm2004 or html5.

  • A ready file of the same version, format and chapter already exists: 200 with the request ready.

  • Otherwise: 202 with the request queued. Follow it at GET /exports/{id} until ready and download from /file.

  • SCORM course with errors: 422 scorm_invalid with the list in errors (fix it in the HotLearn SCORM editor).

  • Idempotency-Key required. May use account credits according to the usage table (GET /usage): a charged response carries X-Credits-Charged and X-Credits-Balance; without balance, 402 insufficient_credits; over the daily limit, 429 daily_limit_reached.

Parameters

NameTypeDescription
materialrequired integer Identificador do material.
Idempotency-Keyrequired string Obrigatório: um valor único por operação (ex.: um UUID). Sem ele, 400 idempotency_key_required. A resposta (inclusive 4xx) fica guardada por 24 horas e volta igual para a mesma chave; mesma chave com outros dados, 422 idempotency_key_reused; chamada simultânea com a mesma chave, 409 idempotency_in_progress. Use uma chave nova a cada nova tentativa (por exemplo, depois de corrigir o pedido).

Example

curl -X POST https://hotlearn.com.br/api/v1/materials/162/exports \
  -H "Authorization: Bearer $HOTLEARN_KEY" \
  -H "Idempotency-Key: 6f1c2e8a-3b0d-4c55-9a7e-2f1d9b8c4a10" \
  -H "Content-Type: application/json" \
  -d '{"format":"scorm12"}'

Responses

202 Pedido criado (queued) application/json
{
    "data": {
        "id": 31,
        "material_id": 162,
        "format": "scorm12",
        "section": null,
        "version": "1791390405",
        "status": "queued",
        "size": null,
        "expires_at": null,
        "error": null,
        "links": {
            "self": "https://hotlearn.com.br/api/v1/exports/31",
            "file": null
        }
    }
}
200 Já estava pronto (ready) application/json
{
    "data": {
        "id": 31,
        "material_id": 162,
        "format": "scorm12",
        "section": null,
        "version": "1791390405",
        "status": "ready",
        "size": 98155,
        "expires_at": "2026-10-17T19:42:58+00:00",
        "error": null,
        "links": {
            "self": "https://hotlearn.com.br/api/v1/exports/31",
            "file": "https://hotlearn.com.br/api/v1/exports/31/file"
        }
    }
}
400 Envie o cabeçalho Idempotency-Key (um valor único por operação). application/problem+json
{
    "type": "about:blank",
    "title": "Bad Request",
    "status": 400,
    "detail": "Envie o cabeçalho `Idempotency-Key` (um valor único por operação).",
    "code": "idempotency_key_required"
}
401 Chave ausente, inválida, vencida ou de conexão desfeita. unauthenticated: renove uma vez com a chave de renovação. connection_revoked: não renove; a escola desconectou, peça para conectar de novo. application/problem+json
{
    "type": "about:blank",
    "title": "Unauthorized",
    "status": 401,
    "detail": "Chave ausente, inválida ou vencida. Envie `Authorization: Bearer {chave}` ou renove a chave.",
    "code": "unauthenticated"
}
403 A conta ainda não adquiriu este produto. Adquira para ler os materiais. application/problem+json
{
    "type": "about:blank",
    "title": "Forbidden",
    "status": 403,
    "detail": "A conta ainda não adquiriu este produto. Adquira para ler os materiais.",
    "code": "not_acquired"
}
404 Não encontrado. application/problem+json
{
    "type": "about:blank",
    "title": "Not Found",
    "status": 404,
    "detail": "Não encontrado.",
    "code": "not_found"
}
422 O curso SCORM tem erros e não pode ser gerado. Corrija no editor SCORM do HotLearn. application/problem+json
{
    "type": "about:blank",
    "title": "Unprocessable Content",
    "status": 422,
    "detail": "O curso SCORM tem erros e não pode ser gerado. Corrija no editor SCORM do HotLearn.",
    "code": "scorm_invalid",
    "errors": [
        {
            "code": "no_screens",
            "message": "O curso não tem telas."
        }
    ]
}
GET /api/v1/exports/{export}

Request status

Key with materials:read

status: queued, running, ready (with size and expires_at), failed (with error) or expired (past 24 hours; request again). Poll every few seconds until it leaves queued/running.

Parameters

NameTypeDescription
exportrequired integer Identificador do pedido.

Example

curl https://hotlearn.com.br/api/v1/exports/31 \
  -H "Authorization: Bearer $HOTLEARN_KEY"

Responses

200 Pedido application/json
{
    "data": {
        "id": 31,
        "material_id": 162,
        "format": "scorm12",
        "section": null,
        "version": "1791390405",
        "status": "ready",
        "size": 98155,
        "expires_at": "2026-10-17T19:42:58+00:00",
        "error": null,
        "links": {
            "self": "https://hotlearn.com.br/api/v1/exports/31",
            "file": "https://hotlearn.com.br/api/v1/exports/31/file"
        }
    }
}
401 Chave ausente, inválida, vencida ou de conexão desfeita. unauthenticated: renove uma vez com a chave de renovação. connection_revoked: não renove; a escola desconectou, peça para conectar de novo. application/problem+json
{
    "type": "about:blank",
    "title": "Unauthorized",
    "status": 401,
    "detail": "Chave ausente, inválida ou vencida. Envie `Authorization: Bearer {chave}` ou renove a chave.",
    "code": "unauthenticated"
}
404 Não encontrado. application/problem+json
{
    "type": "about:blank",
    "title": "Not Found",
    "status": 404,
    "detail": "Não encontrado.",
    "code": "not_found"
}
GET /api/v1/exports/{export}/file

Download the file

Key with materials:read

The ready file (application/pdf or application/zip). Available for 24 hours. Not ready yet (or failed): 409 export_not_ready. Expired: 410 export_expired.

Parameters

NameTypeDescription
exportrequired integer Identificador do pedido.

Example

curl https://hotlearn.com.br/api/v1/exports/31/file \
  -H "Authorization: Bearer $HOTLEARN_KEY"

Responses

200 O arquivo application/pdf
401 Chave ausente, inválida, vencida ou de conexão desfeita. unauthenticated: renove uma vez com a chave de renovação. connection_revoked: não renove; a escola desconectou, peça para conectar de novo. application/problem+json
{
    "type": "about:blank",
    "title": "Unauthorized",
    "status": 401,
    "detail": "Chave ausente, inválida ou vencida. Envie `Authorization: Bearer {chave}` ou renove a chave.",
    "code": "unauthenticated"
}
404 Não encontrado. application/problem+json
{
    "type": "about:blank",
    "title": "Not Found",
    "status": 404,
    "detail": "Não encontrado.",
    "code": "not_found"
}
409 O arquivo ainda não está pronto. Consulte o pedido e tente de novo em instantes. application/problem+json
{
    "type": "about:blank",
    "title": "Conflict",
    "status": "running",
    "detail": "O arquivo ainda não está pronto. Consulte o pedido e tente de novo em instantes.",
    "code": "export_not_ready"
}
410 O arquivo venceu (fica 24 horas). Faça um pedido novo. application/problem+json
{
    "type": "about:blank",
    "title": "Gone",
    "status": 410,
    "detail": "O arquivo venceu (fica 24 horas). Faça um pedido novo.",
    "code": "export_expired"
}
GET /api/v1/products/{product}/quizzes

Product quizzes

Key with materials:read

The product's quiz, with the number of questions and the available formats: the CSV for each platform the product includes (csv-lms-estudio, csv-moodle, csv) and always json. Same ownership rules as materials.

Parameters

NameTypeDescription
productrequired integer Identificador do produto.

Example

curl https://hotlearn.com.br/api/v1/products/136/quizzes \
  -H "Authorization: Bearer $HOTLEARN_KEY"

Responses

200 Provas application/json
{
    "data": [
        {
            "id": 412,
            "product_id": 136,
            "title": "Prova — CSV (LMS Estúdio)",
            "questions_count": 10,
            "formats": [
                "csv-lms-estudio",
                "csv-moodle",
                "json"
            ]
        }
    ]
}
401 Chave ausente, inválida, vencida ou de conexão desfeita. unauthenticated: renove uma vez com a chave de renovação. connection_revoked: não renove; a escola desconectou, peça para conectar de novo. application/problem+json
{
    "type": "about:blank",
    "title": "Unauthorized",
    "status": 401,
    "detail": "Chave ausente, inválida ou vencida. Envie `Authorization: Bearer {chave}` ou renove a chave.",
    "code": "unauthenticated"
}
403 A conta ainda não adquiriu este produto. Adquira para ler os materiais. application/problem+json
{
    "type": "about:blank",
    "title": "Forbidden",
    "status": 403,
    "detail": "A conta ainda não adquiriu este produto. Adquira para ler os materiais.",
    "code": "not_acquired"
}
404 Não encontrado. application/problem+json
{
    "type": "about:blank",
    "title": "Not Found",
    "status": 404,
    "detail": "Não encontrado.",
    "code": "not_found"
}
GET /api/v1/quizzes/{quiz}

A quiz in one format

Key with materials:read

  • csv-lms-estudio, csv-moodle, csv: the original file (text/csv), to import with the platform's own importer.
  • json (default): the questions read from the CSV, with the options and which one is correct.

Parameters

NameTypeDescription
quizrequired integer id da prova (de GET /products/{id}/quizzes).
formatoptional string json (padrão) ou um dos CSV.

Example

curl "https://hotlearn.com.br/api/v1/quizzes/412?format=json" \
  -H "Authorization: Bearer $HOTLEARN_KEY"

Responses

200 A prova application/json
{
    "data": {
        "id": 412,
        "product_id": 136,
        "title": "Prova — CSV (LMS Estúdio)",
        "questions_count": 10,
        "formats": [
            "csv-lms-estudio",
            "csv-moodle",
            "json"
        ],
        "questions": [
            {
                "text": "Qual o portão do voo?",
                "points": 10,
                "options": [
                    {
                        "text": "B12",
                        "correct": false
                    },
                    {
                        "text": "B15",
                        "correct": true
                    }
                ]
            }
        ]
    }
}
401 Chave ausente, inválida, vencida ou de conexão desfeita. unauthenticated: renove uma vez com a chave de renovação. connection_revoked: não renove; a escola desconectou, peça para conectar de novo. application/problem+json
{
    "type": "about:blank",
    "title": "Unauthorized",
    "status": 401,
    "detail": "Chave ausente, inválida ou vencida. Envie `Authorization: Bearer {chave}` ou renove a chave.",
    "code": "unauthenticated"
}
403 A conta ainda não adquiriu este produto. Adquira para ler os materiais. application/problem+json
{
    "type": "about:blank",
    "title": "Forbidden",
    "status": 403,
    "detail": "A conta ainda não adquiriu este produto. Adquira para ler os materiais.",
    "code": "not_acquired"
}
404 Não encontrado. application/problem+json
{
    "type": "about:blank",
    "title": "Not Found",
    "status": 404,
    "detail": "Não encontrado.",
    "code": "not_found"
}
422 Formato não disponível para este material. Use: csv-lms-estudio, csv-moodle, json. application/problem+json
{
    "type": "about:blank",
    "title": "Unprocessable Content",
    "status": 422,
    "detail": "Formato não disponível para este material. Use: csv-lms-estudio, csv-moodle, json.",
    "code": "format_unavailable",
    "formats": [
        "csv-lms-estudio",
        "csv-moodle",
        "json"
    ]
}
GET /api/v1/products/{product}/scorm-packages

Kit SCORM packages

Key with materials:read

The SCORM packages that come in the product kit (a file uploaded by HotLearn, different from the interactive courses the account builds in the studio, listed in materials). A package may hold a single SCORM or, in older products, several SCORMs (.zip) inside one .zip: each one is a part in packages, with the title read from imsmanifest.xml, the size and whether it is a valid SCORM (valid, errors). version changes when the file is replaced: download again only what changed. Same read rule as materials: acquired product or the account's own creation.

Parameters

NameTypeDescription
productrequired integer Identificador do produto.

Example

curl https://hotlearn.com.br/api/v1/products/140/scorm-packages \
  -H "Authorization: Bearer $HOTLEARN_KEY"

Responses

200 Pacotes application/json
{
    "data": [
        {
            "id": 88,
            "product_id": 140,
            "title": "Pacote SCORM",
            "size": 84823040,
            "updated_at": "2026-03-02T10:15:00+00:00",
            "version": "3f1c2a9b7d10",
            "packages": [
                {
                    "part": 1,
                    "name": "modulo-01.zip",
                    "title": "Módulo 1 — Células",
                    "size": 12582912,
                    "valid": true,
                    "errors": []
                },
                {
                    "part": 2,
                    "name": "modulo-02.zip",
                    "title": "Módulo 2 — Genética",
                    "size": 14680064,
                    "valid": true,
                    "errors": []
                }
            ]
        }
    ]
}
401 Chave ausente, inválida, vencida ou de conexão desfeita. unauthenticated: renove uma vez com a chave de renovação. connection_revoked: não renove; a escola desconectou, peça para conectar de novo. application/problem+json
{
    "type": "about:blank",
    "title": "Unauthorized",
    "status": 401,
    "detail": "Chave ausente, inválida ou vencida. Envie `Authorization: Bearer {chave}` ou renove a chave.",
    "code": "unauthenticated"
}
403 A conta ainda não adquiriu este produto. Adquira para ler os materiais. application/problem+json
{
    "type": "about:blank",
    "title": "Forbidden",
    "status": 403,
    "detail": "A conta ainda não adquiriu este produto. Adquira para ler os materiais.",
    "code": "not_acquired"
}
404 Não encontrado. application/problem+json
{
    "type": "about:blank",
    "title": "Not Found",
    "status": 404,
    "detail": "Não encontrado.",
    "code": "not_found"
}
GET /api/v1/scorm-packages/{package}/file

One SCORM from the package

Key with materials:read

The .zip of one SCORM from the package, as it was uploaded. part picks which one (1, 2, …, as in packages); it may be omitted only when the package holds a single SCORM. Missing part: 422 validation_failed. Download one part at a time: the whole package of older products can exceed 80 MB.

Parameters

NameTypeDescription
packagerequired integer Identificador do pacote (de scorm-packages).
partoptional integer Qual SCORM do pacote (1, 2, …).

Example

curl https://hotlearn.com.br/api/v1/scorm-packages/88/file \
  -H "Authorization: Bearer $HOTLEARN_KEY"

Responses

200 O .zip do SCORM application/zip
401 Chave ausente, inválida, vencida ou de conexão desfeita. unauthenticated: renove uma vez com a chave de renovação. connection_revoked: não renove; a escola desconectou, peça para conectar de novo. application/problem+json
{
    "type": "about:blank",
    "title": "Unauthorized",
    "status": 401,
    "detail": "Chave ausente, inválida ou vencida. Envie `Authorization: Bearer {chave}` ou renove a chave.",
    "code": "unauthenticated"
}
403 A conta ainda não adquiriu este produto. Adquira para ler os materiais. application/problem+json
{
    "type": "about:blank",
    "title": "Forbidden",
    "status": 403,
    "detail": "A conta ainda não adquiriu este produto. Adquira para ler os materiais.",
    "code": "not_acquired"
}
404 Não encontrado. application/problem+json
{
    "type": "about:blank",
    "title": "Not Found",
    "status": 404,
    "detail": "Não encontrado.",
    "code": "not_found"
}
422 Dados inválidos (validation_failed) application/problem+json
{
    "type": "about:blank",
    "title": "Unprocessable Content",
    "status": 422,
    "detail": "Dados inválidos.",
    "code": "validation_failed",
    "errors": {
        "open_url_template": [
            "Precisa ser do mesmo domínio de `url`."
        ]
    }
}

Publications

What the app created on its side from the materials.

POST /api/v1/publications

Record a publication

Key with publications:write

Tells HotLearn what the app created on its side from a material: a course, a lesson, a SCORM lesson. The publication shows up for the school on HotLearn's Integrations page.

  • Send material_id (or just product_id) and kind (course, lesson, scorm_lesson, other).
  • material_version is the version used (default: the current one). When the school saves the material again (or customizes the catalog original), the publication comes back with outdated: true and the reason in outdated_reason (updated or personalized): the cue to offer an update.
  • parts: the chapters sent (table-of-contents index), each with its reference on your side.
  • external_ref and external_url: how to find the item on your side.
  • Authorized apps only (with a connection). Idempotency-Key required. May use account credits according to the usage table (GET /usage): a charged response carries X-Credits-Charged and X-Credits-Balance; without balance, 402 insufficient_credits; over the daily limit, 429 daily_limit_reached.

Parameters

NameTypeDescription
Idempotency-Keyrequired string Obrigatório: um valor único por operação (ex.: um UUID). Sem ele, 400 idempotency_key_required. A resposta (inclusive 4xx) fica guardada por 24 horas e volta igual para a mesma chave; mesma chave com outros dados, 422 idempotency_key_reused; chamada simultânea com a mesma chave, 409 idempotency_in_progress. Use uma chave nova a cada nova tentativa (por exemplo, depois de corrigir o pedido).

Example

curl -X POST https://hotlearn.com.br/api/v1/publications \
  -H "Authorization: Bearer $HOTLEARN_KEY" \
  -H "Idempotency-Key: 6f1c2e8a-3b0d-4c55-9a7e-2f1d9b8c4a10" \
  -H "Content-Type: application/json" \
  -d '{"material_id":161,"kind":"course","title":"Inglês para Viagem — Turma A","external_ref":"curso-77","external_url":"https://escola.lmsestudio.com/cursos/77","parts":[{"index":1,"title":"Módulo 2 — No aeroporto","external_ref":"licao-301"}],"on_behalf_of":{"external_user_id":"u-9","name":"Coordenação da Escola"}}'

Responses

201 Registrada application/json
{
    "data": {
        "id": 15,
        "product": {
            "id": 136,
            "title": "Inglês para Viagem"
        },
        "material_id": 161,
        "current_material_id": 161,
        "material_version": "1790850188",
        "outdated": false,
        "outdated_reason": null,
        "kind": "course",
        "external_ref": "curso-77",
        "external_url": "https://escola.lmsestudio.com/cursos/77",
        "title": "Inglês para Viagem — Turma A",
        "status": "published",
        "parts": [
            {
                "index": 1,
                "title": "Módulo 2 — No aeroporto",
                "external_ref": "licao-301"
            }
        ],
        "on_behalf_of": {
            "external_user_id": "u-9",
            "name": "Coordenação da Escola"
        },
        "created_at": "2026-10-16T10:30:00-03:00",
        "updated_at": "2026-10-16T10:30:00-03:00"
    }
}
400 Envie o cabeçalho Idempotency-Key (um valor único por operação). application/problem+json
{
    "type": "about:blank",
    "title": "Bad Request",
    "status": 400,
    "detail": "Envie o cabeçalho `Idempotency-Key` (um valor único por operação).",
    "code": "idempotency_key_required"
}
401 Chave ausente, inválida, vencida ou de conexão desfeita. unauthenticated: renove uma vez com a chave de renovação. connection_revoked: não renove; a escola desconectou, peça para conectar de novo. application/problem+json
{
    "type": "about:blank",
    "title": "Unauthorized",
    "status": 401,
    "detail": "Chave ausente, inválida ou vencida. Envie `Authorization: Bearer {chave}` ou renove a chave.",
    "code": "unauthenticated"
}
403 A conta ainda não adquiriu este produto. Adquira para ler os materiais. application/problem+json
{
    "type": "about:blank",
    "title": "Forbidden",
    "status": 403,
    "detail": "A conta ainda não adquiriu este produto. Adquira para ler os materiais.",
    "code": "not_acquired"
}
404 Não encontrado. application/problem+json
{
    "type": "about:blank",
    "title": "Not Found",
    "status": 404,
    "detail": "Não encontrado.",
    "code": "not_found"
}
422 Dados inválidos (validation_failed) application/problem+json
{
    "type": "about:blank",
    "title": "Unprocessable Content",
    "status": 422,
    "detail": "Dados inválidos.",
    "code": "validation_failed",
    "errors": {
        "open_url_template": [
            "Precisa ser do mesmo domínio de `url`."
        ]
    }
}
GET /api/v1/publications

App publications

Key with publications:read

The publications this app recorded in this account (across all its connections), newest first. Filters product_id, material_id and status. Paginated by cursor. Use outdated to know what changed in HotLearn after publishing. With a personal key (the owner's), the list shows the publications of every app in the account, read-only.

Each publication carries outdated, outdated_reason and current_material_id:

  • up to date: outdated: false, outdated_reason: null and current_material_id equal to material_id;
  • updated: the school saved the material again (the version changed);
  • personalized: the publication came from the catalog original and the school customized it later; its matrix is now the copy, with another id (current_material_id).

Parameters

NameTypeDescription
product_idoptional integer Só deste produto.
material_idoptional integer Só deste material.
statusoptional string Situação.
limitoptional integer De 1 a 50 (padrão 12).
cursoroptional string O next_cursor da página anterior.

Example

curl "https://hotlearn.com.br/api/v1/publications?status=published" \
  -H "Authorization: Bearer $HOTLEARN_KEY"

Responses

200 Publicações application/json
{
    "data": [
        {
            "id": 15,
            "product": {
                "id": 136,
                "title": "Inglês para Viagem"
            },
            "material_id": 161,
            "current_material_id": 161,
            "material_version": "1790850188",
            "outdated": false,
            "outdated_reason": null,
            "kind": "course",
            "external_ref": "curso-77",
            "external_url": "https://escola.lmsestudio.com/cursos/77",
            "title": "Inglês para Viagem — Turma A",
            "status": "published",
            "parts": [
                {
                    "index": 1,
                    "title": "Módulo 2 — No aeroporto",
                    "external_ref": "licao-301"
                }
            ],
            "on_behalf_of": {
                "external_user_id": "u-9",
                "name": "Coordenação da Escola"
            },
            "created_at": "2026-10-16T10:30:00-03:00",
            "updated_at": "2026-10-16T10:30:00-03:00"
        },
        {
            "id": 12,
            "product": {
                "id": 136,
                "title": "Inglês para Viagem"
            },
            "material_id": 158,
            "current_material_id": 161,
            "material_version": "1789000000",
            "outdated": true,
            "outdated_reason": "personalized",
            "kind": "course",
            "external_ref": "curso-70",
            "external_url": "https://escola.lmsestudio.com/cursos/70",
            "title": "Inglês para Viagem — Turma piloto",
            "status": "published",
            "parts": [],
            "on_behalf_of": {
                "external_user_id": "u-9",
                "name": "Coordenação da Escola"
            },
            "created_at": "2026-10-10T09:00:00-03:00",
            "updated_at": "2026-10-10T09:00:00-03:00"
        }
    ],
    "next_cursor": null
}
401 Chave ausente, inválida, vencida ou de conexão desfeita. unauthenticated: renove uma vez com a chave de renovação. connection_revoked: não renove; a escola desconectou, peça para conectar de novo. application/problem+json
{
    "type": "about:blank",
    "title": "Unauthorized",
    "status": 401,
    "detail": "Chave ausente, inválida ou vencida. Envie `Authorization: Bearer {chave}` ou renove a chave.",
    "code": "unauthenticated"
}
403 Falta o escopo da rota (insufficient_scope) ou a conta está inativa (account_inactive) application/problem+json
{
    "type": "about:blank",
    "title": "Forbidden",
    "status": 403,
    "detail": "A chave não tem a permissão necessária: account:read.",
    "code": "insufficient_scope",
    "scopes": [
        "account:read"
    ]
}
PATCH /api/v1/publications/{publication}

Update a publication

Key with publications:write

Changes title, status (draft, published, archived) or external_url. Only this app's publications; another app's → 404. Only these three fields change (parts does not). There is no DELETE: when the course is deleted on your side, send PATCH with status: archived.

Parameters

NameTypeDescription
publicationrequired integer Identificador da publicação.

Example

curl -X PATCH https://hotlearn.com.br/api/v1/publications/15 \
  -H "Authorization: Bearer $HOTLEARN_KEY" \
  -H "Content-Type: application/json" \
  -d '{"status":"archived"}'

Responses

200 Atualizada application/json
{
    "data": {
        "id": 15,
        "product": {
            "id": 136,
            "title": "Inglês para Viagem"
        },
        "material_id": 161,
        "current_material_id": 161,
        "material_version": "1790850188",
        "outdated": false,
        "outdated_reason": null,
        "kind": "course",
        "external_ref": "curso-77",
        "external_url": "https://escola.lmsestudio.com/cursos/77",
        "title": "Inglês para Viagem — Turma A",
        "status": "archived",
        "parts": [
            {
                "index": 1,
                "title": "Módulo 2 — No aeroporto",
                "external_ref": "licao-301"
            }
        ],
        "on_behalf_of": {
            "external_user_id": "u-9",
            "name": "Coordenação da Escola"
        },
        "created_at": "2026-10-16T10:30:00-03:00",
        "updated_at": "2026-10-16T10:30:00-03:00"
    }
}
401 Chave ausente, inválida, vencida ou de conexão desfeita. unauthenticated: renove uma vez com a chave de renovação. connection_revoked: não renove; a escola desconectou, peça para conectar de novo. application/problem+json
{
    "type": "about:blank",
    "title": "Unauthorized",
    "status": 401,
    "detail": "Chave ausente, inválida ou vencida. Envie `Authorization: Bearer {chave}` ou renove a chave.",
    "code": "unauthenticated"
}
404 Não encontrado. application/problem+json
{
    "type": "about:blank",
    "title": "Not Found",
    "status": 404,
    "detail": "Não encontrado.",
    "code": "not_found"
}
422 Dados inválidos (validation_failed) application/problem+json
{
    "type": "about:blank",
    "title": "Unprocessable Content",
    "status": 422,
    "detail": "Dados inválidos.",
    "code": "validation_failed",
    "errors": {
        "open_url_template": [
            "Precisa ser do mesmo domínio de `url`."
        ]
    }
}

Documentation

This specification.

GET /api/v1/openapi.json

This specification (OpenAPI 3.1)

No access key

To generate clients or import into Postman/Insomnia. Limit: 60 calls per minute.

Example

curl https://hotlearn.com.br/api/v1/openapi.json

Responses

200 Especificação application/json