livechat
livechat
Upload Visitor File
Upload a file attachment from the widget visitor.
Security:
- Validates MIME type against widget's allowed list
- Verifies file content matches claimed MIME (magic bytes)
- Blocks executable files
- Enforces size limits
The uploaded file is stored with the widget owner's user_id, ensuring the ThreadView can display it via the existing attachment enrichment.
post/api/livechat/public/{widget_key}/files
Request
- Base URL: https://api.dialogbrain.com (the document declares no server; this is the origin it was published from)
- URL: https://api.dialogbrain.com/api/livechat/public/{widget_key}/files
- Auth: none declared
Path parameters
widget_keystring required
Headers
X-Session-Tokenstring nullable
Response
Successful Response
Changes
No recorded changes to this operation across all 5 revisions of this API.