Skip to main content
POST
Envía exactamente un origen:
  • master_workflow_id copia un agente con todas sus tareas. En la API, un agente es un master_workflow.
  • workflow_id copia una sola tarea. En la API, una tarea es un workflow.

Qué incluye la copia

La copia conserva la configuración, las etapas, los campos, las herramientas y las reglas del origen, y se crea pausada, así que todavía no contacta a nadie. Las conexiones ligadas a tu cuenta principal no se copian: números de WhatsApp y teléfono, canales, integraciones, bases de conocimiento, ofertas y anfitriones. next_steps y missing_connections indican qué debe conectar la subcuenta. Los pasos con blocking: true detienen los canales de blocks hasta completarlos. Después de conectar lo que falta, activa las tareas desde dentro de la subcuenta. Una subcuenta desactivada responde 409 sub_account_inactive. Reactívala primero con Reactivar subcuenta. Para el acceso a la función, los permisos y confirm, consulta Antes de empezar.

Autorizaciones

X-API-Key
string
header
requerido

API key for authentication. Keys are prefixed with nxr_live_.

Parámetros de ruta

sub_account_id
string<uuid>
requerido

Sub-account ID, from items[].id in List sub-accounts. A malformed ID returns 400 invalid_sub_account_id.

Cuerpo

application/json
source
object
requerido

What to copy. Send exactly one of the two IDs.

confirm
enum<boolean>
requerido

Must be true.

Opciones disponibles:
true
names
object

Optional new names for the copy. principal sets the name of the copied agent. Leave it out to keep the source names.

Respuesta

status: "existed": the copy already existed; nothing new was created.

status
enum<string>
requerido
Opciones disponibles:
created,
existed
master_workflow_id
string<uuid> | null
requerido

The copied agent in the sub-account. null when the source was a single task.

workflow_ids
string<uuid>[]
requerido

The copied tasks in the sub-account, all paused.

next_steps
object[]
requerido

What the sub-account must set up before the copy goes live. blocking: true steps stop the channels listed in blocks.

missing_connections
object[]
requerido

Connections and credentials that were left out of the copy.

Última modificación el 1 de octubre de 2026