---
title: "Create Work Runtime Environment"
method: POST
path: "/api/work-runtimes/environments"
tags: ["work-runtimes"]
---

# Create Work Runtime Environment

`POST /api/work-runtimes/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/work-runtimes/environments`
- Auth: none declared

## Headers

- `x-impersonate-identity-id` string, nullable

## Request body

- CreateRuntimeEnvironmentRequest
  - `runtime_kind` string, required
  - `name` string, required
  - `library_id` string, uuid, nullable
  - `environment_ref` string, nullable
  - `registration_id` string, uuid, nullable
  - `config` object
  - `policy_defaults` object
  - `setup_recipe` object, nullable
  - `repository` DevelopmentRepositoryRequest
    - `provider` string, required
    - `repository_id` string, required
    - `owner` string, required
    - `name` string, required
    - `base_branch` string, required
    - `installation_instance_id` string, uuid, required
    - `manager_identity_id` string, uuid, nullable
    - `lifecycle_profile_id` string, uuid, nullable

## Response `201`

Successful Response

- RuntimeEnvironmentResponse
  - `id` string, uuid, required
  - `owner_identity_id` string, uuid, required
  - `library_id` string, uuid, nullable
  - `runtime_kind` string, required
  - `name` string, required
  - `environment_ref` string, required
  - `registration_id` string, uuid, nullable
  - `status` string, required
  - `config` object, required
  - `policy_defaults` object, required
  - `setup_recipe` object, nullable
  - `setup_recipe_version` integer
  - `setup_recipe_fingerprint` string, nullable
  - `repository` DevelopmentRepositoryResponse
    - `provider` string, required
    - `repository_id` string, required
    - `owner` string, required
    - `name` string, required
    - `base_branch` string, required
    - `installation_instance_id` string, uuid, nullable
    - `manager_identity_id` string, uuid, nullable
    - `lifecycle_profile_id` string, uuid, nullable
  - `setup_status` string, required
  - `health_status` string, required
  - `setup_issues` string[], required
  - `next_action` string, nullable
  - `created_at` string, date-time, required
  - `updated_at` string, date-time, 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/5fdd1072e877?raw)
