Skip to content
Dashboard

developers / Models

Folder

A folder of images, with its preview, share code, size, and its view, like and comment counts.

This page as Markdown

Fields

  • idinteger
  • userIdinteger
  • createdAtdate-time
  • updatedAtdate-time
  • contentType"Image"
  • namestring
  • descriptionstring
  • visibilityenum

    One ofUnlistedPublicPrivateShared

  • colorstring

    The folder's colour: # and six hex digits, lowercase.

    Matches ^#[0-9a-f]{6}$

  • previewIdinteger | null
  • downloadsinteger
  • privateLockedAtdate-time | null
  • offlineAtdate-time | null
  • previewobject | null

    The 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.

  • shareIdnumber
  • shareCodestring
  • contentCountnumber

    How 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.

  • sizenumber

    The bytes of the images counted in contentCount, as whoever asks sees them.

  • contentCountForOthersnumberoptional

    How 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.

  • sizeForOthersnumberoptional

    The bytes of the images counted in contentCountForOthers. Only on your own folders.

  • viewCountnumber
  • likeCountnumber
  • commentCountnumber
Example
{
  "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
}