---
title: "Get jail state"
method: GET
path: "/jail/{ctid}/state"
tags: ["Jail"]
---

# Get jail state

`GET /jail/{ctid}/state`

Retrieve the current runtime state and pending lifecycle action for a jail by CTID

## Path parameters

- `ctid` integer, required

## Response `200`

Success

- GithubComAlchemillahqSylveInternalAPIResponseGithubComAlchemillahqSylveInternalInterfacesServicesJailState
  - `data` GithubComAlchemillahqSylveInternalInterfacesServicesJailState
    - `ctId` integer
    - `memory` integer
    - `overrideRequested` boolean
    - `pcpu` number
    - `pendingAction` string
    - `state` string
  - `error` string
  - `message` string
  - `status` string

## Other responses

- `400` — Bad Request
- `401` — Unauthorized
- `404` — Jail Not Found
- `500` — Internal Server Error
- `503` — Service Unavailable

---

[API](https://skmtc.net/alchemillahq/apis/sylve-api.md) · [All operations](https://skmtc.net/alchemillahq/apis/sylve-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/alchemillahq/sylve-api/revisions/7a7bea85004e/schema)
