---
title: "Restore media from the Bin"
method: POST
path: "/v1/workspaces/{workspaceId}/media/{id}/restore"
tags: ["Media"]
---

# Restore media from the Bin

`POST /v1/workspaces/{workspaceId}/media/{id}/restore`

## Request

- Base URL: `https://api.maevesocial.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.maevesocial.com/v1/workspaces/{workspaceId}/media/{id}/restore`
- Auth: HTTP bearer

## Path parameters

- `id` string, required
- `workspaceId` string, uuid, required

## Response `200`

Media restored

- object
  - `data` PublicMediaListItemDto, required
    - `id` string, uuid, required
    - `url` string, required
    - `thumbnailUrl` string, nullable, required
    - `type` string, required
    - `filename` string, required
    - `altText` string, nullable, required
    - `notes` string, nullable, required
    - `fileSize` number, required
    - `width` number, required
    - `height` number, required
    - `durationSeconds` number, nullable, required
    - `folderId` string, uuid, nullable, required
    - `isFavorite` boolean, required
    - `isArchived` boolean, required
    - `deletedAt` string, nullable, required: Set when the item is in the media Bin.
    - `deleteAfter` string, nullable, required: Scheduled permanent deletion time for Bin items.
    - `usageCount` number, required
    - `labels` PublicMediaLabelDto[], required: Workspace labels attached to this media item.
      - `id` string, uuid, required
      - `name` string, required
      - `color` string, nullable, required
      - `groupId` string, uuid, nullable
      - `archivedAt` string, nullable
      - `mergedIntoLabelId` string, uuid, nullable
      - `mergedAt` string, nullable
      - `mergedByUserId` string, uuid, nullable
      - `createdAt` string, required
      - `updatedAt` string, required
    - `createdAt` string, required
    - `updatedAt` string, required
  - `meta` unknown, required

---

[API](https://skmtc.dev/maevesocial/apis/maeve-social-api.md) · [All operations](https://skmtc.dev/maevesocial/apis/maeve-social-api/llms.txt) · [OpenAPI document](https://skmtc.dev/maevesocial/apis/maeve-social-api/revisions/1b00fd7e4b15?raw)
