---
title: "Copy file"
method: POST
path: "/v1/files/copy"
tags: ["Digital Asset Management (DAM)", "Managing assets"]
---

# Copy file

`POST /v1/files/copy`

This will copy a file from one folder to another. 

Note: If any file at the destination has the same name as the source file, then the source file and its versions (if `includeFileVersions` is set to true) will be appended to the destination file version history.

## Request body

- object
  - `sourceFilePath` string, required — The full path of the file you want to copy.
  - `destinationPath` string, required — Full path to the folder you want to copy the above file into.
  - `includeFileVersions` boolean — Option to copy all versions of a file. By default, only the current version of the file is copied. When set to true, all versions of the file will be copied. Default value - `false`.

## Response `204`

File copied successfully.

- object

## Other responses

- `400` — Bad request.
- `401` — Unauthorized request.
- `403` — Forbidden.
- `404` — File not found.
- `429` — The request exceeded the rate limit. Contains headers indicating the limits and a message detailing the error.

---

[API](https://skmtc.dev/imagekit-developer/apis/imagekit-api.md) · [All operations](https://skmtc.dev/imagekit-developer/apis/imagekit-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/imagekit-developer/imagekit-api/revisions/bb3e9ff84b3e/schema)
