---
title: "Upload an image"
method: POST
path: "/media/upload"
---

# Upload an image

`POST /media/upload`

Upload an image to your organization storage. Useful for training content, help center, and other rich-text fields.

**Request body:** `multipart/form-data` with one part named `file`. Use a filename and `Content-Type` that match the image (PNG, JPEG, GIF, or WebP).

**Limits:** 5 MB maximum. Bytes are checked against the declared type (magic-byte validation).

## Response `201`

Default Response

- MediaUploadResponseDto
  - `id` string, required — Unique identifier for the stored file.
  - `url` string, required — Public URL for the uploaded image.

## Other responses

- `400` — Default Response
- `401` — Default Response
- `403` — Default Response
- `500` — Internal Server Error

---

[API](https://skmtc.net/open/apis/opencx-api.md) · [All operations](https://skmtc.net/open/apis/opencx-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/open/opencx-api/versions/57b06b52302d/schema)
