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.
Authentication
AuthorizationBearerSend your token in the Authorization: Bearer <token> header. See Authentication for API keys and OAuth.
Path parameters
agentIdstringRequiredThe source agent id.
Request body Required
The name and description for the copy.
application/json
namestring or nullOptionalThe name shown to users.
descriptionstring or nullOptionalA short explanation of what the agent does.
Responses
200 OK
application/json
idstringOptionalThe id of the entity.
createdOnstringOptionalThe date this entity was created.
createdBystringOptionalThe id of the user who created this entity.
updatedOnstringOptionalThe date this entity was last modified.
updatedBystringOptionalThe id of the user who last modified this entity.
isOfficialbooleanOptionalWhether a workspace admin marked this item as official. False when metadata is disabled.
tagsarray of object or nullOptionalThe canonical AI tags. Empty when metadata is disabled.
Show 4 properties
idstringOptionalThe stable identifier of this workspace tag.
namestring or nullOptionalThe shared display name.
colorstring or nullOptionalThe shared display color.
assignmentCountinteger or nullOptionalThe number of active agents, skills, and connectors that use this tag. Only set by the tag list.
canEditTagsbooleanOptionalWhether the current viewer can replace this item's tags.
canSetOfficialbooleanOptionalWhether the current viewer can change this item's official status.
typestring or nullOptionalThe public agent type.
connectorsarray of object or nullOptionalThe linked connectors.
Show 5 properties
idstringOptionalThe linked connector identifier.
namestring or nullOptionalThe connector name.
statusstring or nullOptionalAlways pending in this shared response. It does not indicate whether an account is connected. Read the agent's configuration endpoint for the current user's connection status.
connectionModestring or nullOptionalHow the agent chooses an account: actingUser lets each user supply their own; specificConnection uses the editor-provided account for everyone.
connectionIdstring or nullOptionalThe editor-provided account id in specificConnection mode; otherwise null.
namestring or nullOptionalThe name shown to users.
descriptionstring or nullOptionalA short explanation of what the agent does.
currentSystemPromptVersionIdstring or nullOptionalThe current system prompt version.
modelProviderstring or nullOptionalThe configured model provider when no preset is selected.
modelNamestring or nullOptionalThe configured model name when no preset is selected.
presetKeystring or nullOptionalThe configured workspace model preset key.
reasoningLevelstring or nullOptionalThe configured reasoning level.
systemPromptstring or nullOptionalThe current system prompt.
webSearchEnabledbooleanOptionalWhether web search is enabled.
aworkAccessEnabledbooleanOptionalWhether awork access is enabled.
googleGenAiAccessEnabledbooleanOptionalWhether Google image generation is enabled.
openAiImageGenerationAccessEnabledbooleanOptionalWhether OpenAI image generation is enabled.
skillIdsarray of string or nullOptionalThe skills linked to the agent.
hasImagebooleanOptionalWhether the agent has a profile image.
isArchivedbooleanOptionalWhether the agent is archived.
workspaceAccessLevelstring or nullOptionalAllowed: "read" "manage"
The workspace-wide access level.
hasAdminAccessOnlybooleanOptionalWhether the agent is visible only through workspace administration access.
accessLevelstringOptionalAllowed: "read" "manage"
The requesting user's access level.
400 Bad Request
application/json
codestringRequired1 The error code.
descriptionstringRequired1 The description of the error.
linkstringRequired1 The link to the API documentation page.
detailsarray of string or nullOptionalA list of details describing the error.
validationErrorsarray of object or nullOptionalIf a validation error occurred, this contains the validation errors for each property.
Show 2 properties
propertystring or nullOptionalThe name of the property that failed validation.
messagestring or nullOptionalThe reason why this property failed validation.
traceIdstring or nullOptionalThe request trace id for tracking the request.