---
title: "Export Environment"
method: GET
path: "/api/agent-data/environments/{environment_id}/export"
tags: ["agent-data"]
---

# Export Environment

`GET /api/agent-data/environments/{environment_id}/export`

## Request

- Base URL: `https://app.thinqos.com` (the document declares no server; this is the origin it was published from)
- URL: `https://app.thinqos.com/api/agent-data/environments/{environment_id}/export`
- Auth: none declared

Export: the lifecycle's final step. Plain SQL, restorable with psql alone.

Deliberately allowed on a detached environment — detach-then-export is the
intended order (TOS-1614): no further writes land while the export runs.

## Path parameters

- `environment_id` string, uuid, required

## Response `200`

Successful Response

- unknown

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/thinqos/apis/thinqos-api.md) · [All operations](https://skmtc.dev/thinqos/apis/thinqos-api/llms.txt) · [OpenAPI document](https://skmtc.dev/thinqos/apis/thinqos-api/revisions/5387b4ded614?raw)
