Skip to content

API reference

Uploads API

Upload files

Beta

Base URL
https://reelmirror.com/api
Authentication
Authorization: Bearer rm_…
Contract
openapi.json

Upload file

POST/v1/uploads

Bearer token

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

  • urlstringrequired

    URL to fetch file from

  • categorystringrequired

    One ofavatarvoice

  • persona_idstringrequireduuid

Response 201

File uploaded and processed Fields below are inside data.

  • keystring

    R2 storage key

  • urlstring

    Public URL

  • categorystring

    Upload category

    One ofavatarvoice

  • persona_idstringuuid

    Persona that was updated

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"
}'
Response 201 (example)
{
  "data": {
    "key": "string",
    "url": "https://reelmirror.com/…",
    "category": "avatar",
    "persona_id": "8f14e45f-ceea-4e7a-9c2d-3b1a5f2e7c10"
  }
}