Skip to main content
POST
/
imagehost
/
folders
Create Folder
curl --request POST \
  --url 'https://haunt.gg/api/imagehost/folders?key=' \
  --header 'Content-Type: application/json' \
  --data '
{
  "folderName": "<string>",
  "folderPublic": true,
  "folderPasswordEnabled": true,
  "folderPassword": "<string>"
}
'
{
  "folder": {
    "id": "<string>",
    "folderName": "<string>",
    "folderPublic": true,
    "folderPasswordEnabled": true,
    "createdAt": 123,
    "updatedAt": 123,
    "fileCount": 123,
    "totalSize": 123
  }
}

Authorizations

key
string
query
required

Your Account API key (found in your dashboard)

Body

application/json
folderName
string
required

Folder name (must be unique per user)

Required string length: 1 - 32
folderPublic
boolean

Whether the folder is publicly accessible (defaults to false)

folderPasswordEnabled
boolean

Whether the folder requires a password (only for public folders)

folderPassword
string

Folder password (required if folderPasswordEnabled is true)

Maximum string length: 32

Response

Folder created successfully

folder
object