> ## Documentation Index
> Fetch the complete documentation index at: https://docs.getoutbox.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Duplicate Agent

> Duplicate an existing agent to a specified company (can be the same or different company)



## OpenAPI

````yaml POST /agent/duplicate/{agent_id}
openapi: 3.1.0
info:
  title: Outbox AI API
  description: API for managing AI agents (chatbots and voicebots) on the Outbox platform
  version: 1.0.0
servers:
  - url: https://api.getoutbox.ai
security: []
paths:
  /agent/duplicate/{agent_id}:
    post:
      summary: Duplicate Agent
      description: >-
        Duplicate an existing agent to a specified company (can be the same or
        different company)
      parameters:
        - name: agent_id
          in: path
          description: The ID of the agent to duplicate
          required: true
          schema:
            type: string
      requestBody:
        description: Duplication details
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/AgentDuplicate'
      responses:
        '200':
          description: Agent duplicated successfully
          content:
            application/json:
              schema:
                type: string
                description: The ID of the newly duplicated agent
        '401':
          description: Unauthorized - Invalid or missing API key
        '403':
          description: >-
            Forbidden - Insufficient permissions (requires level 3 on both
            source and destination companies)
        '404':
          description: Agent not found
      security:
        - CompanyApiKey: []
components:
  schemas:
    AgentDuplicate:
      type: object
      required:
        - name
        - company_id
      properties:
        name:
          type: string
          description: Name for the duplicated agent
        company_id:
          type: string
          description: ID of the company where the agent should be duplicated
  securitySchemes:
    CompanyApiKey:
      type: apiKey
      in: header
      name: Authorization
      description: Company API Key

````