---
title: "POST /simulate/agent-definitions/{agent_id}/versions/create/"
method: POST
path: "/simulate/agent-definitions/{agent_id}/versions/create/"
tags: ["simulate"]
---

# POST /simulate/agent-definitions/{agent_id}/versions/create/

`POST /simulate/agent-definitions/{agent_id}/versions/create/`

## Request

- Base URL: `http://localhost:8000`
- URL: `http://localhost:8000/simulate/agent-definitions/{agent_id}/versions/create/`
- Auth: one of:
  - API key in header `X-Api-Key`
  - API key in header `X-Secret-Key`

Create a new version of an agent definition.

## Request body

- AgentVersionCreateRequest
  - `agent_name` string
  - `agent_type` 'voice' | 'text'
  - `description` string, nullable
  - `provider` string, nullable
  - `api_key` string, nullable
  - `assistant_id` string, nullable
  - `authentication_method` 'api_key', nullable
  - `language` string, nullable
  - `languages` string[], nullable
  - `contact_number` string, nullable
  - `inbound` boolean
  - `target_speaks_first` boolean, nullable
  - `knowledge_base` string, uuid, nullable
  - `model` string, nullable
  - `model_details` object, nullable
  - `livekit_url` string
  - `livekit_api_key` string
  - `livekit_api_secret` string
  - `livekit_agent_name` string
  - `livekit_config_json` object, nullable
  - `livekit_max_concurrency` integer
  - `commit_message` string
  - `observability_enabled` boolean

## Response `201`

Created

- AgentVersionCreateResponse
  - `message` string
  - `version` AgentVersionResponse
    - `id` string, uuid
    - `version_number` integer: Version number of the agent
    - `version_name` string, nullable: Human-readable version name (e.g., 'v1.2.3')
    - `version_name_display` string
    - `status` 'draft' | 'active' | 'archived' | 'deprecated': Current status of this version
    - `status_display` string
    - `score` string, decimal, nullable: Performance score (0.0 to 10.0)
    - `test_count` integer: Number of tests run for this version
    - `pass_rate` string, decimal, nullable: Test pass rate percentage
    - `description` string: Description of changes in this version
    - `commit_message` string, nullable: Commit message for the agent version
    - `release_notes` string, nullable: Detailed release notes for this version
    - `agent_definition` string, uuid: Parent agent definition
    - `organization` string, uuid: Organization this version belongs to
    - `configuration_snapshot` object: Snapshot of agent configuration at this version
    - `is_active` string
    - `is_latest` string
    - `created_at` string, date-time
    - `updated_at` string, date-time

## Other responses

- `400`: Bad Request
- `404`: Not Found
- `500`: Internal Server Error
- `default`: Default error response

---

[API](https://skmtc.dev/futureagi/apis/future-agi-management-api.md) · [All operations](https://skmtc.dev/futureagi/apis/future-agi-management-api/llms.txt) · [OpenAPI document](https://skmtc.dev/futureagi/apis/future-agi-management-api/revisions/c8684118e142?raw)
