---
title: "Return the configuration schema at a specific hash"
method: GET
path: "/api/schema/{hash}"
tags: ["Schema"]
---

# Return the configuration schema at a specific hash

`GET /api/schema/{hash}`

Returns the JSON Schema describing the full Stalwart configuration tree.
The response is always gzip-encoded (`Content-Encoding: gzip`) and served
with an immutable cache policy — the schema for a given hash never
changes. If the hash does not match the server's current schema, the
server redirects to the correct URL.

## Path parameters

- `hash` string, required

## Response `200`

Gzipped JSON Schema document

- object — JSON Schema document describing Stalwart config

## Other responses

- `302` — Redirect to the current schema URL when the hash is stale
- `401` — Missing or invalid credentials

---

[API](https://skmtc.net/stalwartlabs/apis/stalwart-management-api.md) · [All operations](https://skmtc.net/stalwartlabs/apis/stalwart-management-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/stalwartlabs/stalwart-management-api/revisions/a38a1bbfe8b2/schema)
