---
title: "Get Class Join Info"
method: GET
path: "/student/classes/join-info/{code}"
tags: ["Student"]
---

# Get Class Join Info

`GET /student/classes/join-info/{code}`

Get information about a class before joining, including pending students list.
Used to determine if the student needs to select their name from a dropdown.

## Path parameters

- `code` string, required

## Response `200`

Successful Response

- ClassJoinInfoResponse
  - `class_name` string, required
  - `teacher_name` string, required
  - `has_pending_students` boolean, required
  - `pending_students` PendingStudentInfo[], required
    - `id` string, required
    - `name` string, required
    - `first_name` string, required
    - `last_name` string, required
  - `matched_pending_student` PendingStudentInfo
    - `id` string, required
    - `name` string, required
    - `first_name` string, required
    - `last_name` string, required

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.dev/excellence-ai/apis/excellence-learning.md) · [All operations](https://skmtc.dev/excellence-ai/apis/excellence-learning/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/excellence-ai/excellence-learning/revisions/c407f3b5a05b/schema)
