/agents

Copy an existing agent with all its configurations and datastore associations. The copied agent will have "[COPY]" appended to its name.

post/agents/{agent_id}/copy

Request

  • Base URL
    https://api.contextual.ai/v1
  • URL
    https://api.contextual.ai/v1/agents/{agent_id}/copy
  • Auth
    HTTP bearer

Path parameters

agent_idstring uuid required

ID of the agent to copy

Response

Successful Response

idstring uuid required

ID of the agent

datastore_idsstring[] 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.

Changes