---
title: "Create An Environment For An Agent"
method: POST
path: "/v1/orchestrate/agents/{agent_id}/environment"
tags: ["Agent Release Environments"]
---

# Create An Environment For An Agent

`POST /v1/orchestrate/agents/{agent_id}/environment`

Registers a new environment for an agent.

## Path parameters

- `agent_id` string, uuid, required

## Request body

- CreateEnvironment — Schema for creating a new Environment.
  - `name` string, required — Name of the environment
  - `description` string, required — Description of what the environment does
  - `voice` Voice
    - `enable_on_homepage` boolean — Enable voice on homepage
    - `enable_on_embed` boolean, nullable — Enable voice on homepage
  - `current_version` integer, nullable — Current agent version pointed to this environment
  - `enable_wxg_integration` boolean, nullable — Enable/disable WXG integration for this agent

## Response `200`

Successful Response

- unknown

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.net/ibm/apis/wxo-server-api.md) · [All operations](https://skmtc.net/ibm/apis/wxo-server-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/ibm/wxo-server-api/revisions/82c114c37196/schema)
