Skip to main content
POST
/
api
/
v1
/
auth
/
avatar
Upload Avatar
curl --request POST \
  --url https://api.example.com/api/v1/auth/avatar \
  --header 'Content-Type: application/json' \
  --data '{}'

Upload Avatar

Upload a new profile avatar image. Accepts multipart/form-data with an image file.

Authentication

Requires a valid user JWT token.

Request

Content-Type: multipart/form-data
file
file
required
The image file to upload.

Example

curl -X POST https://api.ama2.me/api/v1/auth/avatar \
  -H "Authorization: Bearer YOUR_JWT_TOKEN" \
  -F "file=@avatar.png"