your_private_api_key:
Note the colon in the end._
/
else containing/folder/
Note: If any folder(s) is not present in the parentFolderPath
parameter, it will be automatically created. For example, if you pass /product/images/summer
, then product
, images
, and summer
folders will be created if they don't already exist.​
On success, you will receive a 201
status code with an empty body.
Here is the example request to understand the API usage.
curl -X POST "https://api.imagekit.io/v1/folder/" \-H 'Content-Type: application/json' \-u your_private_key: -d '{"folderName" : "new_folder","parentFolderPath" : "source/folder/path"}'