Clone agent
Clone a campaign reached through an existing agent into another project. campaign mode duplicates the campaign and workflow only. everything mode also provisions a new voice agent cloned from the source config. agent mode carries the agent onto a brand-new campaign of the type given in agentType, copying nothing campaign-owned. A copy landing on a sub-account whose CRM differs from the source’s does NOT inherit the campaign’s trigger: the two CRMs do not start campaigns on the same events, so the copy is created with none and the operator chooses one before it goes live.
Required API key scope: agents:write.
Authorizations
Send your API key as Authorization: Bearer YOUR_API_KEY.
Headers
Optional retry key for create-style operations. Reusing the same key with the same request returns the original result; reusing it with a different request returns 409.
1 - 255Path Parameters
Agent id.
1Body
1"loc_xyz789"
What to copy. campaign duplicates the campaign and workflow onto a fresh default agent. everything also clones the voice agent. agent is the inverse of the other two: it carries the AGENT — its voice, its script and its own skills — onto a brand-new campaign of the type named in agentType, and copies nothing the source campaign started on.
campaign, everything, agent "everything"
1"Roofing Follow Up Clone"
Required for mode agent, and refused on the other two, which copy the source campaign's own type and cannot retype it.
"inbound"
Trigger tags for the clone, on a sub-account whose CRM has tags. A tag drives one campaign per sub-account, so a clone landing in the SAME sub-account as its source cannot inherit the source's tags — send its own here, or the copy arrives with no trigger and never dials. Omit when cloning into a different sub-account, where the inherited tags are still free. Ignored for mode agent, which mints its own campaign.
1Response
Agent or campaign cloned.
