Skip to main content
POST
Duplicate Agent

Headers

x-api-key
string | null

Your API key for programmatic access. Send it in the x-api-key header; you can create and manage keys from the Developers page.

Path Parameters

agent_id
string
required

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

Example:

"agent_3701k3ttaq12ewp8b7qv5rfyszkz"

Body

application/json
name
string | null

A name to make the agent easier to find

Example:

"My agent"

Response

Successful Response

agent_id
string
required

ID of the created agent

main_branch_id
string
required

ID of the main branch created for the agent

initial_version_id
string
required

ID of the initial committed version