Copies an existing custom agent.

Creates a copy of an existing custom agent in the current workspace. Provide the new name and optional description in the request body. The source agent supplies the initial configuration and system prompt. Returns the new agent with its own id. <Check title="Required Permissions" icon="key">The user must have read access to the source agent.</Check>

Authentication

AuthorizationBearer

Bearer authentication of the form Bearer <token>, where token is your auth token.

Path parameters

agentIdstringRequiredformat: "uuid"
The source agent id.

Request

The name and description for the copy.
namestring or nullOptional
The name shown to users.
descriptionstring or nullOptional
A short explanation of what the agent does.

Response

OK
idstringOptionalformat: "uuid"
The id of the entity.
createdOnstringOptionalformat: "date-time"
The date this entity was created.
createdBystringOptionalformat: "uuid"
The id of the user who created this entity.
updatedOnstringOptionalformat: "date-time"
The date this entity was last modified.
updatedBystringOptionalformat: "uuid"
The id of the user who last modified this entity.
typestring or nullOptional
The public agent type.
connectorslist of objects or nullOptional
The linked connectors.
namestring or nullOptional
The name shown to users.
descriptionstring or nullOptional
A short explanation of what the agent does.
currentSystemPromptVersionIdstring or nullOptionalformat: "uuid"
The current system prompt version.
modelProviderstring or nullOptional
The configured model provider when no preset is selected.
modelNamestring or nullOptional
The configured model name when no preset is selected.
presetKeystring or nullOptional
The configured workspace model preset key.
reasoningLevelstring or nullOptional
The configured reasoning level.
systemPromptstring or nullOptional
The current system prompt.
webSearchEnabledbooleanOptional
Whether web search is enabled.
aworkAccessEnabledbooleanOptional
Whether awork access is enabled.
googleGenAiAccessEnabledbooleanOptional
Whether Google image generation is enabled.
openAiImageGenerationAccessEnabledbooleanOptional
Whether OpenAI image generation is enabled.
skillIdslist of strings or nullOptional
The skills linked to the agent.
hasImagebooleanOptional
Whether the agent has a profile image.
isArchivedbooleanOptional
Whether the agent is archived.
workspaceAccessLevelenum or nullOptional

The workspace-wide access level.

accessLevelenumOptional
The requesting user's access level.

Errors

400
Bad Request Error