---
title: "Use School Code"
method: POST
path: "/use-school-code"
tags: ["School Codes"]
---

# Use School Code

`POST /use-school-code`

Use a school code to gain access.
Available to all authenticated users.

## Request body

- UseSchoolCodeRequest — Request model for using a school code.
  - `code` string, required

## Response `200`

Successful Response

- UseSchoolCodeResponse — Response model for using a school code.
  - `message` string, required
  - `access_granted` boolean, required
  - `school_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)
