---
updatedAt: 2026-05-27T02:00:07.000Z
agentTools:
  projectIndex: https://developers.twin24.ai/llms.txt
---

# Make bot copy

Use this endpoint to make a copy of bot.

# OpenAPI definition

```json
{
  "openapi": "3.0.0",
  "info": {
    "title": "Bot API",
    "description": "Bot Backend API",
    "version": "1",
    "license": {
      "name": "Apache 2.0",
      "url": "http://www.apache.org/licenses/LICENSE-2.0.html"
    }
  },
  "servers": [
    {
      "url": "bot.twin24.ai/api/v1"
    },
    {
      "url": "/botbot.twin24.ai/api/v1"
    }
  ],
  "tags": [
    {
      "name": "Bots"
    }
  ],
  "paths": {
    "/bots/{botId}/copy": {
      "post": {
        "tags": [
          "Bots"
        ],
        "summary": "Make bot copy",
        "description": "Use this endpoint to make a copy of bot.",
        "operationId": "copyBot",
        "security": [
          {
            "BearerAuth": []
          }
        ],
        "parameters": [
          {
            "in": "path",
            "name": "botId",
            "description": "Bot identifier.",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/UUID"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CopyBot"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Successful operation",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EntityIdentifier"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "500": {
            "$ref": "#/components/responses/InternalServerError"
          }
        }
      }
    }
  },
  "components": {
    "securitySchemes": {
      "BearerAuth": {
        "type": "http",
        "scheme": "bearer",
        "bearerFormat": "JWT"
      }
    },
    "schemas": {
      "UUID": {
        "description": "version 4",
        "type": "string",
        "pattern": "^[a-z0-9]{8}-[a-z0-9]{4}-[a-z0-9]{4}-[a-z0-9]{4}-[a-z0-9]{12}$",
        "example": "bce7d22e-dde6-4427-b391-ebbdfda44de6"
      },
      "EntityIdentifier": {
        "type": "object",
        "required": [
          "id"
        ],
        "properties": {
          "id": {
            "$ref": "#/components/schemas/UUID"
          }
        }
      },
      "CopyBot": {
        "type": "object",
        "properties": {
          "companyId": {
            "type": "integer"
          },
          "skipReference": {
            "type": "boolean"
          },
          "botInfoMap": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/CopyBotInfo"
            }
          },
          "newBotId": {
            "type": "string"
          },
          "orderId": {
            "type": "string"
          }
        },
        "required": [
          "companyId"
        ]
      },
      "CopyBotInfo": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string"
          },
          "viewDetails": {
            "type": "object",
            "properties": {
              "nodes": {
                "type": "array",
                "items": {
                  "properties": {
                    "x": {
                      "type": "number"
                    },
                    "y": {
                      "type": "number"
                    },
                    "label": {
                      "type": "string"
                    }
                  }
                }
              },
              "stickers": {
                "type": "array",
                "items": {
                  "properties": {
                    "x": {
                      "type": "number"
                    },
                    "y": {
                      "type": "number"
                    },
                    "label": {
                      "type": "string"
                    }
                  }
                }
              },
              "recordsName": {
                "type": "object",
                "additionalProperties": {
                  "type": "string"
                }
              },
              "generatedLabel": {
                "type": "object",
                "properties": {
                  "links": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "additionalProperties": {
                        "type": "string"
                      }
                    }
                  }
                }
              }
            }
          },
          "agents": {
            "type": "object",
            "example": {
              "agentId1": "null,",
              "agentId2": "agentId3"
            }
          },
          "newNluVersion": {
            "type": "integer"
          },
          "references": {
            "type": "array",
            "items": {
              "type": "string"
            }
          }
        }
      },
      "ErrorResponse": {
        "type": "object",
        "properties": {
          "timestamp": {
            "description": "The current time.",
            "type": "integer",
            "example": 1544098870
          },
          "type": {
            "description": "The exception class.",
            "type": "string",
            "example": "MyNamespace\\MyClass"
          },
          "error": {
            "description": "The error message.",
            "type": "string"
          },
          "details": {
            "description": "Additional error information.",
            "type": "object",
            "nullable": true
          },
          "file": {
            "description": "It's available only in dev mode.",
            "type": "string"
          },
          "line": {
            "description": "It's available only in dev mode.",
            "type": "integer",
            "example": 12
          },
          "trace": {
            "description": "It's available only in dev mode.",
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "server": {
            "description": "It's available only in dev mode.",
            "type": "object",
            "additionalProperties": {
              "type": "string"
            }
          },
          "env": {
            "description": "It's available only in dev mode.",
            "type": "object",
            "additionalProperties": {
              "type": "string"
            }
          }
        },
        "required": [
          "timestamp",
          "type",
          "error",
          "details"
        ]
      }
    },
    "responses": {
      "BadRequest": {
        "description": "Invalid input parameters"
      },
      "Unauthorized": {
        "description": "User is not authenticated"
      },
      "Forbidden": {
        "description": "Invalid user permissions"
      },
      "InternalServerError": {
        "description": "Unexpected error",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/ErrorResponse"
            }
          }
        }
      }
    }
  }
}
```