# List assets

> Files in the workspace's library, or in one end user's.

<Endpoint method="GET" path="/v1/assets" />

<CodeTabs>

```bash tab="cURL"
curl "https://api.muzekit.com/v1/assets?kind=image" \
  -H "Authorization: Bearer $MUZEKIT_SECRET_KEY"
```

```javascript tab="Node"
const res = await fetch("https://api.muzekit.com/v1/assets?kind=image", {
  headers: { Authorization: `Bearer ${process.env.MUZEKIT_SECRET_KEY}` },
});
const assets = await res.json();
```

```python tab="Python"
import os
import requests

assets = requests.get(
    "https://api.muzekit.com/v1/assets",
    params={"kind": "image"},
    headers={"Authorization": f"Bearer {os.environ['MUZEKIT_SECRET_KEY']}"},
).json()
```

</CodeTabs>

`kind` is `image`, `video`, `audio` or `font`. Add `user=usr_…` for that end user's uploads. Newest first, up to 200.

Brand kit files are not in this list; get them with [Get the brand kit](/docs/api-reference/brand-get).

## Examples

### List one end user's images

Pass `user` and `kind` together, for example to show a user's uploads in your own app or to check what they added.

<CodeTabs>

```bash tab="cURL"
curl "https://api.muzekit.com/v1/assets?user=usr_8fK2mQ1xZpR&kind=image" \
  -H "Authorization: Bearer $MUZEKIT_SECRET_KEY"
```

```javascript tab="Node"
const params = new URLSearchParams({ user: "usr_8fK2mQ1xZpR", kind: "image" });
const res = await fetch(`https://api.muzekit.com/v1/assets?${params}`, {
  headers: { Authorization: `Bearer ${process.env.MUZEKIT_SECRET_KEY}` },
});
const { data: images } = await res.json();
```

```python tab="Python"
import os
import requests

images = requests.get(
    "https://api.muzekit.com/v1/assets",
    params={"user": "usr_8fK2mQ1xZpR", "kind": "image"},
    headers={"Authorization": f"Bearer {os.environ['MUZEKIT_SECRET_KEY']}"},
).json()["data"]
```

</CodeTabs>

### List the workspace library

Without `user`, you get the files your team and your server uploaded to the workspace, of every kind.

<CodeTabs>

```bash tab="cURL"
curl https://api.muzekit.com/v1/assets \
  -H "Authorization: Bearer $MUZEKIT_SECRET_KEY"
```

```javascript tab="Node"
const res = await fetch("https://api.muzekit.com/v1/assets", {
  headers: { Authorization: `Bearer ${process.env.MUZEKIT_SECRET_KEY}` },
});
const { data: assets } = await res.json();
```

```python tab="Python"
import os
import requests

assets = requests.get(
    "https://api.muzekit.com/v1/assets",
    headers={"Authorization": f"Bearer {os.environ['MUZEKIT_SECRET_KEY']}"},
).json()["data"]
```

</CodeTabs>

### List one end user's fonts

A font carries the `family` it was uploaded with (`null` when none was given).

<CodeTabs>

```bash tab="cURL"
curl "https://api.muzekit.com/v1/assets?user=usr_8fK2mQ1xZpR&kind=font" \
  -H "Authorization: Bearer $MUZEKIT_SECRET_KEY"
```

```javascript tab="Node"
const params = new URLSearchParams({ user: "usr_8fK2mQ1xZpR", kind: "font" });
const res = await fetch(`https://api.muzekit.com/v1/assets?${params}`, {
  headers: { Authorization: `Bearer ${process.env.MUZEKIT_SECRET_KEY}` },
});
const { data: fonts } = await res.json();
const families = [...new Set(fonts.map((f) => f.family).filter(Boolean))];
```

```python tab="Python"
import os
import requests

fonts = requests.get(
    "https://api.muzekit.com/v1/assets",
    params={"user": "usr_8fK2mQ1xZpR", "kind": "font"},
    headers={"Authorization": f"Bearer {os.environ['MUZEKIT_SECRET_KEY']}"},
).json()["data"]
families = {f["family"] for f in fonts if f["family"]}
```

</CodeTabs>

## Response

```json
{
  "object": "list",
  "data": [
    {
      "object": "asset",
      "id": "ast_dQC3Z8RgqAH",
      "kind": "image",
      "name": "logo.png",
      "tags": [],
      "url": "https://storage.muzekit.com/…/logo.png",
      "value": null,
      "type": "image/png",
      "size": 18233,
      "width": 512,
      "height": 512,
      "family": null,
      "created_at": "2026-10-17T02:10:00.000Z"
    }
  ]
}
```
