---
title: "List uploads"
method: GET
path: "/projects/{projectId}/uploads"
tags: ["Uploads"]
---

# List uploads

`GET /projects/{projectId}/uploads`

## Request

- Base URL: `https://api.rendley.com/v1`
- URL: `https://api.rendley.com/v1/projects/{projectId}/uploads`
- Auth: API key in header `Authorization`

List uploads for a project. Passing media_id or hash looks up one upload and returns `data` as a single upload object, not an array; without either, `data` is an array. An optional role filter scopes the list to one lifecycle role (the editor's hash sync passes role=library so pending/transient files are invisible to its reconciliation; the pending poller passes role=pending).

## Path parameters

- `projectId` string, required

## Query parameters

- `media_id` string
- `hash` string
- `role` 'library' | 'pending' | 'staged' | 'transient'

## Response `200`

OK

- object
  - `data` TypesUpload[]: Success data
    - `duration` number
    - `error` string: Error says why a failed upload failed.
    - `file_hash` string
    - `media_id` string: MediaID is the upload's storage_key — the library media id the client should reuse when injecting a pending upload, so ids stay stable across backend and editor.
    - `mime_type` string
    - `original_file_name` string
    - `role` string
    - `status` string
    - `storage_url` string
  - `error` HttpResponseAPIError
    - `code` string
    - `fields` HttpResponseFieldError[]
      - `field` string
      - `message` string
    - `message` string
  - `meta` unknown

## Other responses

- `400`: Bad Request
- `401`: Unauthorized
- `403`: Forbidden

---

[API](https://skmtc.dev/rendley/apis/rendley-api.md) - [All operations](https://skmtc.dev/rendley/apis/rendley-api/llms.txt) - [OpenAPI document](https://skmtc.dev/rendley/apis/rendley-api/revisions/7eb8713bbf78?raw)
