---
title: "Add Pending Students To Class"
method: POST
path: "/admin/classes/{class_id}/pending-students"
tags: ["admin"]
---

# Add Pending Students To Class

`POST /admin/classes/{class_id}/pending-students`

Add students to an existing class's roster on behalf of its teacher.
Names already on the roster are skipped.

## Path parameters

- `class_id` string, required

## Request body

- AdminAddPendingStudentsRequest
  - `students` AdminRosterStudent[], required
    - `first_name` string, required
    - `last_name` string, required
    - `email` string, email, nullable
  - `send_invitations` boolean

## Response `200`

Successful Response

- AdminTeacherClassResponse
  - `class_id` string, required
  - `class_code` string, required
  - `name` string, required
  - `grade` string, nullable
  - `subject` string, required
  - `school_year` string, nullable
  - `teacher_id` string, required
  - `teacher_email` string, required
  - `students_added` integer, required
  - `students_skipped` integer, required
  - `invitations_sent` integer, required
  - `warnings` string[], required

## Other responses

- `422` — Validation Error

## Changes

- **2026-09-02** `8d495ed916c6` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/excellence-ai/apis/excellence-learning/changes/admin/classes/:class_id/pending-students/post.md)

---

[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/8d495ed916c6/schema)
