---
title: "Upload a photo or video - {name, data_b64, folder}, up to 25 MB"
method: POST
path: "/media"
tags: ["Files and media"]
---

# Upload a photo or video - {name, data_b64, folder}, up to 25 MB

`POST /media`

## Request

- Base URL: `https://api.clousd.com/v1`
- URL: `https://api.clousd.com/v1/media`
- Auth: HTTP bearer

Publish it from a group with {"op":"publish","package":...,"text":"post","media_id":<id>,"caption":...}.

## Request body

- object
  - `name` string, required
  - `data_b64` string, required
  - `folder` integer

## Response `200`

OK

- object

---

[API](https://skmtc.dev/clousd/apis/clousd-api.md) · [All operations](https://skmtc.dev/clousd/apis/clousd-api/llms.txt) · [OpenAPI document](https://skmtc.dev/clousd/apis/clousd-api/revisions/0291ffd26ae3?raw)
