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

# Upload seller gallery image

> Upload a seller gallery image. The returned id or image_id can be attached to an account via image_ids.



## OpenAPI

````yaml /api-reference/openapi.json post /api/v1/images
openapi: 3.0.3
info:
  title: LoLBoost Seller API
  version: 1.0.0
  description: Seller API for syncing account offers and item offers with LoLBoost.
servers:
  - url: https://api.lolboost.gg
    description: LoLBoost Seller API
security:
  - BearerAuth: []
tags:
  - name: Accounts
    description: Create, list, update, archive and bulk remove account offers.
  - name: Items
    description: Create, list, update, archive and bulk remove item offers.
  - name: Top Ups
    description: Create, list, update, archive and bulk manage top up offers.
  - name: Images
    description: Upload, list and delete seller gallery images for listings.
  - name: Webhooks
    description: Webhook payload examples for sync events.
paths:
  /api/v1/images:
    post:
      tags:
        - Images
      summary: Upload seller gallery image
      description: >-
        Upload a seller gallery image. The returned id or image_id can be
        attached to an account via image_ids.
      requestBody:
        required: true
        content:
          multipart/form-data:
            schema:
              type: object
              properties:
                file:
                  type: string
                  format: binary
                image:
                  type: string
                  format: binary
              description: >-
                Use either file or image as the multipart field name. Example
                curl: curl -X POST https://lolboost.gg/api/v1/images -H
                "Authorization: Bearer YOUR_API_KEY" -F
                "file=@/path/to/account-image.png"
      responses:
        '201':
          description: Created
          content:
            application/json:
              schema:
                type: object
                properties:
                  data:
                    $ref: '#/components/schemas/Image'
              example:
                data:
                  id: 123
                  image_id: 123
                  url: >-
                    https://lolboost.gg/public/uploads/accounts-gallery/account-image.png
                  filename: account-image.png
                  mime_type: image/png
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '422':
          description: Validation error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '429':
          description: Rate limited
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      security:
        - BearerAuth: []
components:
  schemas:
    Image:
      type: object
      properties:
        id:
          type: integer
          example: 123
        image_id:
          type: integer
          example: 123
        url:
          type: string
          example: https://lolboost.gg/public/uploads/accounts-gallery/example.png
        filename:
          type: string
          nullable: true
        original_name:
          type: string
          nullable: true
        mime_type:
          type: string
          example: image/png
        size_bytes:
          type: integer
          nullable: true
        created_at:
          type: integer
          nullable: true
    Error:
      type: object
      properties:
        message:
          type: string
          example: Unauthenticated.
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer
      bearerFormat: API key

````