---
title: "Upload validated email image bytes"
method: PUT
path: "/media/upload-bytes"
tags: ["Media"]
---

# Upload validated email image bytes

`PUT /media/upload-bytes`

Uploads the exact bytes to the authenticated URL returned by POST /media/upload-url. The server enforces the requested size, verifies the file signature, and creates the public object only once.

## Query parameters

- `key` string, required
- `filename` string, required
- `contentType` string, required
- `fileSizeBytes` integer, required

## Response `200`

Image bytes validated and stored

- object
  - `success` boolean
  - `key` string
  - `publicUrl` string

## Other responses

- `400` — Invalid size, key, content type, or image bytes
- `401` — Unauthorized
- `409` — Upload URL already used
- `503` — Uploads not configured or temporarily unavailable

---

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