Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.openinary.dev/llms.txt

Use this file to discover all available pages before exploring further.

Endpoint

POST /upload/createfolder
Auth: API Key required
Content-Type: multipart/form-data

Form fields

folder
string
required
Path of the folder to create. Nested paths are supported.photos · uploads/2024/january · products/thumbnails

Response

201 — Folder created
{
  "success": true,
  "folder": "uploads/2024"
}
400 — Invalid folder path 409 — Folder already exists
{
  "success": false,
  "folder": "uploads/2024",
  "error": "Folder already exists"
}

Example

curl -X POST http://localhost:3000/upload/createfolder \
  -H "Authorization: Bearer <api_key>" \
  -F "folder=products/2024"

Upload Files

Upload files into a folder.

List Storage

Browse the folder tree.