Skip to main content
POST
/
v1
/
profile
/
avatar
Upload profile avatar
curl --request POST \
  --url https://api.example.com/v1/profile/avatar \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: multipart/form-data' \
  --form file='@example-file'
{
  "url": "https://example.com/avatars/123.jpg",
  "thumbnail_url": "https://example.com/avatars/123_thumb.jpg"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

multipart/form-data
file
file

Avatar image file

Response

Avatar uploaded successfully

url
string<uri>

Full size avatar URL

thumbnail_url
string<uri>

Thumbnail avatar URL