
# Read a media file

Read one file by the `fileId` [list media](/api/media/get-media) returns. Media belongs to the workspace, not to one site.

```sh
GET https://sitepaste.com/api/v1/public/media/{fileId}
```

Requires the `media` scope.

## Usage

```bash
curl "https://sitepaste.com/api/v1/public/media/a1b2c3d4.webp" \
  -H "Authorization: Bearer $TOKEN"
```

## Authorizations

| Header | Type | Required | Description |
|--------|------|----------|-------------|
| Authorization | string | Yes | Bearer token (`Authorization: Bearer sp_...`). Created in the dashboard under Account > Tokens. See [authentication](/api/authentication). |

## Response

The file record, in the shape [list media](/api/media/get-media) returns each entry in.

404 when the workspace has no file with that ID.