All Folders API requests require your API key in the
X-API-Key header.List all folders
GET /api/upload/folders
Returns a list of all folders in your account, including their IDs and names.
Create a folder
POST /api/upload/folders
Creates a new folder with the name you provide. The response includes the new folder’s id, which you’ll use when listing its contents, renaming it, or deleting it.
Request body
string
required
The display name for the new folder (e.g.
Campaign Q1).List files in a folder
GET /api/upload/folders/{folderId}/files
Returns all files stored inside a specific folder.
string
required
The unique identifier of the folder whose files you want to list.
Rename a folder
PATCH /api/upload/folders/{folderId}
Updates the display name of an existing folder. Only the name field is updated — the folder’s contents and ID remain unchanged.
string
required
The unique identifier of the folder to rename.
string
required
The new display name for the folder.
Delete a folder
DELETE /api/upload/folders/{folderId}
Deletes a folder from your account.
string
required
The unique identifier of the folder to delete.
