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

# Duplicate workflow

> Duplicate a user or system workflow into the authenticated user's workspace.



## OpenAPI

````yaml POST /v1/workflows/{id}/duplicate
openapi: 3.1.0
info:
  title: Magica REST API
  version: 1.0.0
  description: >-
    REST API for managing Magica resources. Authenticate public endpoints with
    your Magica API key: Authorization: Bearer gx_xxx.
servers:
  - url: https://api.magica.com/api
security:
  - bearerAuth: []
paths:
  /v1/workflows/{id}/duplicate:
    post:
      tags:
        - Public REST
      summary: POST /api/v1/workflows/{id}/duplicate
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: string
      responses:
        '201':
          description: Created
components:
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT

````