# حَلْقة (Halqa) — live-class infrastructure for education platforms > حَلْقة adds a live class room to your platform: audio, video, a synchronized > Mushaf, recitation marking, whiteboard, notebook, books (PDF), polls, quizzes, > breakouts, and an interactive recording — under your own brand, with no app to > install and no account for the student. API-first and multi-tenant. > Arabic/RTL is the native language of the product, not a translation. Base URL: https://api.halqa.live Auth: `Authorization: Bearer sk_…` (tenant secret — server side only, never in a browser) ## Docs - [Full documentation in Markdown](https://halqa.live/docs.md): every endpoint, the token claims, webhooks, room policy, limits and errors — one file, meant to be read whole by a coding agent. - [Integration guide (Arabic, with code)](https://halqa.live/integrate): five ways to integrate — links only, iframe, WordPress plugin, REST API, custom. - [Browser library](https://halqa.live/halqa.js): `halqa.js`, the client the room itself uses; you may embed the room in an iframe instead and never touch it. - [Security & compliance](https://halqa.live/security): encryption, roles, tenant isolation, recordings, backups — and an explicit list of what is *not* done yet. - [Service status](https://halqa.live/status) · machine readable: [status.json](https://halqa.live/status.json) (measured uptime + incidents) - [What's new](https://halqa.live/whats-new) ## The two calls that start a class ```bash curl -X POST https://api.halqa.live/v1/rooms \ -H "Authorization: Bearer $HALQA_SECRET" -H "Content-Type: application/json" \ -d '{"externalId":"lesson-42","classKey":"grade-3-a"}' # → {"roomId":"…"} curl -X POST https://api.halqa.live/v1/tokens \ -H "Authorization: Bearer $HALQA_SECRET" -H "Content-Type: application/json" \ -d '{"roomId":"…","identity":"u-7","name":"سارة","role":"participant"}' # → {"token":"…"} → open https://halqa.live/room#t= ``` ## Notes that save time - The room page is opened with the token in the URL **hash** (`#t=`), never the query string: a hash never reaches a server or a log. - Roles: `host` · `cohost` · `participant` · `observer` (guardian) · `supervisor`. Permissions are enforced on the server, never by hiding a button. - Every feature is a per-tenant switch; a room may narrow it, never widen it. - Webhooks are signed HMAC-SHA256 over `timestamp.body` and are sent to `https` only — no exception, not even localhost. - Recording is audio + timed room events (never video), and is designed to be pulled into *your* storage.