---
title: "Register Environment"
method: POST
path: "/api/admin/data-environments"
tags: ["agent-data-admin"]
---

# Register Environment

`POST /api/admin/data-environments`

## 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/admin/data-environments`
- Auth: none declared

## Request body

- RegisterEnvironmentIn
  - `name` string, required
  - `admin_dsn` string, nullable
  - `admin_dsn_secret_ref` string, nullable

## Response `200`

Successful Response

- EnvironmentOut
  - `id` string, required
  - `name` string, required
  - `kind` string, required
  - `owner_identity_id` string, nullable, required
  - `status` string, required
  - `ownership_kind` string, required
  - `detached_at` string, nullable, required
  - `verification` object, nullable, required
  - `verified_at` string, nullable, required
  - `created_at` string, nullable, required

## 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)
