---
title: "List the workspace's media"
description: "Photos, footage and sound uploaded in the dashboard's Media page or\nfrom an AI chat (the MCP tools upload_media, create_media_upload and\nimport_media) and prepared for video, newest first, each with the `path` a composition\nloads it from (`<video src>`, `<audio src>`, `<img src>`). Uploads still\nbeing prepared are counted in `processing`. Needs the `videos:read` permission.\n"
---

> Documentation Index
> Fetch the complete documentation index at: https://docs.mosio.me/llms.txt
> Use this file to discover all available pages before exploring further.

Path: Mosio REST API › Videos

`GET /v1/media`

Photos, footage and sound uploaded in the dashboard's Media page or
from an AI chat (the MCP tools upload_media, create_media_upload and
import_media) and prepared for video, newest first, each with the `path` a composition
loads it from (`<video src>`, `<audio src>`, `<img src>`). Uploads still
being prepared are counted in `processing`. Needs the `videos:read` permission.

## Authentication

- `apiKey`, apiKey, in header, header `x-api-key`

## Query parameters

- `kind` (`listMedia.query.kind`; string, optional) — Only this kind.
  - one of `"image"`, `"video"`, `"audio"`

## Code samples

### cURL

```bash
curl --request GET \
  --url https://app.mosio.me/v1/media \
  --header 'x-api-key: <x-api-key>'
```

### TypeScript

```typescript
const url = 'https://app.mosio.me/v1/media';
const options = {method: 'GET', headers: {'x-api-key': '<x-api-key>'}};

fetch(url, options)
  .then(res => res.json())
  .then(json => console.log(json))
  .catch(err => console.error(err));
```

### Python

```python
import requests

url = "https://app.mosio.me/v1/media"

headers = {"x-api-key": "<x-api-key>"}

response = requests.get(url, headers=headers)

print(response.text)
```

## Responses

### 200

The ready media.

#### Example

```json
{
  "media": [
    {
      "id": "upl_3f2a9c1e-7b4d-4e8a-9c21-5d6e7f8a9b0c",
      "kind": "image",
      "filename": "string",
      "path": "assets/media/upl_3f2a9c1e-7b4d-4e8a-9c21-5d6e7f8a9b0c.mp4",
      "duration_seconds": 0,
      "width": 0,
      "height": 0,
      "has_audio": true,
      "created_at": "2019-08-24T14:15:22Z"
    }
  ],
  "processing": 0
}
```

- `media` (`listMedia.response.200.media`; array<object>, required)
  - `id` (`listMedia.response.200.media.id`; string, required)
    - example `"upl_3f2a9c1e-7b4d-4e8a-9c21-5d6e7f8a9b0c"`
  - `kind` (`listMedia.response.200.media.kind`; string, required)
    - one of `"image"`, `"video"`, `"audio"`
  - `filename` (`listMedia.response.200.media.filename`; string, required)
  - `path` (`listMedia.response.200.media.path`; string, required) — Where a composition loads it.
    - example `"assets/media/upl_3f2a9c1e-7b4d-4e8a-9c21-5d6e7f8a9b0c.mp4"`
  - `duration_seconds` (`listMedia.response.200.media.duration_seconds`; number | null, required)
  - `width` (`listMedia.response.200.media.width`; integer | null, required)
  - `height` (`listMedia.response.200.media.height`; integer | null, required)
  - `has_audio` (`listMedia.response.200.media.has_audio`; boolean, required)
  - `created_at` (`listMedia.response.200.media.created_at`; string, required)
    - format `date-time`
- `processing` (`listMedia.response.200.processing`; integer, required) — Uploads still being prepared.

### 400

The request body is not valid JSON or does not match the schema.

#### Example

```json
{
  "error": "unauthorized",
  "message": "string",
  "details": null
}
```

- `error` (`listMedia.response.400.error`; string, required) — A stable error code.
  - one of `"unauthorized"`, `"invalid_api_key"`, `"insufficient_scope"`, `"forbidden"`, `"invalid_input"`, `"invalid_composition"`, `"idempotency_conflict"`, `"project_edited"`, `"quota_exceeded"`, `"insufficient_credits"`, `"too_many_active_renders"`, `"duration_too_long"`, `"not_found"`, `"internal_error"`
- `message` (`listMedia.response.400.message`; string, required) — A message for people, in Indonesian.
- `details` (`listMedia.response.400.details`; unknown, optional) — More about the error, such as the fields to fix.

### 401

The API key is missing or not valid.

#### Example

```json
{
  "error": "unauthorized",
  "message": "Kirim API key di header x-api-key."
}
```

- `error` (`listMedia.response.401.error`; string, required) — A stable error code.
  - one of `"unauthorized"`, `"invalid_api_key"`, `"insufficient_scope"`, `"forbidden"`, `"invalid_input"`, `"invalid_composition"`, `"idempotency_conflict"`, `"project_edited"`, `"quota_exceeded"`, `"insufficient_credits"`, `"too_many_active_renders"`, `"duration_too_long"`, `"not_found"`, `"internal_error"`
- `message` (`listMedia.response.401.message`; string, required) — A message for people, in Indonesian.
- `details` (`listMedia.response.401.details`; unknown, optional) — More about the error, such as the fields to fix.


Source: https://docs.mosio.me/api/media/list/index.md
