Skip to Content
Experiences

Create an experience

POST
/experiences

Authorization

cookie__Secure-avatarstudio.session_token<token>

An authenticated Studio session. Each operation enforces its resource and role permissions.

Request Body

application/json
  1. body
documentrequired
tagsarray<>
Itemsitems <= 128
Create an experience
curl -X POST 'https://example.com/v1/experiences' \
  -H 'Content-Type: application/json' \
  -d '{
  "document": {
    "schemaVersion": 1,
    "title": "string",
    "instructions": "string",
    "character": {
      "displayName": "string"
    }
  }
}'
{
  "id": "string",
  "object": "experience",
  "title": "string",
  "status": "draft",
  "document": {
    "schemaVersion": 1,
    "title": "string",
    "summary": "",
    "domain": "sales",
    "domainPackId": "core.ru.v1",
    "locale": "ru-RU",
    "instructions": "string",
    "variables": [
      {
        "name": "string",
        "value": "string"
      }
    ],
    "welcomeMessage": {
      "enabled": true,
      "allowInterruptions": true
    },
    "callEnding": {
      "enabled": false,
      "conditions": "",
      "finalResponse": "Поблагодари пользователя за разговор и попрощайся.",
      "deleteRoom": false,
      "endpointUrl": "",
      "headers": [],
      "summary": {
        "enabled": false,
        "instructions": "",
        "providerId": "gemini",
        "modelId": "string"
      }
    },
    "character": {
      "displayName": "string",
      "role": "",
      "background": "",
      "personality": [],
      "speakingStyle": "",
      "greeting": "",
      "values": [
        "string"
      ],
      "stance": "string",
      "avatarId": "string"
    },
    "scenario": {
      "title": "",
      "participantRole": "",
      "context": "",
      "goals": [],
      "stages": [],
      "guardrails": [],
      "completionCriteria": []
    },
    "knowledge": {
      "facts": [],
      "provider": "none"
    },
    "tools": {
      "version": 2,
      "source": "string",
      "functionDeclarations": [],
      "httpTools": [],
      "mcpServers": []
    },
    "runtime": {
      "voiceId": "",
      "voiceLanguage": "ru-RU",
      "environmentPresetId": ""
    },
    "provenance": {
      "type": "blank"
    },
    "extensions": {
      "property1": "string",
      "property2": "string"
    }
  },
  "tags": [
    "string"
  ],
  "revision": 0,
  "is_owner": true,
  "created_at": -9007199254740991,
  "updated_at": -9007199254740991,
  "tool_secret_names": [
    "string"
  ],
  "thumbnail_url": "string",
  "thumbnail_source_key": "string"
}

Response Body

OK

application/json
  1. response
idrequiredstring
Match^exp_[1-9]\d{0,9}$
objectrequiredunknown
titlerequiredstring
statusrequiredstring
Value in"draft""archived"
documentrequired|null
tagsrequiredarray<string>
revisionrequiredinteger
Range0 <= value <= 9007199254740990
is_ownerrequiredboolean
created_atrequiredinteger
Range-9007199254740991 <= value <= 9007199254740991
updated_atrequired|null
tool_secret_namesrequiredarray<string>
thumbnail_urlrequired|null
thumbnail_source_key|null