Skip to main content
POST
/
api
/
v1
/
agents
/
{agentId}
/
clone
Clone agent
const options = {
  method: 'POST',
  headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
  body: JSON.stringify({name: '<string>'})
};

fetch('https://blackbox.dasha.ai/api/v1/agents/{agentId}/clone', options)
  .then(res => res.json())
  .then(res => console.log(res))
  .catch(err => console.error(err));
{
  "agentId": "<string>"
}

Path Parameters

agentId
string
required

Source agent identifier to clone

Body

Clone request containing the new agent name

Request to clone an existing agent with a new name. The clone is created with the source agent's configuration but with inbound SIP config excluded to avoid routing conflicts.

name
string
required

Display name for the cloned agent.

Required string length: 1 - 100

Response

Agent cloned successfully, returns new agent ID

Result of a successful agent clone operation. Contains only the new agent identifier — fetch the full agent using the Get agent endpoint if the complete configuration is needed.

agentId
string | null
required

Unique identifier of the newly created agent clone.