ImageKit icon

ImageKit

Interact with the ImageKit API

File → Copy

AI-generated

Summary

Copy a file within ImageKit from a specified source file path to a destination folder path, optionally including all versions of the file.

Inputs

  • Source File Path (required) — The full path of the file to copy (e.g. /path/to/file.jpg).
  • Destination Path (required) — The folder path where the file should be copied to.
  • Include File Versions — Boolean to specify whether to copy all versions of the file (default is false).

Output shape

a single JSON object representing the copied file and its properties

The operation returns details of the copied file as a JSON object. Errors during copy are reported as node errors. The copying is performed via the ImageKit API endpoint '/v1/files/copy' using a POST request.

Links

Discussion