> ## Documentation Index
> Fetch the complete documentation index at: https://kaneo.app/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Upload avatar

> Store a base64 encoded avatar (PNG, JPEG, or WebP, up to 512KB) for the current user and return its public URL. Replaces any existing avatar.



## OpenAPI

````yaml /openapi.json put /user/avatar
openapi: 3.1.0
info:
  title: Kaneo API
  version: 1.0.0
  description: Kaneo Project Management API - Manage projects, tasks, labels, and more
servers:
  - url: https://cloud.kaneo.app/api
    description: Kaneo API Server
security:
  - bearerAuth: []
paths:
  /user/avatar:
    put:
      tags:
        - User
      summary: Upload avatar
      description: >-
        Store a base64 encoded avatar (PNG, JPEG, or WebP, up to 512KB) for the
        current user and return its public URL. Replaces any existing avatar.
      operationId: uploadUserAvatar
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                contentType:
                  type: string
                  description: One of image/png, image/jpeg, or image/webp.
                  example: image/png
                data:
                  type: string
                  description: Base64 encoded image bytes.
              required:
                - contentType
                - data
      responses:
        '200':
          description: Avatar stored
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/UserAvatar'
        '400':
          description: Unsupported content type, malformed base64, or too large
          content:
            text/plain:
              schema:
                type: string
        '401':
          description: Missing or invalid credentials
components:
  schemas:
    UserAvatar:
      type: object
      properties:
        id:
          type: string
        url:
          type: string
          description: Public URL for the stored avatar, served from /api/user/avatar/{id}.
        size:
          type: number
          description: Decoded size in bytes.
      required:
        - id
        - url
        - size
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: API key or session token (Bearer)

````