upload.fluid.app, one for each kind of token:
Neither route takes a company, member, or folder in the request. The owner always comes from the token, so a file can only land in the token’s own company or member storage.
Before you start
- Use this host, not
api.fluid.app. The upload service runs onupload.fluid.app. - Keep company and partner tokens on your server. Never send either to a browser. A member route call can come from the member’s own app or browser session, since it carries only that member’s token.
- “Private” means out of the DAM, not access-controlled. Each file gets a random, unguessable name, but anyone who has the URL can open it. Don’t use private uploads for documents that need signed or expiring links.
Send the file
Both routes take the same body. Send the file asmultipart/form-data:
Or, if you already have the bytes in memory, send
application/json with the file base64-encoded:
The stored name is always a random prefix plus a cleaned-up version of
fileName, so two uploads of headshot.jpg never collide.
Set a member’s profile picture
A member uploads their photo with their own token:upload_id:
upload_id as avatar_upload_id to update the signed-in member:
upload_id works once, and must be used within an hour of expires_at.
The member route accepts images, videos, PDFs, and presentations. Images can be up to 10 MB, videos 100 MB, and documents 25 MB.
Add a photo to a contact
Your server uploads the photo with a company token:url on the record it belongs to. Nothing else refers to the file, so if you don’t store the URL, the file is orphaned.
The company route refuses SVG, HTML, XML, JavaScript, and executable files. Images can be up to 10 MB, videos 100 MB, audio 50 MB, and documents and other files 25 MB.
Errors
Errors return{ "error": "..." }. When Fluid or the storage service refused the request, the body also carries their response under details.
Any other
4xx from Fluid is passed back with its own status.
Related
- Upload a file to the DAM — for files that belong in the company library.
- Member APIs — member tokens and the signed-in member.
- Authentication — company and partner tokens.