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

# Upload profile avatar

> Upload a new profile avatar image



## OpenAPI

````yaml post /v1/profile/avatar
openapi: 3.0.0
info:
  title: Profile API
  version: 1.0.0
  description: API for managing user profiles and profile trays
servers: []
security:
  - bearerAuth: []
tags:
  - name: Profile
    description: Profile management operations
paths:
  /v1/profile/avatar:
    post:
      tags:
        - Profile
      summary: Upload profile avatar
      description: Upload a new profile avatar image
      requestBody:
        required: true
        content:
          multipart/form-data:
            schema:
              type: object
              properties:
                file:
                  type: string
                  format: binary
                  description: Avatar image file
      responses:
        '200':
          description: Avatar uploaded successfully
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AvatarResponse'
              example:
                url: https://example.com/avatars/123.jpg
                thumbnail_url: https://example.com/avatars/123_thumb.jpg
        '400':
          description: Invalid file format
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              example:
                code: profile.invalid_file_type
                message: 'Invalid file type. Supported types: jpg, png'
components:
  schemas:
    AvatarResponse:
      type: object
      properties:
        url:
          type: string
          format: uri
          description: Full size avatar URL
        thumbnail_url:
          type: string
          format: uri
          description: Thumbnail avatar URL
    Error:
      type: object
      required:
        - code
        - message
      properties:
        code:
          type: string
          description: Error code
          example: profile.invalid_file_type
        message:
          type: string
          description: Error message
        details:
          type: object
          additionalProperties: true
          description: Additional error details
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT

````