---
title: "Close Environment"
method: POST
path: "/env/close"
tags: ["Environment"]
---

# Close Environment

`POST /env/close`

关闭并清理环境

## Request body

- EnvCloseRequest — 关闭环境请求
  - `session_id` string, required

## Response `200`

Successful Response

- EnvCloseResponse — 关闭环境响应
  - `status` string
  - `message` string

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.dev/stainless-api/apis/agentlin-api.md) · [All operations](https://skmtc.dev/stainless-api/apis/agentlin-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/stainless-api/agentlin-api/revisions/be7769091980/schema)
