organizations
organizations

Current Session

Public: resolve a school slug to its live/imminent session room, if any.

Powers the "straight into the call" behavior of the /join/<slug> landing page. A school's weekly session gets a freshly generated room + rotating join_code each occurrence, so there is no durable per-room link — the durable entry point is the slug, resolved here at click time.

Returns the joinable room (with its current join_code) when one is live or within its 15-minute pre-start window, so the landing page can redirect the visitor — member or guest — straight in. Otherwise returns the next upcoming session time for the welcome card. No auth: guests hit this before signing up.

code is the GROUP code off the join link (/join/<slug>?code=VPSHVJ), and it is the only thing that identifies WHICH SECTION the visitor belongs to before they have an account. Without it this endpoint could only answer about the school as a whole, so a student holding a Grupo 1 link was shown Grupo 2's next class — the section they are not in, at a time they should ignore. _viewer_group_ids cannot help here: the person reading this page usually has no membership row yet, which is the entire reason they were sent a link.

An unknown or expired code is ignored rather than refused. This is a public page whose job is to get somebody into a class; degrading to the school-wide answer is the correct failure, and a 404 here would strand a student whose teacher rotated the code.

get/organizations/by-slug/{slug}/current-session

Path parameters

slugstring required

Query parameters

codestring nullable

Headers

authorizationstring nullable

Response

Successful Response

{"stackTrail":"paths:/organizations/by-slug/{slug}/current-session:get:responses:200:content:application/json:schema","oasType":"schema","type":"unknown"}

Changes

No recorded changes to this endpoint across all 1 revision of this API.