Agents

Clone Agent

Clone an agent's configuration into a brand-new agent.

Copies only the configuration JSON (plus the instruction-builder inputs that produced it) from one version of the source agent — by default its latest version, or request.version when given — into version 1 of a new agent named request.name. The clone starts unpublished and undeployed: phone numbers, widgets, SIP endpoints, inbound routing and conversations all stay with the source, since those bindings are one-agent-only. Demo plumbing (is_demo and the demo/creation metadata) is dropped too — the clone is a regular agent.

A failed config copy rolls the new agent back; see _roll_back_clone for why a shell must not survive.

post/core/agents/{id}/clone

Request

  • Base URL
    https://api.anyreach.ai (the document declares no server; this is the origin it was published from)
  • Auth
    HTTP bearer

Path parameters

idstring required

Headers

x-anyreach-orgstring nullable

Organization ID for user PATs (pat_ prefix tokens)

Request body

namestring required
versioninteger nullable

Response

Successful Response

idstring required
organization_idstring required
namestring required
descriptionstring required
activeboolean required
is_demoboolean required
metadataobject nullable
created_atstring date-time required
updated_atstring date-time required
created_bystring nullable
modified_bystring nullable
labelsobject
feedback_formobject nullable

Changes

No recorded changes to this operation across all 1 revision of this API.