---
title: "Current Session"
method: GET
path: "/organizations/by-slug/{slug}/current-session"
tags: ["organizations", "organizations"]
---

# Current Session

`GET /organizations/by-slug/{slug}/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.

## Path parameters

- `slug` string, required

## Query parameters

- `code` string, nullable

## Headers

- `authorization` string, nullable

## Response `200`

Successful Response

- unknown

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.dev/fluentea/apis/aurqa-language-learning-platform-refactored.md) · [All operations](https://skmtc.dev/fluentea/apis/aurqa-language-learning-platform-refactored/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/fluentea/aurqa-language-learning-platform-refactored/revisions/78f314acd8bf/schema)
