---
title: "Upload Recordings and Download Media via API | FoxCue"
url: "https://docs.foxcue.com/api-reference/upload-recordings-and-download-media"
date: "2026-10-28T17:53:56+00:00"
modified: "2026-10-28T17:50:45+00:00"
word_count: 141
reading_time: "1 min read"
description: "Upload raw recording tracks to FoxCue with POST /recordings and a retry-safe upload_id, then download rendered media with GET /media using its storage key."
keywords: "Upload, Recordings, Download, Media"
language: "en"
---

To send a recording to FoxCue through the API, create a recording session, then upload the raw track bytes. To download a rendered file, call `GET /media` with the file's storage key from an output.

## Upload a recording

<Steps>
<Step title="Create a session">
`POST /recordings` (scope `media:write`) returns a recording ID.
</Step>
<Step title="Upload the track">
```sh
curl "https://app.foxcue.com/api/v1/recordings/<id>/sources/upload?kind=camera&upload_id=<uuid>" \
  -H "Authorization: Bearer <workspace API key>" \
  -H "Content-Type: video/mp4" --data-binary @recording.mp4
```
Generate a UUID for `upload_id` and reuse it if you retry, so the upload isn't duplicated.
</Step>
</Steps>

API uploads are limited to 64 MiB (`video/mp4` or `video/webm`). For bigger files, upload in the app (up to 500 MB).

`POST /director/media` uploads a reusable screenshot or recording for the Director (API up to 64 MiB). `GET /director/media` lists them. Observation CSV imports are a different upload: stage up to 10 MiB with `POST /observations/uploads`. See [Performance and observations](https://docs.foxcue.com/api-reference/performance-and-observations/).

## Download media

```sh
curl "https://app.foxcue.com/api/v1/media?key=<URL-encoded-storage-key>" \
  -H "Authorization: Bearer <workspace API key>" --output result.mp4
```

Get the key from an output (`GET /artifacts/{id}`). Downloads only work for media your workspace owns.

## Related articles

- [Operations](https://docs.foxcue.com/api-reference/operations/)
- [Limits and errors](https://docs.foxcue.com/api-reference/limits-and-errors/)
- [Performance and observations](https://docs.foxcue.com/api-reference/performance-and-observations/)


---
_View the original page at: [https://docs.foxcue.com/api-reference/upload-recordings-and-download-media](https://docs.foxcue.com/api-reference/upload-recordings-and-download-media)_
_Served as markdown by [FoxCue Docs](https://docs.foxcue.com)_
_Generated: 2026-10-28T17:50:45 UTC_