---
title: "Get media by ID"
method: GET
path: "/v1/media/{id}"
tags: ["Media"]
---

# Get media by ID

`GET /v1/media/{id}`

Returns one uploaded media item: its type, size and the URL used when posting. Media is deleted automatically once every post using it has published, after which the ID stops resolving.

## Path parameters

- `id` string, required

## Response `200`

Media item retrieved successfully.

- MediaDto
  - `id` string, required — The unique identifier of the media object
  - `mime_type` string, nullable, required — The MIME type of the media object
  - `object` MediaObjectDto, required
    - `isDeleted` boolean, required — The current state of the physical media asset
    - `url` string, nullable, required — The URL of the media object
    - `size_bytes` number, nullable, required — The size of the media object in bytes
    - `name` string, nullable, required — The provided name of the media object

## Other responses

- `404` — Media not found based on the given ID.
- `500` — Internal server error when fetching the media.

---

[API](https://skmtc.dev/post-bridge/apis/post-bridge-api.md) · [All operations](https://skmtc.dev/post-bridge/apis/post-bridge-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/post-bridge/post-bridge-api/revisions/97ae826701f6/schema)
