Skip to main content
POST
/
agents
/
{agent_id}
/
copy
Copy Agent
curl --request POST \
  --url https://api.contextual.ai/v1/agents/{agent_id}/copy \
  --header 'Authorization: Bearer <token>'
{
  "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "datastore_ids": [
    "3c90c3cc-0d44-4b50-8888-8dd25736052a"
  ]
}

Authorizations

Authorization
string
header
required

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

Path Parameters

agent_id
string<uuid>
required

ID of the agent to copy

Response

Successful Response

Response to POST /agents request

id
string<uuid>
required

ID of the agent

datastore_ids
string<uuid>[]
required

IDs of the datastores associated with the agent. If no datastore was provided as part of the request, this is a singleton list containing the ID of the automatically created datastore.

I