v4

latestOpenAPI 3.1.02026-07-313621,3961.8 MB
Agents Platform

Duplicate Agent

Create a new agent by duplicating an existing one

post/v1/convai/agents/{agent_id}/duplicate

Path parameters

agent_idstring required

The id of an agent. This is returned on agent creation.

Example:agent_3701k3ttaq12ewp8b7qv5rfyszkz

The id of an agent. This is returned on agent creation.

Headers

xi-api-keystring nullable

Your API key. This is required by most endpoints to access our API programmatically. You can view your xi-api-key using the 'Profile' tab on the website.

Your API key. This is required by most endpoints to access our API programmatically. You can view your xi-api-key using the 'Profile' tab on the website.

Request body

namestring nullable

A name to make the agent easier to find

Example request

{
  "name": "My agent"
}

Response

Successful Response

agent_idstring required

ID of the created agent

Example response

{
  "agent_id": "J3Pbu5gP6NNKBscdCdwB"
}