Duplicate agent to another organization
Duplicates a SINGLE_PROMPT agent’s live active version into a target organization (can also be the same organization). Copies all versioned configuration but strips organization-specific resources: knowledge base tools are removed, default variable values are blanked, and a new avatar is generated. The duplicate starts with a published V1 as its active version.
Authentication
AuthorizationBearer
API key from the console ApiKey collection, sent as Bearer token. Also accepts session cookies for browser-based auth.
Path parameters
id
The ID of the source agent to duplicate
Request
This endpoint expects an object.
targetOrganizationId
The ID of the organization to duplicate the agent into. User must be a member of this organization.
Response
Agent duplicated successfully
status
data
Errors
400
Bad Request Error
403
Forbidden Error
404
Not Found Error
500
Internal Server Error

