---
title: "Redirect to the versioned configuration schema URL"
method: GET
path: "/api/schema"
tags: ["Schema"]
---

# Redirect to the versioned configuration schema URL

`GET /api/schema`

## Request

- Base URL: `https://mail.example.com`
- URL: `https://mail.example.com/api/schema`
- Auth: one of:
  - HTTP bearer
  - HTTP basic
- TypeScript: <https://skmtc.dev/stalwartlabs/apis/stalwart-management-api/docs/api/schema/get.ts> (a function with typed inputs; its response is checked against the schema)

Redirects (302) to `/api/schema/{hash}` where `{hash}` is the SHA-256
of the current configuration schema. Use this when you do not yet know
the hash; once you have cached a schema at a given hash the immutable
cache will never require re-download.

## Other responses

- `302`: Redirect to the hashed schema URL
- `401`: Missing or invalid credentials

## Changes

- **2026-07-17** (v1) `a38a1bbfe8b2`: 1 info
  - endpoint added
- **2025-01-05** (v1) `fbbe298bfa82`: 1 breaking
  - api path removed without deprecation

[Operation history](https://skmtc.dev/stalwartlabs/apis/stalwart-management-api/changes/api/schema/get.md)

---

[API](https://skmtc.dev/stalwartlabs/apis/stalwart-management-api.md) - [All operations](https://skmtc.dev/stalwartlabs/apis/stalwart-management-api/llms.txt) - [OpenAPI document](https://skmtc.dev/stalwartlabs/apis/stalwart-management-api/revisions/a38a1bbfe8b2?raw)
