# Zones

A device zone is where a device connects: the region Qualithm's gateway serves for it. Every
top-level [scope](https://docs.qualithm.com/scopes.md) binds to one zone at creation, and a device takes its scope's zone when
it claims its credential. A zone's availability answers whether that zone accepts resource creation
in the current environment, not whether it exists — a zone unavailable right now stays readable.

## Zone availability

Zone status splits a zone from its availability:

- **Known** — the zone exists in the Qualithm union type (`de-fra-a` | `sg-sin-a`). Reads such as
  `GET /v1/teams/{teamId}/scopes?zone=…` pass this check. An unknown zone returns `400`.
- **Available** — the zone accepts new resources. This is environment-scoped; a zone can reject
  creation in `test` while still being readable in production.

Each environment opens these zones for new scopes:

| Environment | Available zones        |
| ----------- | ---------------------- |
| Production  | `de-fra-a`, `sg-sin-a` |
| Test        | `sg-sin-a` only        |
| Development | `sg-sin-a` only        |

Smaller environments intentionally scope down to `sg-sin-a`; `de-fra-a` opens only in production.

## Pick a zone

Create a top-level scope in a zone the table above lists for your environment. `de-fra-a` is
Frankfurt and `sg-sin-a` is Singapore.

## When a zone rejects creation

Qualithm can pause a zone. A paused zone rejects scope creation with a `403` and the message
`zone is not open for new scopes in this environment`. A zone outside the environment's available
set returns the same response. Create the scope in an available zone.

Reads keep working while a zone is paused. `GET /v1/teams/{teamId}/scopes?zone=…` still returns its
scopes, and existing devices stay in place.

## See also

- [Devices guide](https://docs.qualithm.com/devices.md)
- [Scopes guide](https://docs.qualithm.com/scopes.md)
