Two Minute Reports Logo
Users

Upload avatar

Upload a new profile picture for the authenticated user.
PUT /users/me/avatar

Uploads a new profile picture and returns the updated profile. The request is multipart/form-data with a single file field.

Authentication: Bearer token · Permission:account:write · Rate limit: 10 / 5 min

Request body

multipart/form-data

file
file required
The image to upload. Must be an image type (image/*) and at most 5 MB.

Request

curl -X PUT https://api.twominutereports.com/v1/users/me/avatar \
  -H "Authorization: Bearer tmrc_live_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx" \
  -F "file=@/path/to/avatar.png"

Response

Returns the updated user object with the new avatarUrl.

{
  "success": true,
  "data": {
    "id": "0190f8a1-2b3c-7d4e-8f90-1a2b3c4d5e6f",
    "name": "Ada Lovelace",
    "email": "[email protected]",
    "avatarUrl": "https://assets.gox.ai/tmr/avatars/0190f8a1.png",
    "preferences": {
      "appearance": "light",
      "notifications": {
        "email": { "billing": true, "productUpdates": true, "promotional": false }
      }
    },
    "createdAt": "2026-01-12T08:15:00.000Z"
  }
}
Copyright © 2026