Agents Platform

Create Environment

Changed on

Create a workspace environment. Variables without a value for it fall back to their production value.

post/v1/convai/environments

Request

  • Base URL
    https://api.elevenlabs.io (the document declares no server; this is the origin it was published from)
  • URL
    https://api.elevenlabs.io/v1/convai/environments
  • Auth
    none declared

Headers

xi-api-keystring nullable

Your API key. This is required by most endpoints to access our API programmatically. You can view your xi-api-key using the 'Profile' tab on the website.

Request body

namestring required

Unique name of the environment, e.g. 'staging'.

Response

Successful Response

namestring required

Name of the environment, e.g. 'staging'.

updated_at_unix_secsinteger nullable

When the environment was created or one of its values last changed. Unset when neither is known.

created_by_user_idstring nullable

Unset for 'production' and when the creator is not known.

Example response

{
  "created_by_user_id": "user_7k2m9x",
  "name": "staging",
  "updated_at_unix_secs": 1714003600
}

Changes