# Get media details

**Publié le** : 2026-05-08
**Catégorie** : Media & Files

## `GET /media/:id`

**Get media details**

Returns full metadata for a media file including dimensions, file size,
MIME type, CDN URL, and all image variants.

Required permissions: `media.view`

### Parameters

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `id` | path | string | Yes | Unique identifier |


### Responses

| Status | Description |
| --- | --- |
| `200` | Successful response |
| `401` | Unauthorized — invalid or missing API token |
| `403` | Forbidden — insufficient permissions |
| `404` | Not found |


### Examples

```bash
curl https://api.lynkow.com/v1/media/a1b2c3d4-e5f6-7890-abcd-ef1234567890 \
  -H "Authorization: Bearer $API_TOKEN"
```

### Response Example

```json
{
  "data": {
    "id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
    "filename": "hero-banner.jpg",
    "originalName": "hero-banner.jpg",
    "mimeType": "image/jpeg",
    "size": 245760,
    "width": 1920,
    "height": 1080,
    "alt": "Homepage hero banner",
    "title": "Hero Banner",
    "url": "https://cdn.lynkow.com/sites/abc123/hero-banner.jpg",
    "variants": {
      "thumbnail": "https://cdn.lynkow.com/sites/abc123/hero-banner.jpg?w=150",
      "card": "https://cdn.lynkow.com/sites/abc123/hero-banner.jpg?w=400",
      "content": "https://cdn.lynkow.com/sites/abc123/hero-banner.jpg?w=800",
      "medium": "https://cdn.lynkow.com/sites/abc123/hero-banner.jpg?w=1200"
    },
    "folderId": "folder-uuid",
    "folder": {
      "id": "folder-uuid",
      "name": "Banners"
    },
    "references": {
      "contents": 3,
      "siteBlocks": 1
    },
    "createdAt": "2025-02-10T12:00:00.000Z",
    "updatedAt": "2025-03-15T09:30:00.000Z"
  }
}
```

---