Size and Attachment Limits
Branch File Uploads
Upload a File
POST /api/cdn/benches/upload — multipart form data
You must be a member of the specified Branch.
filename value in the cdn array when you call POST /api/bm/create:
Retrieve a Branch File
GET /cdn/benches/<branch_id>/<filename>
Only members of the Branch can access its CDN files. The server returns
403 if you are not a member.Attach a GIF to a Branch Message
Instead of uploading a GIF file manually, use the dedicated GIF proxy endpoint. It fetches the GIF from Giphy’s CDN and stores it on Clody’s servers.Search for a GIF
POST /api/gifs/search
string
Search query. Omit or leave empty to get trending GIFs.
Save the GIF to a Branch
POST /api/cdn/benches/gif
number
required
The Branch ID where you will attach the GIF.
string
required
The full Giphy URL returned by
/api/gifs/search. Only giphy.com URLs are accepted.cdn array of your POST /api/bm/create call just like any other file.
Picnic File Uploads
Admins can upload files to attach to Picnic posts.Upload a File
POST /api/cdn/picnics/upload — multipart form data, admin required
cdn array of POST /api/pm/create.
Retrieve a Picnic File
GET /cdn/picnics/<picnic_id>/<filename>
Avatar Uploads
Update Your User Avatar
POST /api/cdn/avatars/upload — multipart form data
Uploading a new avatar immediately replaces your current one. No separate update call is needed.
Update a Picnic’s Avatar
POST /api/cdn/picnics/avatars/upload — multipart form data, owner required, max 5 MB
update_picnic Socket.IO event with the refreshed Picnic object.
Retrieve an Avatar
GET /cdn/avatar/<filename>
cdn/avatars directory).