Skip to main content
POST
/
v1
/
orchestrate
/
agents
/
{agent_id}
/
environment
Create An Environment For An Agent
curl --request POST \
  --url https://{api_endpoint}/api/v1/orchestrate/agents/{agent_id}/environment \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "name": "<string>",
  "description": "<string>",
  "voice": {
    "enable_on_homepage": false
  },
  "current_version": 123
}
'
{
  "detail": [
    {
      "loc": [
        "<string>"
      ],
      "msg": "<string>",
      "type": "<string>"
    }
  ]
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

agent_id
string<uuid>
required

Body

application/json

Schema for creating a new Environment.

name
string
required

Name of the environment

description
string
required

Description of what the environment does

voice
Voice · object

Voice configuration for the environment

current_version
integer | null

Current agent version pointed to this environment

Response

Successful Response