---
title: "Upload a PNG design (base64, <=3MB) to durable hosting; returns https url for design_url"
method: POST
path: "/api/agent/upload"
---

# Upload a PNG design (base64, <=3MB) to durable hosting; returns https url for design_url

`POST /api/agent/upload`

## Request

- Base URL: `https://wearmu.com`
- URL: `https://wearmu.com/api/agent/upload`
- Auth: HTTP bearer

## Request body

- object
  - `data_base64` string, required: base64 PNG (data:image/png;base64, prefix OK)
  - `filename` string

## Response `200`

{ok, url, bytes}

## Other responses

- `400`: not PNG / too large / bad base64
- `503`: hosting not configured

---

[API](https://skmtc.dev/wearmu/apis/mu-agent-api.md) · [All operations](https://skmtc.dev/wearmu/apis/mu-agent-api/llms.txt) · [OpenAPI document](https://skmtc.dev/wearmu/apis/mu-agent-api/revisions/d2bc00756d6e?raw)
