---
title: "Uploads API"
description: "Upload files"
canonical_url: https://reelmirror.com/docs/api/uploads
markdown_url: https://reelmirror.com/docs/api/uploads.md
last_updated: 2026-11-09
---
# ReelMirror API reference: Uploads

> Upload files

The ReelMirror API is in beta. Base URL: `https://reelmirror.com/api` (every path starts with `/v1`). Authenticate every request with `Authorization: Bearer rm_...`. Machine-readable contract: https://reelmirror.com/docs/openapi.json.

## Endpoints

- [Upload file](https://reelmirror.com/docs/api/uploads#upload): `POST /v1/uploads`

### Upload file

`POST /v1/uploads`

Authentication: bearer token · Operation ID: `upload`

Upload an avatar image or voice sample. Supports multipart/form-data or JSON with a URL to fetch from. Automatically updates the persona's `avatar_url` or `voice_sample_url` field.

#### Request body (multipart/form-data)

- `url` (string; required): URL to fetch file from
- `category` (string, one of `avatar`, `voice`; required)
- `persona_id` (string, uuid; required)

#### Response 201

File uploaded and processed

Fields inside `data`:

- `key` (string; optional): R2 storage key
- `url` (string; optional): Public URL
- `category` (string, one of `avatar`, `voice`; optional): Upload category
- `persona_id` (string, uuid; optional): Persona that was updated

#### Example request

```bash
curl -X POST "https://reelmirror.com/api/v1/uploads" \
  -H "Authorization: Bearer $REELMIRROR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "url": "https://reelmirror.com/…",
  "category": "avatar",
  "persona_id": "8f14e45f-ceea-4e7a-9c2d-3b1a5f2e7c10"
}'
```

