ImageKit.io Docs
Pricing
Service status
Dashboard
We are hiring 🤓
Search…
What is ImageKit.io?
📌Getting Started
Getting started
How to use ImageKit.io?
🔧External storage
Integration overview
How it works?
Configure origin
URL-endpoints
ImageKit.io storage
Media Library
Limits and troubleshooting
Limits
Error troubleshooting
Testing and Infrastructure Setup
Testing on multiple environments
Using on multiple websites
Using with your CDN
Using with a custom domain name
✨Features
Image Transformations
Image Optimization
Video Transformation (Beta release)
Video Optimization (Beta release)
Named Transformations
Network-based image optimization
Client hints
Caches
Cache purging
Security
SEO-friendly image URL
Default Images
Progressive JPEGs
Non-image file compression
Performance monitoring
User access management
Multi factor authentication
Billing alerts
Single sign-on
URL-rewriters
Platform guides
Magento
WordPress
Shopify
Sample projects
Upload widget
Media library widget
📙API Reference
API Introduction
Upload file API
Media API
List and search files
Get file details
Get file version details
Get file versions
Update file details
Add tags (bulk)
Remove tags (bulk)
Remove AITags (bulk)
Delete file
Delete file version
Delete files (bulk)
Copy file
Move file
Rename file
Restore file version
Create folder
Delete folder
Copy folder
Move folder
Bulk job status
Purge cache
Purge cache status
Metadata API
Custom metadata fields API
EXTENSIONS
Extensions reference
Powered By
GitBook
Create folder
post
https://api.imagekit.io
/v1/folder/
Create folder API
Response structure and status code
On success, you will receive a
201
status code with an empty body.
Examples
Here is the example request to understand the API usage.
cURL
Ruby
1
curl
-X POST
"https://api.imagekit.io/v1/folder/"
\
2
-H
'Content-Type: application/json'
\
3
-u your_private_key: -d
'
4
{
5
"folderName" : "new_folder",
6
"parentFolderPath" : "source/folder/path"
7
}
8
'
Copied!
1
imagekitio
=
ImageKitIo
::
Client
.
new
(
"your_private_key"
,
"your_public_key"
,
"your_url_endpoint"
)
2
imagekitio
.
create_folder
(
folder_name
:
'new_folder'
,
parent_folder_path
:
'source/folder/path'
)
Copied!
Previous
Restore file version
Next
Delete folder
Last modified
5mo ago
Copy link
Contents
post
Create folder API
Response structure and status code
Examples