---
title: "List media"
method: GET
path: "/media"
tags: ["Media"]
---

# List media

`GET /media`

## Request

- Base URL: `https://www.postbase.so/api/v1`
- URL: `https://www.postbase.so/api/v1/media`
- Auth: HTTP bearer

## Query parameters

- `type` 'image' | 'video'
- `search` string

## Response `200`

The newest 50 files

- object
  - `media` Media[]
    - `id` string, uuid, required
    - `name` string
    - `type` string, required: MIME type
    - `size_bytes` integer
    - `url` string, uri, required
    - `created_at` string, date-time

## Other responses

- `401`: Missing or invalid API key
- `429`: Rate limited

---

[API](https://skmtc.dev/postbase/apis/postbase-api.md) · [All operations](https://skmtc.dev/postbase/apis/postbase-api/llms.txt) · [OpenAPI document](https://skmtc.dev/postbase/apis/postbase-api/revisions/6d9919b1e551?raw)
