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

# Upload a profile avatar image

> Multipart upload (png/jpeg/webp, max 2 MiB). Stores the file and sets User.image to the public URL via Better Auth.



## OpenAPI

````yaml /openapi.json post /v1/auth/me/avatar
openapi: 3.0.0
info:
  title: OneSubnet Core API
  description: >-
    OneSubnet hosting panel API. Toutes les routes sont préfixées par /v1/
    (versioning URI). Les routes Panel sont appelées par le daemon Wings, pas
    par les clients. Les routes Admin nécessitent le rôle admin.
  version: '1.0'
  contact: {}
servers: []
security: []
tags:
  - name: Auth & Users
    description: Authentification, profil, gestion utilisateurs
  - name: Store
    description: 'Boutique: catégories, produits, panier'
  - name: Billing
    description: Facturation, checkout Stripe, webhooks
  - name: Services
    description: Services hébergés (enregistrements facturation)
  - name: Affiliation
    description: Parrainage et commissions
  - name: Notifications
    description: Notifications
  - name: Admin - RBAC
    description: Gestion des rôles, permissions, groupes
  - name: Admin - Store & Invoices
    description: CRUD produits, plans, coupons, factures
  - name: Admin - Settings & Tenants
    description: Configuration, multi-tenant, whitelabel
  - name: Admin - Audit
    description: Journal d'audit des requêtes
  - name: System
    description: Health, meta-info
paths:
  /v1/auth/me/avatar:
    post:
      tags:
        - Auth & Users
      summary: Upload a profile avatar image
      description: >-
        Multipart upload (png/jpeg/webp, max 2 MiB). Stores the file and sets
        User.image to the public URL via Better Auth.
      operationId: AuthProfileController_uploadAvatar_v1
      parameters: []
      responses:
        '201':
          description: ''
      security:
        - bearer: []
components:
  securitySchemes:
    bearer:
      scheme: bearer
      bearerFormat: JWT
      type: http

````

## Related topics

- [Remove the profile avatar image](/api-reference/auth-&-users/remove-the-profile-avatar-image.md)
- [Update the authenticated user profile](/api-reference/auth-&-users/update-the-authenticated-user-profile.md)
- [Upload the company logo (admin)](/api-reference/admin--settings-&-tenants/upload-the-company-logo-admin.md)
- [Upload the dark-mode logo (data URL in settings)](/api-reference/admin--settings-&-tenants/upload-the-dark-mode-logo-data-url-in-settings.md)
- [Get the authenticated user profile](/api-reference/auth-&-users/get-the-authenticated-user-profile.md)
