---
title: "Create Agent Draft"
method: POST
path: "/v1/convai/agents/{agent_id}/drafts"
tags: ["Agents Platform"]
---

# Create Agent Draft

`POST /v1/convai/agents/{agent_id}/drafts`

Create a new draft for an agent

## Path parameters

- `agent_id` string, required — The id of an agent. This is returned on agent creation.

## Query parameters

- `branch_id` string, required — The ID of the agent branch to use

## Headers

- `xi-api-key` string, 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

- BodyCreateAgentDraftV1ConvaiAgentsAgentIdDraftsPost
  - `conversation_config` object, required — Conversation config for the draft
  - `platform_settings` object, required — Platform settings for the draft
  - `workflow` AgentWorkflowRequestModel, required
    - `edges` object
    - `nodes` object
    - `prevent_subagent_loops` boolean — Whether to prevent loops in the workflow execution.
  - `name` string, required — Name for the draft
  - `tags` string[], nullable — Tags to help classify and filter the agent

## Response `200`

Successful Response

- unknown

## Other responses

- `422` — Validation Error

## Changes

- **2026-09-26** `4a6716242c9e` — 3 info
  - added the new `deepseek-v41-flash` enum value to the request property `workflow/nodes/additionalProperties/oneOf[subschema #4: WorkflowOverrideAgentNodeModel]/conversation_config/agent/anyOf[subschema #1: AgentConfigAPIModelWorkflowOverride]/prompt/anyOf[subschema #1: PromptAgentAPIModelWorkflowOverride]/backup_llm_config/anyOf[subschema #3: BackupLLMOverride]/order/items/`
  - added the new `deepseek-v41-flash` enum value to the request property `workflow/nodes/additionalProperties/oneOf[subschema #4: WorkflowOverrideAgentNodeModel]/conversation_config/agent/anyOf[subschema #1: AgentConfigAPIModelWorkflowOverride]/prompt/anyOf[subschema #1: PromptAgentAPIModelWorkflowOverride]/llm/anyOf[subschema #1: LLM]/`
  - added the new `deepseek-v41-flash` enum value to the request property `workflow/nodes/additionalProperties/oneOf[subschema #4: WorkflowOverrideAgentNodeModel]/conversation_config/language_presets/anyOf[subschema #1]/additionalProperties/overrides/agent/anyOf[subschema #1: AgentConfigOverride]/prompt/anyOf[subschema #1: PromptAgentAPIModelOverride]/llm/anyOf[subschema #1: LLM]/`
- …earlier changes not shown

[Full history](https://skmtc.dev/elevenlabs/apis/elevenlabs-api-documentation/changes/v1/convai/agents/:agent_id/drafts/post.md)

---

[API](https://skmtc.dev/elevenlabs/apis/elevenlabs-api-documentation.md) · [All operations](https://skmtc.dev/elevenlabs/apis/elevenlabs-api-documentation/llms.txt) · [OpenAPI document](https://skmtc.dev/elevenlabs/apis/elevenlabs-api-documentation/revisions/48a38e3b0dbd?raw)
