---
title: "Upload Image"
method: POST
path: "/image/upload"
tags: ["image"]
---

# Upload Image

`POST /image/upload`

Accepts a base64-encoded image in JSON format,
uploads it to S3, and returns its public URL.
Uses pattern: "user_uploads/images/{uuid}.{ext}"

Works for both web and mobile platforms.

## Request body

- Base64ImageUploadRequest
  - `file_content` string, required
  - `file_name` string, required
  - `content_type` string, required

## Response `200`

Successful Response

- UploadResponse
  - `status` string, required
  - `message` string, required
  - `url` string, required

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.dev/excellence-ai/apis/excellence-learning.md) · [All operations](https://skmtc.dev/excellence-ai/apis/excellence-learning/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/excellence-ai/excellence-learning/revisions/8d495ed916c6/schema)
