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

# Clone a campaign

> Clone a campaign with a new identity, preserving workflow, messages, tasks, tags, and folder.

Responses include direct Enginy app URLs when available. Responses include an `appUrl` that opens the cloned campaign in Enginy. MCP agents should return those URLs to users whenever they are present in the response.

    > **Required scope:** `CAMPAIGNS_WRITE`
    >
    > **Rate limit:** 30 requests per minute



## OpenAPI

````yaml https://openapi.enginy.ai/definitions.json post /v1/campaign/{campaignId}/clone
openapi: 3.1.0
info:
  title: Enginy API
  version: 1.0.0
  description: Public API for Enginy platform
servers:
  - url: https://openapi.enginy.ai
    description: Configured server
security: []
tags:
  - name: AI Variables
    description: >-
      Manage AI variables and discover the entity fields you can reference in
      prompts and entity requests.
  - name: Inbox
    description: >-
      Inbox endpoints for listing contact threads, reading thread messages,
      managing tags, and sending manual replies.
  - name: Workflows
    description: >-
      Build, validate, publish, run, and inspect advanced (graph) workflows,
      plus the block/condition catalog needed to author a workflow plan.
paths:
  /v1/campaign/{campaignId}/clone:
    post:
      tags:
        - Campaigns
      summary: Clone a campaign
      description: >-
        Clone a campaign with a new identity, preserving workflow, messages,
        tasks, tags, and folder.


        Responses include direct Enginy app URLs when available. Responses
        include an `appUrl` that opens the cloned campaign in Enginy. MCP agents
        should return those URLs to users whenever they are present in the
        response.

            > **Required scope:** `CAMPAIGNS_WRITE`
            >
            > **Rate limit:** 30 requests per minute
      parameters:
        - schema:
            type: string
            description: The campaign ID to clone
          required: true
          description: The campaign ID to clone
          name: campaignId
          in: path
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                identityId:
                  type: integer
                  exclusiveMinimum: 0
                  description: Identity ID for the cloned campaign
                name:
                  type: string
                  maxLength: 255
                  description: Optional name. Defaults to "Copy of {original}"
              required:
                - identityId
      responses:
        '201':
          description: Campaign cloned successfully
          content:
            application/json:
              schema:
                type: object
                properties:
                  status:
                    type: string
                    enum:
                      - success
                  message:
                    type: string
                  data:
                    type: object
                    properties:
                      id:
                        type: number
                        description: ID of the new campaign
                      appUrl:
                        type: string
                        format: uri
                        description: Direct Enginy app URL for opening the cloned campaign.
                      name:
                        type: string
                        description: Name of the new campaign
                      status:
                        type: string
                        description: Status of the new campaign (DRAFT)
                    required:
                      - id
                      - appUrl
                      - name
                      - status
                required:
                  - status
                  - message
                  - data
        '400':
          description: Bad request - validation error
        '404':
          description: Campaign or identity not found
      security:
        - apiKey: []
components:
  securitySchemes:
    apiKey:
      type: apiKey
      in: header
      name: x-api-key

````