AGG is currently in alpha. APIs, components, and docs may change.
Agg.market — Prediction Market Aggregator logo

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.

POSThttps://api.agg.market/users/me/avatar

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.

Loading code example
Loading code example

Authorizations

appIdstringheaderrequired

API key passed in the header.

Body

contentType"image/jpeg" | "image/png" | "image/gif" | "image/webp"required
Allowed values: "image/jpeg" | "image/png" | "image/gif" | "image/webp"

Response

application/json

200

uploadUrlstringrequired
assetKeystringrequired
cdnUrlstringrequired