v5
latestOpenAPI 3.1.02026-08-043621,4011.8 MBAgents 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
Example request
{
"name": "My agent"
}Response
Successful Response
Example response
{
"agent_id": "J3Pbu5gP6NNKBscdCdwB"
}