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

# Upload an avatar

> Uploads an image as the user's avatar. The accepted MIME types are enumerated on the request body schema. Subject to the standard blob size cap and the tenant's `blobs` and `storage_bytes` quotas — over-size returns `413`. The uploaded image is stored as a content-addressed blob; the public `avatar_url` on the profile reconstructs at read time.



## OpenAPI

````yaml /openapi.json post /profile/me/avatar
openapi: 3.1.0
info:
  title: Marfa API
  version: 4.2.0
  description: Typed data layer for structured personal data
servers: []
security: []
paths:
  /profile/me/avatar:
    post:
      tags:
        - Profile
      summary: Upload an avatar
      description: >-
        Uploads an image as the user's avatar. The accepted MIME types are
        enumerated on the request body schema. Subject to the standard blob size
        cap and the tenant's `blobs` and `storage_bytes` quotas — over-size
        returns `413`. The uploaded image is stored as a content-addressed blob;
        the public `avatar_url` on the profile reconstructs at read time.
      requestBody:
        content:
          multipart/form-data:
            schema:
              nullable: true
      responses:
        '200':
          description: Avatar set; returns the updated profile
          content:
            application/json:
              schema:
                type: object
                properties:
                  username:
                    type: string
                    nullable: true
                  first_name:
                    type: string
                    nullable: true
                  last_name:
                    type: string
                    nullable: true
                  bio:
                    type: string
                    nullable: true
                  avatar_url:
                    type: string
                  email:
                    type: string
                  email_verified:
                    type: boolean
                  created_at:
                    type: string
                  updated_at:
                    type: string
                required:
                  - username
                  - first_name
                  - last_name
                  - bio
                  - avatar_url
                  - email
                  - email_verified
                  - created_at
                  - updated_at
        '400':
          description: Invalid file (missing, empty, or unsupported MIME type)
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: object
                    properties:
                      code:
                        type: string
                        enum:
                          - validation_error
                          - missing_required_field
                      message:
                        type: string
                      details:
                        type: object
                        additionalProperties:
                          nullable: true
                    required:
                      - code
                      - message
                required:
                  - error
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: object
                    properties:
                      code:
                        type: string
                        enum:
                          - unauthorized
                      message:
                        type: string
                      details:
                        type: object
                        additionalProperties:
                          nullable: true
                    required:
                      - code
                      - message
                required:
                  - error
        '413':
          description: Avatar exceeds maximum blob size
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: object
                    properties:
                      code:
                        type: string
                        enum:
                          - blob_too_large
                      message:
                        type: string
                      details:
                        type: object
                        additionalProperties:
                          nullable: true
                    required:
                      - code
                      - message
                required:
                  - error
      security:
        - bearerAuth: []
components:
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: API Key or OAuth Token
      description: Pass an API key (marfa_k1_...) or OAuth access token (marfa_at_...)

````