---
title: "Get deployment environment states"
url: https://hexelstudio.com/docs/api/titan/management/get-deployment-environment-states
---

# Get deployment environment states

**GET** `/titan/management/deployments/{id}/environment-states`

## Path parameters

- `id: string`

## Headers

- `Authorization: string`

  `Bearer <token>`. A Hexel Studio access token for a member or a service user of your organization (or send a service user's API key as X-API-Key).

## Returns

`200` Organization-scoped result. (`EnvironmentStatesView`)

- `configured: boolean`

- `deployment_id: string`

- `enforced: boolean`

- `enforcement_deployment_id: string`

- `environments: array of object`

  - `changed_at: string`

  - `environment_id: string`

  - `reason_code: string`

    One of: `"CHANGE_FREEZE"`, `"OPERATOR_REQUEST"`, `"SECURITY_INCIDENT"`, `"MAINTENANCE_WINDOW"`, `"POLICY_VIOLATION"`

  - `state: string`

    One of: `"frozen"`, `"degraded"`, `"maintenance"`, `"emergency"`

- `organization_id: string`

- `version: string`

## Errors

- `400` Invalid request or path; ENVIRONMENT_STATES_INVALID when the list does not match the closed schema (an unknown state or reason, active listed, a duplicate environment, over 1000 environments).
- `401` Missing or invalid authenticated context.
- `403` Organization mismatch or denied IAM action.
- `404` Unknown or foreign organization resource, or plan not yet prepared.
- `405` HTTP method is not supported on this route.
- `409` The deployment is not a provisioned shared-plane deployment (DEPLOYMENT_NOT_PROVISIONED) or is retired (DEPLOYMENT_RETIRED).
- `502` The deployment's Configuration Authority refused or answered unexpectedly (closed code).
- `503` Local storage or the deployment's Configuration Authority unavailable.

## Example

```bash
curl --request GET \
  --url 'https://api.hexelstudio.com/v1/titan/management/deployments/{id}/environment-states' \
  --header "Authorization: Bearer $ACCESS_TOKEN"
```

### Response (200)

```json
{
  "configured": true,
  "deployment_id": "string",
  "enforced": true,
  "enforcement_deployment_id": "string",
  "environments": [
    {
      "changed_at": "2026-01-01T00:00:00Z",
      "environment_id": "string",
      "reason_code": "CHANGE_FREEZE",
      "state": "frozen"
    }
  ],
  "organization_id": "string",
  "version": "string"
}
```

### Response (400)

```json
{
  "error": {
    "billing_url": "string",
    "code": "string",
    "message": "string"
  }
}
```

### Response (401)

```json
{
  "error": {
    "billing_url": "string",
    "code": "string",
    "message": "string"
  }
}
```

### Response (403)

```json
{
  "error": {
    "billing_url": "string",
    "code": "string",
    "message": "string"
  }
}
```

### Response (404)

```json
{
  "error": {
    "billing_url": "string",
    "code": "string",
    "message": "string"
  }
}
```

### Response (405)

```json
{
  "error": {
    "billing_url": "string",
    "code": "string",
    "message": "string"
  }
}
```

### Response (409)

```json
{
  "error": {
    "billing_url": "string",
    "code": "string",
    "message": "string"
  }
}
```

### Response (502)

```json
{
  "error": {
    "billing_url": "string",
    "code": "string",
    "message": "string"
  }
}
```

### Response (503)

```json
{
  "error": {
    "billing_url": "string",
    "code": "string",
    "message": "string"
  }
}
```
