---
title: "Upload an image or file (multipart), returning a media URL."
method: POST
path: "/api/v1/upload"
tags: ["media"]
---

# Upload an image or file (multipart), returning a media URL.

`POST /api/v1/upload`

## Request

- Base URL: `https://irc.freeq.at`
- URL: `https://irc.freeq.at/api/v1/upload`
- Auth: HTTP bearer

Body limit 12 MB. Public uploads return a plain URL; private uploads
are encrypted at rest and return a signed capability URL under
`/api/v1/media/{id}/{sig}/{filename}`.

## Request body `multipart/form-data`

- object
  - `file` string, binary

## Response `200`

Upload result.

- object

## Other responses

- `400`: Malformed request.
- `401`: Missing or invalid bearer token.
- `413`: Body too large.

---

[API](https://skmtc.dev/freeq/apis/freeq.md) - [All operations](https://skmtc.dev/freeq/apis/freeq/llms.txt) - [OpenAPI document](https://skmtc.dev/freeq/apis/freeq/revisions/ca90e05877da?raw)
