---
title: "Create School Invitation"
method: POST
path: "/admin/schools/{school_id}/invitations"
tags: ["Teacher Invitations"]
---

# Create School Invitation

`POST /admin/schools/{school_id}/invitations`

## Path parameters

- `school_id` string, required — The ID of the school

## Request body

- TeacherInvitationCreate
  - `email` string, email, required
  - `first_name` string, nullable
  - `last_name` string, nullable
  - `subject` 'maths' | 'physique-chimie'

## Response `200`

Successful Response

- TeacherInvitationSendResponse
  - `invitation` TeacherInvitationResponse, required
    - `id` string, required
    - `email` string, required
    - `first_name` string, nullable
    - `last_name` string, nullable
    - `subject` 'maths' | 'physique-chimie'
    - `school_id` string, required
    - `status` 'pending' | 'accepted' | 'expired', required
    - `created_at` string, date-time, required
    - `expires_at` string, date-time, required
    - `accepted_at` string, date-time, nullable
  - `email_sent` boolean, required

## Other responses

- `400` — Malformed identifier
- `404` — Resource not found
- `409` — Business rule violated
- `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/ef67479ed898/schema)
