---
title: "Preview Team Code"
method: GET
path: "/api/labs/preview"
tags: ["labs"]
---

# Preview Team Code

`GET /api/labs/preview`

Return ONLY the team NAME a code points at, so a joiner can confirm which
team they're requesting to join before submitting (POST /join). Grants
nothing and reveals nothing else — no owner, members, or seat counts; the
owner-approval gate still governs actual membership. Any invalid / expired /
inactive code returns a uniform 404 so probing a wrong code learns nothing.

MUST stay defined BEFORE `/{lab_id}` so the static path wins the route match
(FastAPI matches in definition order).

## Query parameters

- `code` string, required

## Headers

- `authorization` string, nullable

## Response `200`

Successful Response

- object

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.dev/omicos/apis/omicos-server.md) · [All operations](https://skmtc.dev/omicos/apis/omicos-server/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/omicos/omicos-server/revisions/a00b94573ffe/schema)
