cURL
curl --request POST \ --url https://api.example.com/users/me/avatar \ --header 'Content-Type: application/json' \ --data ' { "contentType": "image/jpeg" } '
{ "uploadUrl": "<string>", "assetKey": "<string>", "cdnUrl": "<string>" }
Returns a presigned S3 URL for the user to upload their avatar. Allowed types: JPEG, PNG, GIF, WebP. Max size: 5 MB. After upload, the image is automatically processed to WebP and served via CDN.
Body
image/jpeg
image/png
image/gif
image/webp
200