Skip to main content
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 '
{
  "contentType": "image/jpeg"
}
'
{
  "uploadUrl": "<string>",
  "assetKey": "<string>",
  "cdnUrl": "<string>"
}

Documentation Index

Fetch the complete documentation index at: https://docs.agg.market/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

x-app-id
string
header
required

Your application ID. Required for all app-tier and user-tier routes.

Authorization
string
header
required

JWT access token returned by POST /auth/verify. Required for user-tier routes.

Body

application/json
contentType
enum<string>
required
Available options:
image/jpeg,
image/png,
image/gif,
image/webp

Response

200

uploadUrl
string
required
assetKey
string
required
cdnUrl
string
required