Widget
Get avatar upload URL
Changed onGenerates a pre-signed S3 upload URL for the agent's widget avatar image. Upload the image directly to S3 using the returned presignedUrl, then save cdnUrl as the agent's avatar via PATCH /agent/{id}/widget-config.
post/agent/{id}/avatar/presigned-url
Request
- Base URLhttps://api.smallest.ai/atoms/v1
- URLhttps://api.smallest.ai/atoms/v1/agent/{id}/avatar/presigned-url
- AuthHTTP bearer
Path parameters
idstring required
Agent ObjectId
Request body
Response
Pre-signed upload URL and CDN URL
Example response
{
"success": true
}Changes
- info
api tag
Widgetadded - info
api tag
Agentsremoved - info
endpoint deprecated
- info
- info
endpoint added
- info