Agents Platform
Duplicate Agent
Changed onCreate a new agent by duplicating an existing one. The new agent gets a copy of every unarchived branch of the source agent, each with the same name and description and starting from the latest version on that branch. The live traffic split is copied onto the new branches, with any share held by a branch that was not copied moved to main. Version history, drafts, archived branches, past traffic splits and experiments are not copied.
post/v1/convai/agents/{agent_id}/duplicate
Request
- Base URLhttps://api.elevenlabs.io (the document declares no server; this is the origin it was published from)
- URLhttps://api.elevenlabs.io/v1/convai/agents/{agent_id}/duplicate
- Authnone declared
Path parameters
agent_idstring required
The id of an agent. This is returned on agent creation.
Example:agent_3701k3ttaq12ewp8b7qv5rfyszkz
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
Example request
{
"name": "My agent"
}Response
Successful Response
Example response
{
"agent_id": "J3Pbu5gP6NNKBscdCdwB"
}Changes
- info
endpoint added
- info