Get avatar upload URL
curl --request POST \
--url https://api.agg.market/users/me/avatar \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'x-app-id: <api-key>' \
--data '{}'{
"uploadUrl": "<string>",
"assetKey": "<string>",
"cdnUrl": "<string>"
}Users
Get avatar upload URL
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.
POST
/
users
/
me
/
avatar
Get avatar upload URL
curl --request POST \
--url https://api.agg.market/users/me/avatar \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'x-app-id: <api-key>' \
--data '{}'{
"uploadUrl": "<string>",
"assetKey": "<string>",
"cdnUrl": "<string>"
}Authorizations
Your application ID. Required for all app-tier and user-tier routes.
JWT access token returned by POST /auth/verify. Required for user-tier routes.
Body
application/json
Available options:
image/jpeg, image/png, image/gif, image/webp ⌘I