---
title: "Uploads an image encoded in base64 to the specified storage bucket."
method: POST
path: "/api/v1/uploadImage"
tags: ["Image"]
---

# Uploads an image encoded in base64 to the specified storage bucket.

`POST /api/v1/uploadImage`

## Request body

- object
  - `base64` string, byte — The base64-encoded image
  - `name` string — Optional name prefix for the uploaded image, limited to 100 characters

## Response `201`

Image uploaded successfully

- object
  - `url` string — The signed URL of the uploaded image

## Other responses

- `400` — Bad Request. Reasons might include no base64 string provided, name length exceeding 100 characters, or base64 size exceeding 10MB.
- `500` — Internal Server Error

---

[API](https://skmtc.net/hero-page/apis/hero-api.md) · [All operations](https://skmtc.net/hero-page/apis/hero-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/hero-page/hero-api/revisions/f44af6e313d8/schema)
