ConfirmUpload confirms file upload completion.
POST/api/v1/uploads/widget/upload-complete
Called after widget successfully uploads file to storage. Triggers post-processing (thumbnails, metadata extraction).
Parameters
- file_id: Required, ID from GetUploadURLResponse
- engagement_id: Optional, link file to engagement
- message_id: Optional, link file to message
Response
- file: File details with status
- download_url: Pre-signed download URL
- thumbnail_url: Thumbnail URL (for images)
Errors
- NOT_FOUND: File ID not found or upload expired
- FAILED_PRECONDITION: File not actually uploaded
- UNAUTHENTICATED: Invalid or expired session token
Request
Responses
- 200
- default
A successful response.
An unexpected error response.