developers / Models
Folder
A folder of images, with its preview, share code, size, and its view, like and comment counts.
This page as MarkdownFields
idintegeruserIdintegercreatedAtdate-timeupdatedAtdate-timecontentType"Image"namestringdescriptionstringvisibilityenumOne of
UnlistedPublicPrivateSharedcolorstringThe folder's colour: # and six hex digits, lowercase.
Matches ^#[0-9a-f]{6}$
previewIdinteger | nulldownloadsintegerprivateLockedAtdate-time | nullofflineAtdate-time | nullpreviewobject | nullThe folder's cover: a collage of its four newest images anyone with its link may see, never one marked NSFW. Null until one is made (POST /folders/:folderId/preview), and when nothing in it can be on it.
keystring
shareIdnumbershareCodestringcontentCountnumberHow many images are in the folder: all of them to its owner; to anyone else, those that are Public or Unlisted and don't hide who uploaded them, the ones they see in it.
sizenumberThe bytes of the images counted in contentCount, as whoever asks sees them.
contentCountForOthersnumberoptionalHow many of the folder's images anyone but you sees in it: those that are Public or Unlisted and don't hide who uploaded them. The rest show only to you. Only on your own folders.
sizeForOthersnumberoptionalThe bytes of the images counted in contentCountForOthers. Only on your own folders.
viewCountnumberlikeCountnumbercommentCountnumber
{
"id": 1,
"userId": 1,
"createdAt": "2026-11-10T18:24:00.000Z",
"updatedAt": "2026-11-10T18:24:00.000Z",
"contentType": "Image",
"name": "Ranked",
"description": "1v4 on the last round",
"visibility": "Unlisted",
"color": "#c4d4e0",
"previewId": 1,
"downloads": 0,
"privateLockedAt": "2026-11-10T18:24:00.000Z",
"offlineAt": "2026-11-10T18:24:00.000Z",
"preview": {
"key": "images/a1b2c3d4e5f6.png"
},
"shareId": 1,
"shareCode": "x7Kp2QmA",
"contentCount": 1,
"size": 2457600,
"contentCountForOthers": 0,
"sizeForOthers": 0,
"viewCount": 0,
"likeCount": 0,
"commentCount": 0
}Returned by
The endpoints whose data holds a Folder as it is, and where.
- post
/foldersCreate a new folderdata - get
/foldersGet a single folder by ID/:folderId data - patch
/foldersEdit a folder/:folderId data - get
/foldersGet the folder an image is in, with the image's share code/by-content data - get
/sharesGet a share by code/by-code data.reference - get
/usersGet a user's folders/:userId /folders data[]
Inside other models
The models with a Folder in a field.