base url
https://api.cubby.moeauthentication
Authorization: your_api_key/statsretrieve general server statistics.
/view/album/:album_idview the contents and metadata of an album.
parameters
album_idstringrequiredthe unique identifier of the album.
passwordstringoptionalpassword to unlock the album if it is protected.
/paste/:pasteIdretrieve a paste by its id.
parameters
pasteIdstringrequiredthe unique identifier of the paste.
/folderslist all folders belonging to you.
/fileslist uploaded files. supports pagination and filtering by folder.
parameters
pagenumberoptionalthe page number to retrieve.
folder_idstringoptionalfilter files by a specific folder id.
/pasteslist pastes belonging to you.
parameters
pagenumberoptionalthe page number to retrieve.
/albumslist albums belonging to you.
parameters
pagenumberoptionalthe page number to retrieve.
/file/presignobtain a presigned url to upload a file directly to storage.
parameters
filenamestringrequiredthe name of the file being uploaded.
sizenumberrequiredthe size of the file in bytes.
folder_idstringoptionaloptional folder id to place the file into.
/file/confirmconfirm a file upload after it has been uploaded using a presigned url.
parameters
file_namestringrequiredthe generated storage name of the file.
original_namestringrequiredthe original name of the file.
folder_idstringoptionaloptional folder id to confirm the file into.
/album/:albumId/presignobtain a presigned url to upload a file specifically into an album.
parameters
albumIdstringrequiredthe id of the album.
filenamestringrequiredthe name of the file being uploaded.
sizenumberrequiredthe size of the file in bytes.
ordernumberrequiredthe order index of the file within the album.
/album/:albumId/confirmconfirm a file upload for an album after using the presigned url.
parameters
albumIdstringrequiredthe id of the album.
file_namestringrequiredthe generated storage name of the file.
original_namestringrequiredthe original name of the file.
ordernumberrequiredthe order index of the file within the album.
confirm_tokenstringrequiredtoken required to confirm the album file.
/foldercreate a new folder.
parameters
namestringrequiredthe name of the new folder.
parent_folderstringoptionalid of the parent folder, if nesting.
/pastecreate a new text paste.
parameters
contentfilerequiredthe text content of the paste.
captcha_tokenstringoptionaloptional captcha token for unauthenticated pastes.
/albumcreate a new empty album.
parameters
file_countnumberrequiredthe total number of files that will be uploaded to this album.
passwordstringoptionaloptional password to protect the album.
album_namestringoptionaloptional name for the album.
/file/:namedelete a file from your account.
parameters
namestringrequiredthe generated storage name of the file to delete.
/album/:albumIddelete an album and all its associated files.
parameters
albumIdstringrequiredthe id of the album to delete.
/paste/:pasteIddelete a paste.
parameters
pasteIdstringrequiredthe id of the paste to delete.
/folder/:folder_idupdate the name or parent of a folder.
parameters
folder_idstringrequiredthe id of the folder to modify.
namestringoptionalthe new name for the folder.
parent_folderstringoptionalthe new parent folder id.
/file/:file_idmove a file to a different folder.
parameters
file_idstringrequiredthe id of the file to update.
folder_idstringoptionalthe id of the folder to move the file to.
/album/:album_idupdate the name or expected file count of an album.
parameters
album_idstringrequiredthe id of the album to update.
album_namestringoptionalthe new name for the album.
file_countnumberoptionalthe new expected total file count.