# List media

> Retrieve a paginated list of media.

`GET /rest/api/medias`

Retrieves the collection of Media resources.

Returns a paginated collection of media in the current organization.

## Headers

| Name                         | Type     | Required | Description                                                                                                                                      |
| ---------------------------- | -------- | -------- | ------------------------------------------------------------------------------------------------------------------------------------------------ |
| `X-Flowkiwi-Organization-Id` | `string` | Yes      | The organization the request acts as. Determines the identity, permissions and ownership applied when reading or modifying data on the instance. |

## Query parameters

| Name           | Type       | Required | Description                  |
| -------------- | ---------- | -------- | ---------------------------- |
| `page`         | `integer`  | -        | The collection page number   |
| `itemsPerPage` | `integer`  | -        | The number of items per page |
| `id`           | `string`   | -        |                              |
| `id[]`         | `string[]` | -        |                              |
| `type`         | `string`   | -        |                              |
| `type[]`       | `string[]` | -        |                              |

## Response

**200** - Media collection

| Property           | Type      | Required | Description |
| ------------------ | --------- | -------- | ----------- |
| `hydra:totalItems` | `integer` | -        |             |
| `hydra:search`     | `object`  | -        |             |
| `hydra:view`       | `object`  | -        |             |
| `hydra:member`     | `Media[]` | Yes      |             |

## Errors

**403** - Access denied. The caller is missing one or more identity permissions required for this operation.

| Property             | Type       | Required | Description                                                                                                                                |
| -------------------- | ---------- | -------- | ------------------------------------------------------------------------------------------------------------------------------------------ |
| `@context`           | `object`   | -        |                                                                                                                                            |
| `@id`                | `string`   | Yes      |                                                                                                                                            |
| `@type`              | `string`   | Yes      |                                                                                                                                            |
| `type`               | `string`   | -        |                                                                                                                                            |
| `title`              | `string`   | -        |                                                                                                                                            |
| `status`             | `integer`  | -        |                                                                                                                                            |
| `detail`             | `string`   | -        |                                                                                                                                            |
| `missingPermissions` | `string[]` | -        | Identity permissions that the caller is missing for this operation. Present only when the 403 is caused by a denied identity:* permission. |

## Examples

### Example request

```bash
curl -X GET 'https://<tenant>.product-management.flowkiwi.net/rest/api/medias' \
  -H 'Authorization: Bearer {token}' \
  -H 'X-Flowkiwi-Organization-Id: <org_id>' \
  -H 'Accept: application/ld+json'
```

### Example response

```json
{
  "@context": "/contexts/Media",
  "@id": "/rest/api/medias",
  "@type": "hydra:Collection",
  "hydra:totalItems": 3,
  "hydra:member": [
    {
      "@context": "/contexts/Media",
      "@id": "/rest/api/medias/01234567-89ab-cdef-0123-456789abcdef",
      "@type": "https://schema.org/MediaObject",
      "id": "01234567-89ab-cdef-0123-456789abcdef",
      "contentUrl": "/uploads/medias/tshirt-red-front.jpg",
      "mimeType": "image/jpeg",
      "type": "image",
      "hash": "9f86d081884c7d659a2feaa0c55ad015a3bf4f1b2b0b822cd15d6c15b0f00a08",
      "dimensions": {
        "@type": "EmbeddedImageDimensionResource",
        "width": 1200,
        "height": 1200
      },
      "createdAt": "2026-01-15T09:30:00+00:00",
      "updatedAt": "2026-02-03T14:45:12+00:00"
    },
    {
      "@context": "/contexts/Media",
      "@id": "/rest/api/medias/019afa10-1b2c-7d3e-8f40-5a6b7c8d9e0f",
      "@type": "https://schema.org/MediaObject",
      "id": "019afa10-1b2c-7d3e-8f40-5a6b7c8d9e0f",
      "contentUrl": "/uploads/medias/tshirt-red-promo.mp4",
      "mimeType": "video/mp4",
      "type": "video",
      "hash": "3a7bd3e2360a3d4f1b9c2f8b6e5d4c3b2a1908f7e6d5c4b3a29180706f5e4d3c",
      "dimensions": {
        "@type": "EmbeddedImageDimensionResource",
        "width": 1920,
        "height": 1080
      },
      "createdAt": "2026-01-15T09:30:00+00:00",
      "updatedAt": "2026-02-03T14:45:12+00:00"
    },
    {
      "@context": "/contexts/Media",
      "@id": "/rest/api/medias/019afa11-2c3d-7e4f-9a51-6b7c8d9e0f10",
      "@type": "https://schema.org/MediaObject",
      "id": "019afa11-2c3d-7e4f-9a51-6b7c8d9e0f10",
      "contentUrl": "/uploads/medias/tshirt-red-size-guide.pdf",
      "mimeType": "application/pdf",
      "type": "file",
      "hash": "b2c3d4e5f60718293a4b5c6d7e8f90112233445566778899aabbccddeeff0011",
      "dimensions": null,
      "createdAt": "2026-01-15T09:30:00+00:00",
      "updatedAt": "2026-02-03T14:45:12+00:00"
    }
  ]
}
```
