--- title: "Agent.Copy - Web Scraping API - Mozenda" slug: "agentcopy" description: "Use the Agent.Copy operation to copy an agent via the Mozenda API. " updated: 2024-05-14T14:24:12Z published: 2024-05-14T14:24:12Z canonical: "help.mozenda.com/agentcopy" --- > ## Documentation Index > Fetch the complete documentation index at: https://help.mozenda.com/llms.txt > Use this file to discover all available pages before exploring further. # Agent.Copy ### Description When the `DestinationAccountKey` is included, it copies an existing **agent** to a different **account**. When the `DestinationAccountKey` isn't included, then the **agent** will duplicate in the same **account** followed by '-Copy'. To find the `DestinationAccountKey` go to your **Departments** list, Or, Go to Web Console > Click ![](https://cdn.document360.io/03076343-9561-4857-8a4e-9f3bfed20ced/Images/Documentation/user.png) > Click **Account Settings** > **Account Information**. Warning! Avoid running 3 **[Agent.Copy/Agent.Move](https://help.mozenda.com/docs/agentgetmovecopystatus)** processes at once. ### URL parameters URL parameter ordering The **URL parameters** below are listed in the order they should be entered in the API **URL**. | Name | Required | Type | Description | | --- | --- | --- | --- | | `AgentID` | True | numeric | Unique identifier of the copied **agent**. | | `DestinationAccountKey` | False | string | Unique identifier of the new **account** destination for the copied **agent**. | | `AgentGroupID` | False | numeric | Unique identifier of the **agent group**. | | `CopyData` | False | boolean | *Yes, No, True, False*. *Yes/True* to copy the **agent's** data. | | `IncludeAgentRunSchedule` | False | boolean | *Yes, No, True, False*. *Yes/True* to include **agent run schedule**. | | `IncludePublishSettings` | False | boolean | *Yes, No, True, False*. *Yes/True* to include **publish settings**. | | `IncludeAgentNotifications` | False | boolean | *Yes, No, True, False*. *Yes/True* to include **agent notifications**. | | `Name` | False | string | Name of the copied **agent**. | ### Responses | Name | Type | Description | | --- | --- | --- | | `Result` | string | `Success` if the operation was successful. | | `BatchID` | numerical | Unique identifier used to monitor the progress of the `Agent.Copy` Get request. | Note Get the status of the API call of the copied agent in Agent.GetMoveCopyStatus. ### Sample request ``` curl -X GET "https://api.mozenda.com/rest?WebServiceKey=XXXXXXXX -XXXX-XXXX-XXXX-XXXXXXXXXXXX&Service=Mozenda10&Operation=Agent.Copy&AgentID=1044&DestinationAccountKey=XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX" ``` ### Sample responses #### XML ``` Success 32553 ``` #### JSON (add `&ResponseFormat=JSON`) ``` { "BatchID": 32555, "JsonResult": { "Command": "Agent.Copy", "AutoLoggedIn": false, "WebConsoleKey": "", "Result": "Success", "ErrorCode": "", "ErrorDescription": "", "ErrorList": [], "ExecutionTime": { "Ticks": 0, "Days": 0, "Hours": 0, "Milliseconds": 0, "Minutes": 0, "Seconds": 0, "TotalDays": 0, "TotalHours": 0, "TotalMilliseconds": 0, "TotalMinutes": 0, "TotalSeconds": 0 } } } ```