Skip to content

Connecting the learning app

For the team building the learning app “i3 Learning Companion”: how it signs in to a portal and what it may use. Decisions: ADR 0341 (scopes), ADR 0342 (free learners), ADR 0343 (the app’s client), ADR 0344 (REST and voice), ADR 0345 (course package), ADR 0347 (stable tools), ADR 0353 (the team’s feedback), ADR 0363 (pairing from the portal), ADR 0435 (notice versions, the device in the log).

The app is the learners’ frontend and the portal its backend. It acts as the person who signed in, never with more rights than they have in the portal.

The app has no sign-in of its own. The person signs in to the portal and connects the app under My account → My devices → Connect a device. The exact contract, with every field and answer, is docs/14-kopplung-schnittstelle.md in the app’s repository; in short:

  1. The page shows a QR code with <PUBLIC_WEB_URL>/app/pair#v=1&c=<code> (26 characters of base32) and a short code XXXX-XXXX (Crockford base32) for notebooks; both valid 120 s, once. The app’s first button is “Connect to the Academy” (German “Mit der Academy verbinden”), as the page tells the person.
  2. The app makes its own ES256 key and claims the code: POST <PUBLIC_API_URL>/v1/devices/pairings/claim with { clientId, code | shortCode, deviceName, platform, appVersion } and a DPoP proof (RFC 9449). Answer: { claimId, matchNumber, interval, expiresIn }. Show matchNumber large.
  3. The person types the number on the page.
  4. The app asks POST /v1/oauth/token with grant_type=urn:i3:params:oauth:grant-type:device-pairing, claim_id, client_id and a proof of the same key, every interval seconds: authorization_pending, slow_down, access_denied, expired_token, then { access_token, token_type: "DPoP", refresh_token, scope, device_id }.
  5. Every request sends Authorization: DPoP <access token> and a fresh DPoP proof (with ath); the refresh too (with the same key). A bound token as Bearer gets 401 invalid_token; a missing or bad proof 401 invalid_dpop_proof.
  6. Signing out (/v1/oauth/revoke with the refresh token) ends this device only. The person sees and disconnects devices under <PUBLIC_WEB_URL>/account#devices. A device unused for 90 days must pair again.

Pairing is the only way in (ADR 0387). The browser sign-in of ADR 0343 is gone: the authorization endpoint refuses the app’s client id (400, no redirect), the token endpoint answers unauthorized_client to authorization_code, and a refresh token that names no device is invalid_grant. The app’s scopes are those of pairing, learn:read learn:write messages voice; never purchase (buying stays in the portal).

Discovery GET <PUBLIC_API_URL>/.well-known/oauth-authorization-server
Client id 40b0062d-8661-4452-9bac-9f661b06beee (the same in every installation; no secret)
Refresh grant_type=refresh_token with a proof of the device’s key; each refresh token works once. A refresh may send scope to narrow, never to widen. A refused refresh is 400 invalid_grant (expired, revoked, disconnected, used twice, the account gone): delete what the app keeps of the person and pair again.

Keep tokens in the system’s secure storage (Keychain, Android Keystore). A token is the person’s sign-in.

Several organisations: a paired device belongs to the person’s account; for an organisation’s courses it exchanges its token for one of that organisation (ADR 0381). my_session names it (tenant.id, tenant.slug, tenant.name; whoami: user.tenantId, organisation). Keep one connection per organisation.

Who and through what: whoami (GET /v1/me/account) carries, for a request with an OAuth token, connection: { clientId, name, firstParty, scopes }, and for everyone learner: { ageGroup, minor, aiAllowed, contentCheck }. ageGroup is one of under_6, 6_9, 10_13, 14_15, 16_17, 18_plus, or null while not known: keep the strictest profile then.

The person’s rights are in the app too (ADR 0379); deleting the account stays in the portal. The portal’s pages keep stable addresses: <PUBLIC_WEB_URL>/account#data (rights, consents, my data) and <PUBLIC_WEB_URL>/account#assistants (connected apps and agents), <PUBLIC_WEB_URL>/account#devices (paired devices).

The app has one way in: Authorization: DPoP <token> plus a DPoP proof of the paired device (ADR 0363, ADR 0387):

  • The REST API (<PUBLIC_API_URL>/v1/…), as the web app uses it. Only the app’s own client may call it directly; agents’ tokens get 403 use_mcp. Each route needs a scope: a route with an MCP tool needs that tool’s scope (listed in mcp-tools.md). The app’s own routes need these:
    • voice: dictation (/v1/me/dictation), read-aloud (/v1/me/read-aloud), live recognition through the portal’s relay (/v1/me/voice/realtime-recognition, then connect to the relay node with the ticket), pronunciation, the companion’s speech and voice conversation (/v1/mentor/speech, /v1/mentor/conversations/{id}/voice-agent), recordings in language courses.
    • learn:write: the companion’s streamed answers (/v1/mentor/conversations/{id}/messages).
  • The MCP endpoint (POST <PUBLIC_API_URL>/v1/mcp, JSON-RPC), with the tools and their descriptions.

GET /v1/me/dictation: whether dictation is open, and who hears the person:

{
"available": true,
"whose": "organisation",
"reason": null,
"autoSend": false,
"minutes": { "limit": 30, "used": 4 },
"realtime": true,
"agent": false,
"agentBlocked": null,
"vendors": ["mistral"]
}
  • whose: organisation or platform, whose AI it is.
  • reason: ai_not_offered, no_speech_recognition or null.
  • minutes: the conversation mode’s daily minutes (limit: null means no limit).
  • vendors: the stable keys of who hears the person. Possible keys: anthropic, openai, mistral, gemini, compatible (an own server), azure; keys are only ever added. Keep a consent per key.

POST /v1/me/dictation: the recording as the raw body.

  • Content type: audio/wav, audio/x-wav, audio/webm, audio/ogg (Opus) or audio/mp4.
  • Size: at least 1,000 bytes, at most 4 MB (WAV PCM16 mono 16 kHz is about two minutes).
  • Query: language (de, en-GB, …) and purpose (dictation, or dialog, which counts the minutes).
  • Answer: { "text": "…", "heardIn": "en" } (heardIn only when it was heard in another language and translated).
  • Limit: 30 a minute.

GET /v1/me/read-aloud: { "available": true, "whose": "platform", "reason": null }, with reason one of ai_not_offered, no_voice or null.

POST /v1/me/read-aloud: { "text": "…", "language": "de" }, at most 4,000 characters; language only for a text not in the person’s language. The answer is the whole audio file (usually audio/mpeg), not streamed, marked in the file as made by AI.

Errors (JSON { "error", "message" }):

Status error Meaning
400 validation_failed A wrong language code or body
403 ai_not_enabled The organisation offers the person no AI
403 insufficient_scope The app wasn’t allowed voice
409 speech_not_connected No speech recognition or voice is set up
415 unsupported_media_type Another audio format, or too short
429 voice_minutes Today’s conversation minutes are used up
429 premium_limit, platform_ai_budget Today’s AI requests or the platform’s daily AI budget are used up
429 rate_limited Too many requests a minute
502 transcription_failed The provider didn’t answer

Speech never goes from the app to a provider directly: the route gives a ticket for one of the installation’s relay nodes. Show the person, before the microphone opens, that their voice goes through the installation’s servers to the speech provider; the portal’s own notice is in the browser only.

The notice before the microphone (ADR 0435)

Section titled “The notice before the microphone (ADR 0435)”

GET /v1/me/voice-notice (scope voice) says what the notice must say, and whether the person saw it:

{
"available": true,
"whose": "platform",
"noticeVersion": "3f1c0a9b2e7d4c11",
"vendors": [
{
"key": "mistral", "name": "Mistral AI", "country": "FR", "transfer": "eea",
"retentionDays": 30, "noTraining": true, "privacyUrl": "https://…",
"noticeVersion": "9a0b1c2d3e4f5061", "seen": { "at": "2026-11-19T10:02:11.000Z", "version": "9a0b1c2d3e4f5061" }, "current": true
}
],
"limits": {
"dictationMinBytes": 1000, "dictationMaxBytes": 4194304, "dictationMaxSeconds": 110, "dictationsPerMinute": 30,
"realtimeMaxSeconds": 900, "readAloudMaxChars": 4000, "minutes": { "limit": 30, "used": 4 }
}
}
  • vendors are the ones of GET /v1/me/dictation, with what the provider register (the privacy policy’s list) says of them on the platform’s AI. On an organisation’s own AI the facts are null: the organisation’s privacy notice applies (GET /v1/me/privacy-notice).

  • noticeVersion per vendor changes whenever what the notice says about it changes. Show the notice when current is false, then record it with POST /v1/me/privacy-choices/voice-notice ({ "vendors": [...] }, scope learn:write): the portal keeps the version seen with it, on every device of the person and in the browser alike.

  • transfer: eea, adequacy, dpf, scc or dpf_scc; retentionDays: 0 means not stored, null as the provider’s terms allow.

  • tools/list lists only what the person’s roles and the allowed scopes permit.

  • An answer 403 insufficient_scope, or a tool result saying the connection “wasn’t allowed” a scope, means the person did not allow that scope. Ask them to connect again.

The tools marked ★ in mcp-tools.md (in tools/list: _meta: { "academy/stable": "v1" }) keep the promise of the automation API v1 (ADR 0347), and so do the REST routes behind them:

  • Names, routes, scopes, input fields and output fields are only ever added to.
  • A field never goes, is never renamed and never changes its type. An optional input never becomes required.
  • A breaking change comes as a new tool beside the old one, announced at least 12 months before the old one goes.
  • Ignore fields you don’t know.

The contract is integrations/mcp-stable-v1.json. The stable tools:

  • whoami, my_session
  • my_courses, get_course, my_course_progress, get_course_package, update_lesson_progress, my_plan
  • add_note, my_notes
  • my_calendar, register_for_live_session, unregister_from_live_session
  • list_messages, read_conversation, reply_in_conversation, unread_messages_count

The stable REST routes, in the file’s routes section: GET and POST /v1/me/dictation, GET and POST /v1/me/read-aloud, GET /v1/me/voice-notice.

A reply once: send Idempotency-Key: <8–128 URL-safe characters> with POST /v1/inbox/{id}/messages (MCP: idempotencyKey on reply_in_conversation). Sent again with the same key, it returns the first answer with idempotent-replay: true and writes nothing. Two at the same time: the second waits for the first’s answer; if the first is still running after a few seconds, it gets 409 idempotency_pending (send it again later, same key) (ADR 0357).

Tell the portal team which further tools the app relies on, and they become stable too.

Every activity-log entry written while the app’s token is at work names the device (details.device) and the app (details.client). Administrators see “via i3 Learning Companion” beside the entry.

GET /v1/courses/{id}/package (MCP: get_course_package, scope learn:read) gives a course page by page (ADR 0345):

  • First page (cursor 0 or none): the outline (modules and lessons without content, offline per lesson), the person’s progress and learning path, and the course’s files.
  • Every page: lessons with their content as learners see it, so quiz answers are left out. What each lesson shows comes with it (linked): the video with transcript and captions, the presentation, diagram or whiteboard.
  • Not found: a course the person can’t open answers 404 not_found; through MCP the tool result is an error with the text Error 404 (not_found): course not found.
  • Downloads: each page lists signed, absolute download links (downloads), all on the API’s own host (<PUBLIC_API_URL>, paths /v1/course-files/… and /v1/media/…; no CDN), valid for a few hours: course files, the video’s HLS playlist (its segments use the same address) and thumbnail. Every download needs the person’s session (ADR 0337): send the token with each request, the playlist’s segments included (learn:read is enough): as Authorization: DPoP <access token> with a fresh DPoP proof per request (ADR 0363). Without it the answer is 401. Download them right away. Media downloads have their own limit per person, apart from the other calls (6,000 a minute, against 600 for REST calls), so an offline copy of a long film doesn’t hold up the app.
  • Paging: call again with nextCursor until it is null. A page stays under 150,000 characters.
  • Changes: keep the etag. Later, send it as since: unchanged: true means the course’s text and lessons are the same. Linked items carry their own dates.
  • Not packed: SCORM, external content (cmi5, LTI), labs and live sessions only play in the portal; their lessons carry onlineOnly. A quiz whose attempts are started on the server (requiresStart) needs the portal to start one. Linked content too large for a page comes as linkedTooLarge, with the route to read it.
  • Writing back: progress and quiz answers made offline go back through the usual routes once the device is online.

Delete the copy when the person signs out, when a refresh is refused (the app was disconnected), or when the package answers 404 (the course is no longer open to them).

After the inventory of what learners do in the web app, these work with the app’s token too:

Route Scope What for
GET /v1/learning-objects/{id}/questions/{questionId}/audio, GET /v1/learning-objects/{id}/recordings voice a language course’s question to listen to, one’s own recordings
GET /v1/me/speech-recognition voice who transcribes, for the notice before the microphone
GET /v1/me/privacy-notice learn:read the privacy notice in force
PUT /v1/learning-objects/{id}/watch learn:write how far a film was watched
GET /v1/presentation-files/{token}/*, GET /v1/slide-design-logos/* learn:read a presentation lesson’s files
GET/POST /v1/companion/languages/{language}/sessions, PATCH /v1/companion/sessions/{id}, POST /v1/companion/sessions/{id}/learned learn:read / learn:write the language trainer’s practice conversations (the placement stays in the portal for now)
GET /v1/public/courses, …/organisations, …/platform, …/home, …/docs, …/maintenance, …/operator, …/orgs/{slug} with branding, course-offers, courses/{id}, events/{id}, trainers/{id} learn:read the catalog, organisations’ pages, home and help (joining is not reading)
POST /v1/external-trainings, GET /v1/external-trainings/{id}/file learn:write / learn:read handing in one’s own evidence of an external training, with its file; in the app always as the learner, also for an administrator

The person’s own rights in the app (ADR 0379)

Section titled “The person’s own rights in the app (ADR 0379)”

The person uses their data rights and makes their choices in the app too, with the device’s token. An agent never can.

Route Scope
GET /v1/me/rights, GET /v1/me/export, GET /v1/me/privacy-choices, GET /v1/me/sensitive-notice learn:read
PUT /v1/me/rights/restriction, PUT /v1/me/rights/profiling, PUT /v1/me/consents/{kind}, PUT /v1/me/privacy-choices/embeds/{provider} learn:write
POST /v1/me/data-request, POST /v1/me/sensitive-notice, POST /v1/me/privacy-choices/voice-notice, POST /v1/me/privacy-choices/notices/{notice}, PUT /v1/companion/language-evidence learn:write
GET/PUT /v1/me/recordings/settings, GET /v1/me/recordings/{id}/audio voice
  • Own declarations: the person starts and answers placements (POST /v1/companion/wishes/{id}/placement, …/placements/{id}/answers, …/languages/{language}/placement), files notices with their statement of good faith (POST /v1/content-notices, POST /v1/community/posts/{id}/report), uses their trash (GET /v1/me/trash, POST /v1/trash/{id}/restore, DELETE /v1/trash/{id}), and joins free offers (POST /v1/public/orgs/{slug}/join answers { joined, organisation } and no session: exchange the token, ADR 0381). Show the same texts as the portal (the placement’s purpose, the notice’s statement).
  • Consents: show the consent’s text and send its version, as the portal does.
  • Deletion stays in the portal: a data request of kind deletion answers 403 deletion_in_portal, and DELETE /v1/me/account is refused. Open <PUBLIC_WEB_URL>/account#data instead.

A free learner’s organisations (ADR 0381)

Section titled “A free learner’s organisations (ADR 0381)”

A device paired from a platform account has an account token: routes of an organisation answer 403 no_organisation. To learn in one of the person’s organisations:

  1. GET /v1/me/organisations (learn:read) lists them (slug, name, roles). One with companySignIn needs the company sign-in: the person pairs the device from inside that organisation instead.
  2. Exchange the account token (RFC 8693) with a DPoP proof of the same key:
    POST /v1/oauth/token
    grant_type=urn:ietf:params:oauth:grant-type:token-exchange
    client_id=<the app's>&subject_token=<account access token>
    subject_token_type=urn:ietf:params:oauth:token-type:access_token&audience=<organisation slug>
    The answer is access_token, token_type: DPoP, expires_in (at most 3600), scope, organisation, and no refresh token. Exchange again when it runs out. Errors: invalid_target (not one of the person’s organisations, or company sign-in), invalid_grant (not a live account token of this device and key).
  3. Disconnecting the device ends the organisation’s tokens too.

GET /v1/me/events (learn:read, DPoP like every call) is a Server-Sent Events stream:

  • event: resync first, on every (re)connect: load your lists (messages, calendar, courses). Nothing is replayed.
  • event: event: { kind, organisation, …ids }, e.g. inbox with conversationId, a badge, a lab run, mentoring events, platform messages (organisation: null). Load the changed item through its route. inbox_typing (conversationId, userId, name; shown for a few seconds) and inbox_read (conversationId, userId, at; see readBy of the conversation) carry everything themselves: load nothing for them (ADR 0424). In the app, send typing in an inbox conversation over the realtime socket as { op: "typing", conversationId, scope: "inbox" }.
  • event: ended: the device was disconnected or the token revoked. Stop, and pair again if the person wants.
  • Keep-alive: a comment line every 25 s.
  • Limits: at most 4 streams per person (429 too_many_streams).
  • One stream for everything: an account token follows every organisation the person learns in (except those with company sign-in).
  • In the background: poll every 15–30 minutes, or register for push wake-ups (below); there is no push through Google.
  • Register with a UnifiedPush distributor’s Web Push endpoint: PUT /v1/app/push with { "endpoint": "https://…", "keys": { "p256dh": "<65-byte point, base64url>", "auth": "<16 bytes, base64url>" } }. This needs the paired device’s token: a session answers 400 device_only.
  • Unregister: DELETE /v1/app/push.
  • VAPID: GET /v1/app/push/vapid gives the portal’s VAPID public key, if the distributor wants it.
  • What arrives: at most once a minute, an encrypted Web Push message (RFC 8291) whose text is {"t":"wake"}. On it, load as after resync. Disconnecting the device ends its registration.

Sync between the person’s devices (ADR 0389)

Section titled “Sync between the person’s devices (ADR 0389)”

A dumb store for what the app encrypts end to end: the portal never has the key and checks only who writes, the order and the sizes. Only with a paired device’s token; a session gets 400 device_only. All devices of the person share one vault, including devices paired in an organisation.

  • The vault: POST /v1/app/sync makes it (201, or 200 if there is one), GET /v1/app/sync reads its state (vault: null when there is none):
    • id, bytes, quotaBytes (512 MiB), heads (per device its last seq), snapshot (generation, bytes, sha256, covers);
    • devices: the person’s connected devices, with self. DELETE /v1/app/sync deletes everything.
  • Operations: PUT /v1/app/sync/ops/{seq} with application/octet-stream, at most 1 MiB. seq is one above this device’s last.
    • The same seq with the same bytes again is a retry (200, stored: false).
    • A gap is 409 seq_gap; other bytes under a stored seq are 409 seq_taken; a full vault is 507 sync_full.
    • Read with GET /v1/app/sync/ops?after=<n>&limit= (ops: [{ n, author, seq, bytes, sha256, inSnapshot }], nextCursor, hasMore), then GET /v1/app/sync/ops/{author}/{seq} (the bytes; x-content-sha256; 410 once in the snapshot).
  • Snapshot: PUT /v1/app/sync/snapshot?previous=<generation>&covers=<device>:<seq>,…, at most 64 MiB.
    • It replaces only the generation it names, else 409 snapshot_changed: read again and merge.
    • The operations it covers are dropped. GET /v1/app/sync/snapshot gives the bytes with x-sync-generation and x-content-sha256.
  • Envelopes to another device of the person (the vault key, wrapped for a new device):
    • POST /v1/app/sync/envelopes with { toDevice, body } (base64url, at most 64 KiB); at most 20 wait per device, for 7 days;
    • GET /v1/app/sync/envelopes lists this device’s; DELETE /v1/app/sync/envelopes/{id} after reading.
  • Erasure: a vault none of the devices used for a year is deleted; erasing the account deletes it. The person’s export names the vault’s size and dates, never its content.
  • Sign the operations on the device and check the signatures yourselves: the portal does not.

Content with its own runtime, and live rooms (ADR 0383)

Section titled “Content with its own runtime, and live rooms (ADR 0383)”
  • SCORM, cmi5, xAPI packages, LTI:
    • POST /v1/learning-objects/{id}/scorm/launch, …/external/package/launch and …/external/lti/launch (learn:write) answer an address on the content host with a one-time ticket. Open it in the app’s embedded browser: the content host sets its own cookie for that content only.
    • For SCORM, the app plays the runtime role of the page around the frame (postMessage) and commits with PUT /v1/scorm/attempts/{id} and the launch’s capability.
  • Live room:
    • POST /v1/live-sessions/{id}/join, …/media-token (connect the LiveKit client to the relay it names), …/attendance/heartbeat, PUT …/recording-consent, GET …/recording-consents (voice);
    • POST …/board (learn:write).
  • Mentoring calls: POST /v1/mentoring/workspaces/{id}/call, …/call/decline (voice).
  • Realtime socket /v1/realtime: send { "op": "auth", "token": "<access token>", "dpop": "<proof for GET <api>/v1/realtime with ath>" } first. Then subscribe as the web app does. The socket closes with 4401 without a valid proof, and when the device is disconnected.
  • The other sockets (ADR 0388) take the device token the same way, each with a proof for its own address (GET <api><path>, with ath; a proof works once):
    • /v1/collab/{docId} (group and mentoring documents, Yjs): { "op": "auth", "token", "dpop" }, with the organisation’s token from the token exchange (ADR 0381); a platform account’s token gets 4401 no organisation. Needs learn:write.
    • /v1/lab-terminal and /v1/lab-session-shell: the auth frame as in the web app (token, projectId, cols, rows) plus dpop. Needs learn:write.
    • The Creative Space text editor: POST /v1/creative/spaces/{id}/artifacts/{a}/text/session (DPoP as for every request, learn:write) gives a ticket for 30 seconds; send { "op": "auth", "ticket" } to /v1/creative/text/socket, with no proof (the ticket is the proof). POST …/text/updates sends the editor’s updates.
    • Each socket checks the token again while it is open and closes with 4401 when the device is disconnected.
  • GET /v1/companion/policy-profile answers { audience, profile }:
    • audience: adult, org-adult, org-minor or school;
    • profile: a JWS (typ: policy-profile+jws, the catalog’s keys), or null. Without one, keep the strictest built-in profile.
    • Check it like the catalog: key, signature, type, origin, expiry.
  • GET /v1/companion/tool-facts answers { facts: <JWS, typ tool-facts+jws> } with { tool, scope, method, costsMoney, readsOnly } for every tool. Classify by it.
  • GET /v1/me/age shows the person’s age group (read only).

The private tutor runs a model on the device. The app gets it from the portal only (ADR 0378):

  • Catalog: GET /v1/companion/models/catalog (learn:read) answers { "catalog": "<JWS>" }, a compact JWS (ES256, header typ: model-catalog+jws, kid). Check, in this order: that the kid is one the app ships with and the signature is valid; typ; origin is the API’s own; expiresAt is in the future (24 hours after issuedAt); catalogVersion is not lower than the last one seen. Then read models[]: id, displayName, family, format (gguf for llama.cpp, litertlm for Google’s LiteRT-LM, ADR 0405; skip a format the app cannot run), provider, license (spdx, url), modelCard, minRamMb, files[] (name, sizeBytes, sha256, url).
  • What the model is (ADR 0392), each field only when filled in: version (the maker’s, e.g. 25.12), parameterCount, quantization (e.g. Q4_K_M), contextTokens, languages (BCP 47), capabilities (chat, instructions, tools, json, vision, reasoning: what the listed file can do), summary ({ de?, en? }, at most 400 characters), releasedOn (YYYY-MM-DD). While downloading, say only that a local AI is loading; show these under a small “Details”.
  • Test models (ADR 0405): besides Ministral 3 3B the catalog lists Gemma 4 E2B and E4B (.litertlm) and Qwen3.5 2B and 4B (GGUF Q4_K_M) for a comparison on phones; which stay is decided after it.
  • Public keys: GET /v1/companion/models/catalog-keys (open) lists them as JWKs, the active one first. Ship the key in the app; never trust one only because this route names it.
  • File: the url of a file, on the API’s own host, with Range: bytes=<offset>- to resume (206; 416 past the end). Send the device’s token with its DPoP proof like on every route. Check the SHA-256 before using the file. At most 16 GiB per person and day (429 download_limit, then retry-after).
  • Not found: a model taken out of the catalog answers 404; drop it from the device when the catalog no longer lists it.

For phones and tablets to open the answer in the app, the portal must name the app. In /etc/i3-academy-api.env:

LEARNING_APP_ANDROID_PACKAGE=<package name>
LEARNING_APP_ANDROID_CERT_SHA256=<SHA-256 fingerprint of the signing certificate, AA:BB:…; several comma-separated>
LEARNING_APP_IOS_APP_IDS=<TEAMID.bundle.id; several comma-separated>

The web app then serves /.well-known/assetlinks.json and /.well-known/apple-app-site-association on its own address. These must be reachable over HTTPS without a redirect. Without the settings the pairing link opens the web page instead of the app; pairing with the short code still works.