---
title: "Media API Reference | Linkbreakers"
description: "Your media library: images, PDFs and videos for link pages, QR codes and workflow steps. Upload, import from a URL, replace and delete."
canonical: "https://linkbreakers.com/help/api/media"
---

# Media

Your media library: images, PDFs and videos for link pages, QR codes and workflow steps. Upload, import from a URL, replace and delete.

12 entries on this page

## The media object

A file in the workspace's media library: an image, a PDF document or an MP4 video. A media item only has a kind; where it is used is derived from its references. Any image can be used as a QR code logo, a page theme's background cover, badge or footer logo (up to 3 MB for those), and any media can be opened by an Open media workflow step. Every item counts toward the workspace's media storage allowance (PLAN\_LIMIT\_KEY\_MEDIA\_STORAGE\_MB in allowances).

`createdAt` string (date-time) 

Read-only

When the file was created

`fileName` string

The name of the file

`id` string

The unique identifier of the media file (UUID)

`kind` enum 

Read-only

What kind of file this is.

Allowed values

* `KIND_IMAGE` A PNG, JPEG, WebP or SVG image
* `KIND_DOCUMENT` A PDF document
* `KIND_VIDEO` An MP4 video

`mediaType` enum

Deprecated: read uploadedFrom for where the media was uploaded from and references for where it is used. Still filled with the value recorded at upload; unset for media uploaded from the media library.

Allowed values

* `TYPE_CENTRAL_QRCODE_IMAGE` The media type is a central QR code image
* `TYPE_BACKGROUND_COVER` The media type is a background cover for page themes
* `TYPE_BADGE` The media type is a badge image for page themes
* `TYPE_FOOTER_LOGO` The media type is a footer logo shown at the bottom of page theme pages
* `TYPE_OPEN_MEDIA` The media is handed to visitors by an Open media workflow step

`mimeType` string 

Read-only

The MIME type of the file

`references` array of object 

Read-only

Where this media is used: the Open media steps opening it, the page themes showing it and the QR code designs using it as their logo, each named by the link or the template it belongs to. Empty means it is not used anywhere. Filled by List and Get; Create, CreateUpload and CompleteUpload return it empty. Deleting media an Open media step or a page theme uses is refused with MEDIA\_IN\_USE; a QR code keeps its own copy of its logo, so deleting the media changes no QR code and only clears its link to it.

8 child attributes

`linkId` string 

Read-only

The link that uses the media (UUID): the Open media step's link, a link whose page theme shows it, or a link whose QR code uses it as its logo. Empty when the use is not tied to a link, as for a template's own theme or QR code design.

`linkName` string 

Read-only

The link's name, or its shortlink when it has no name. Empty when linkId is empty.

`pageThemeTemplateId` string 

Read-only

The page theme template whose theme shows the media (UUID). Set only for page theme uses that belong to a template rather than a link.

`pageThemeTemplateName` string 

Read-only

The page theme template's name. Set with pageThemeTemplateId.

`qrcodeTemplateId` string 

Read-only

The QR code template whose QR code design uses the media as its logo (UUID). Set only for TYPE\_QR\_CODE\_LOGO uses that belong to a QR code template rather than a link.

`qrcodeTemplateName` string 

Read-only

The QR code template's name. Set with qrcodeTemplateId.

`type` enum 

Read-only

What uses the media

Allowed values

* `TYPE_OPEN_MEDIA_STEP` An Open media workflow step opens the media for visitors. It blocks deleting the media.
* `TYPE_PAGE_THEME_COVER` A page theme shows the media as its background cover. It blocks deleting the media.
* `TYPE_PAGE_THEME_BADGE` A page theme shows the media as its badge. It blocks deleting the media.
* `TYPE_PAGE_THEME_FOOTER_LOGO` A page theme shows the media as its footer logo. It blocks deleting the media.
* `TYPE_QR_CODE_LOGO` A QR code design uses the media as its logo, in the center of the QR code. The design keeps its own copy of the image, so this does not block deleting the media; deleting it clears this use. Replacing the media's file detaches it too: the design keeps its current logo.

`workflowStepId` string 

Read-only

The Open media workflow step handing out the media (UUID). Set only for TYPE\_OPEN\_MEDIA\_STEP.

`sha256` string 

Read-only

The SHA-256 of the file's bytes, 64 lowercase hexadecimal characters, computed by the server. A workspace holds each file once: uploading bytes with the same hash is refused with 409 MEDIA\_ALREADY\_EXISTS, naming this media in the error's existingMediaId and existingFileName metadata. Empty while pending, and for media stored before files were hashed.

`signedUrl` string

Short-lived signed URL for downloading the media asset

`size` integer (int64) 

Read-only

The size of the file in bytes

`status` enum 

Read-only

Whether the file is stored yet. Only CreateUpload and Get of a pending upload return STATUS\_PENDING.

Allowed values

* `STATUS_PENDING` A direct upload that has not been completed: no file yet, not listed, cannot be used
* `STATUS_READY` Stored and checked, ready to use

`updatedAt` string (date-time) 

Read-only

When the file was last updated

`uploadedBy` string 

Read-only

The member who uploaded the file If it was uploaded through the public API, or if the member was removed from the workspace, the uploadedBy will be null.

`uploadedFrom` enum 

Read-only

Where the media was uploaded from, so pickers can show a section's own uploads first. It does not limit where the media can be used; see references for where it is used.

Allowed values

* `UPLOAD_ORIGIN_MEDIA_LIBRARY` Uploaded from the media library itself
* `UPLOAD_ORIGIN_QR_CODE_LOGO` Uploaded while picking a QR code's logo
* `UPLOAD_ORIGIN_BACKGROUND_COVER` Uploaded while picking a page theme's background cover
* `UPLOAD_ORIGIN_BADGE` Uploaded while picking a page theme's badge
* `UPLOAD_ORIGIN_FOOTER_LOGO` Uploaded while picking a page theme's footer logo
* `UPLOAD_ORIGIN_OPEN_MEDIA` Uploaded while picking the media an Open media step opens
* `UPLOAD_ORIGIN_ASSISTANT` Imported by the Assistant, from a file attached to a conversation or a URL
* `UPLOAD_ORIGIN_UNSPECIFIED` Not set. Uploads that do not say where they come from are recorded as UPLOAD\_ORIGIN\_MEDIA\_LIBRARY.

`usage` enum

Deprecated: read uploadedFrom for where the media was uploaded from and references for where it is used. Still filled with the value recorded at upload; unset for media uploaded from the media library.

Allowed values

* `USAGE_CENTRAL_QRCODE_IMAGE` The logo in the center of a QR code
* `USAGE_BACKGROUND_COVER` A page theme's background cover
* `USAGE_BADGE` A page theme's badge image
* `USAGE_FOOTER_LOGO` A page theme's footer logo
* `USAGE_OPEN_MEDIA` Media an Open media workflow step hands to visitors: a PDF menu or brochure, an image or an MP4 video

`visibility` enum

The visibility of the media.

If not provided, the media file will be private to the workspace.

Allowed values

* `VISIBILITY_PUBLIC` The media visibility is public
* `VISIBILITY_PRIVATE` The media visibility is private

`workspaceId` string

The workspace ID the media file belongs to (UUID). Empty for a public QR code logo upload, which belongs to no workspace.

Example media

```json
{
  "createdAt": "2026-03-14T09:30:00Z",
  "fileName": "menu-cover.png",
  "id": "5f1c2d3e-4b5a-6c7d-8e9f-0a1b2c3d4e5f",
  "kind": "KIND_IMAGE",
  "mediaType": "TYPE_CENTRAL_QRCODE_IMAGE",
  "mimeType": "image/png",
  "references": [
    {
      "linkId": "1b9d6bcd-bbfd-4b2d-9b5d-ab8dfbbd4bed",
      "linkName": "Spring menu",
      "pageThemeTemplateId": "2b8d4f60-7a1c-4e3b-9f52-c6d0e8a1b347",
      "pageThemeTemplateName": "Lyon bistro",
      "qrcodeTemplateId": "0d7f4d9c-1aef-4ed4-821b-321a3f9cba1d",
      "qrcodeTemplateName": "Table card",
      "type": "TYPE_OPEN_MEDIA_STEP",
      "workflowStepId": "987fcdeb-a321-45e6-b789-123456789012"
    }
  ],
  "sha256": "b94d27b9934d3e08a52e52d7da7dabfac484efe37a5380ee9088f7ace2efcde9",
  "signedUrl": "https://cdn.linkbreakers.com/media/5f1c2d3e/menu-cover.png?Expires=1773487800&Signature=Qm9uIGFwcGV0aXQ",
  "size": 248311,
  "status": "STATUS_READY",
  "updatedAt": "2026-03-18T16:05:00Z",
  "uploadedBy": "b7e3d1a9-4c2f-4e8b-9a6d-0f5c3e7b1a28",
  "uploadedFrom": "UPLOAD_ORIGIN_QR_CODE_LOGO",
  "usage": "USAGE_CENTRAL_QRCODE_IMAGE",
  "visibility": "VISIBILITY_PRIVATE",
  "workspaceId": "c0d3cafe-5b1e-4d42-a6fd-0c5f5c3962d0"
}
```

### Parameters

`pageSize` integer (int64) 

query

Required

The maximum number of media files to return.

`pageToken` string 

query

The token for retrieving the next page of results If not provided, the first page of results will be returned

`usage` string 

query

Deprecated: filter by uploadedFrom instead. Still matches the value recorded at upload, which says nothing about where the media is used.

* USAGE\_UNSPECIFIED: Not set
* USAGE\_CENTRAL\_QRCODE\_IMAGE: The logo in the center of a QR code
* USAGE\_BACKGROUND\_COVER: A page theme's background cover
* USAGE\_BADGE: A page theme's badge image
* USAGE\_FOOTER\_LOGO: A page theme's footer logo
* USAGE\_OPEN\_MEDIA: Media an Open media workflow step hands to visitors: a PDF menu or brochure, an image or an MP4 video

`kind` string 

query

Only media of this kind. Unset lists every kind.

* KIND\_UNSPECIFIED: Not set
* KIND\_IMAGE: A PNG, JPEG, WebP or SVG image
* KIND\_DOCUMENT: A PDF document
* KIND\_VIDEO: An MP4 video

`uploadedFrom` string 

query

Only media uploaded from this place. Unset lists media from everywhere. Where media was uploaded from says nothing about where it can be used: read references for that.

* UPLOAD\_ORIGIN\_UNSPECIFIED: Not set. Uploads that do not say where they come from are recorded as UPLOAD\_ORIGIN\_MEDIA\_LIBRARY.
* UPLOAD\_ORIGIN\_MEDIA\_LIBRARY: Uploaded from the media library itself
* UPLOAD\_ORIGIN\_QR\_CODE\_LOGO: Uploaded while picking a QR code's logo
* UPLOAD\_ORIGIN\_BACKGROUND\_COVER: Uploaded while picking a page theme's background cover
* UPLOAD\_ORIGIN\_BADGE: Uploaded while picking a page theme's badge
* UPLOAD\_ORIGIN\_FOOTER\_LOGO: Uploaded while picking a page theme's footer logo
* UPLOAD\_ORIGIN\_OPEN\_MEDIA: Uploaded while picking the media an Open media step opens
* UPLOAD\_ORIGIN\_ASSISTANT: Imported by the Assistant, from a file attached to a conversation or a URL

`cursor` string 

query

Opaque cursor from the previous page's nextPageToken. Same as pageToken; when both are sent, pageToken wins.

### Response

200

`media` array of object

Page of media entries including fresh signed URLs

Fields: [The media object](#media-object).

`nextPageToken` string

Token for retrieving the next page of results.

Cursor to continue listing media assets

`totalCount` integer (int64)

Every media item matching the filters, across all pages

Errors answer 4xx or 5xx with the [error object](https://linkbreakers.com/help/api#errors), and `429` past the [rate limit](https://linkbreakers.com/help/api#rate-limits).

Request

```bash
curl -X GET "https://api.linkbreakers.com/v1/media?pageSize={pageSize}" \
  -H "Authorization: Bearer $LINKBREAKERS_TOKEN"
```

Response 200

```json
{
  "media": [
    {
      "createdAt": "2026-03-14T09:30:00Z",
      "fileName": "menu-cover.png",
      "id": "5f1c2d3e-4b5a-6c7d-8e9f-0a1b2c3d4e5f",
      "kind": "KIND_IMAGE",
      "mediaType": "TYPE_CENTRAL_QRCODE_IMAGE",
      "mimeType": "image/png",
      "references": [
        {
          "linkId": "1b9d6bcd-bbfd-4b2d-9b5d-ab8dfbbd4bed",
          "linkName": "Spring menu",
          "pageThemeTemplateId": "2b8d4f60-7a1c-4e3b-9f52-c6d0e8a1b347",
          "pageThemeTemplateName": "Lyon bistro",
          "qrcodeTemplateId": "0d7f4d9c-1aef-4ed4-821b-321a3f9cba1d",
          "qrcodeTemplateName": "Table card",
          "type": "TYPE_OPEN_MEDIA_STEP",
          "workflowStepId": "987fcdeb-a321-45e6-b789-123456789012"
        }
      ],
      "sha256": "b94d27b9934d3e08a52e52d7da7dabfac484efe37a5380ee9088f7ace2efcde9",
      "signedUrl": "https://cdn.linkbreakers.com/media/5f1c2d3e/menu-cover.png?Expires=1773487800&Signature=Qm9uIGFwcGV0aXQ",
      "size": 248311,
      "status": "STATUS_READY",
      "updatedAt": "2026-03-18T16:05:00Z",
      "uploadedBy": "b7e3d1a9-4c2f-4e8b-9a6d-0f5c3e7b1a28",
      "uploadedFrom": "UPLOAD_ORIGIN_QR_CODE_LOGO",
      "usage": "USAGE_CENTRAL_QRCODE_IMAGE",
      "visibility": "VISIBILITY_PRIVATE",
      "workspaceId": "c0d3cafe-5b1e-4d42-a6fd-0c5f5c3962d0"
    }
  ],
  "nextPageToken": "eyJtZWRpYUlkIjoiNWIifQ==",
  "totalCount": 42
}
```

### Parameters

`id` string 

path

Required

The ID of the media file to retrieve (UUID)

### Response

200

`media` object

A file in the workspace's media library: an image, a PDF document or an MP4 video. A media item only has a kind; where it is used is derived from its references. Any image can be used as a QR code logo, a page theme's background cover, badge or footer logo (up to 3 MB for those), and any media can be opened by an Open media workflow step. Every item counts toward the workspace's media storage allowance (PLAN\_LIMIT\_KEY\_MEDIA\_STORAGE\_MB in allowances).

Fields: [The media object](#media-object).

Errors answer 4xx or 5xx with the [error object](https://linkbreakers.com/help/api#errors), and `429` past the [rate limit](https://linkbreakers.com/help/api#rate-limits).

Request

```bash
curl -X GET "https://api.linkbreakers.com/v1/media/{id}" \
  -H "Authorization: Bearer $LINKBREAKERS_TOKEN"
```

Response 200

```json
{
  "media": {
    "createdAt": "2026-03-14T09:30:00Z",
    "fileName": "menu-cover.png",
    "id": "5f1c2d3e-4b5a-6c7d-8e9f-0a1b2c3d4e5f",
    "kind": "KIND_IMAGE",
    "mediaType": "TYPE_CENTRAL_QRCODE_IMAGE",
    "mimeType": "image/png",
    "references": [
      {
        "linkId": "1b9d6bcd-bbfd-4b2d-9b5d-ab8dfbbd4bed",
        "linkName": "Spring menu",
        "pageThemeTemplateId": "2b8d4f60-7a1c-4e3b-9f52-c6d0e8a1b347",
        "pageThemeTemplateName": "Lyon bistro",
        "qrcodeTemplateId": "0d7f4d9c-1aef-4ed4-821b-321a3f9cba1d",
        "qrcodeTemplateName": "Table card",
        "type": "TYPE_OPEN_MEDIA_STEP",
        "workflowStepId": "987fcdeb-a321-45e6-b789-123456789012"
      }
    ],
    "sha256": "b94d27b9934d3e08a52e52d7da7dabfac484efe37a5380ee9088f7ace2efcde9",
    "signedUrl": "https://cdn.linkbreakers.com/media/5f1c2d3e/menu-cover.png?Expires=1773487800&Signature=Qm9uIGFwcGV0aXQ",
    "size": 248311,
    "status": "STATUS_READY",
    "updatedAt": "2026-03-18T16:05:00Z",
    "uploadedBy": "b7e3d1a9-4c2f-4e8b-9a6d-0f5c3e7b1a28",
    "uploadedFrom": "UPLOAD_ORIGIN_QR_CODE_LOGO",
    "usage": "USAGE_CENTRAL_QRCODE_IMAGE",
    "visibility": "VISIBILITY_PRIVATE",
    "workspaceId": "c0d3cafe-5b1e-4d42-a6fd-0c5f5c3962d0"
  }
}
```

### Parameters

`Idempotency-Key` string 

header

A unique value per request, such as a UUID, that makes retrying it safe: a retry with the same key and body returns the first response instead of acting twice.

### Request body

`assistantAttachmentId` string

The id of a file the caller attached to their own Assistant conversation. Attachments are short-lived and belong to the member who attached them, in that workspace.

`fileName` string

The name shown in the media library and as the file name visitors download. Empty takes the attachment's name, or the last segment of the URL's path.

`uploadedFrom` enum

Where the media was imported from, information only. Unset means UPLOAD\_ORIGIN\_ASSISTANT for an attachment and UPLOAD\_ORIGIN\_MEDIA\_LIBRARY for a URL.

Allowed values

* `UPLOAD_ORIGIN_MEDIA_LIBRARY` Uploaded from the media library itself
* `UPLOAD_ORIGIN_QR_CODE_LOGO` Uploaded while picking a QR code's logo
* `UPLOAD_ORIGIN_BACKGROUND_COVER` Uploaded while picking a page theme's background cover
* `UPLOAD_ORIGIN_BADGE` Uploaded while picking a page theme's badge
* `UPLOAD_ORIGIN_FOOTER_LOGO` Uploaded while picking a page theme's footer logo
* `UPLOAD_ORIGIN_OPEN_MEDIA` Uploaded while picking the media an Open media step opens
* `UPLOAD_ORIGIN_ASSISTANT` Imported by the Assistant, from a file attached to a conversation or a URL
* `UPLOAD_ORIGIN_UNSPECIFIED` Not set. Uploads that do not say where they come from are recorded as UPLOAD\_ORIGIN\_MEDIA\_LIBRARY.

`url` string

A public https URL the file is downloaded from, on port 443\. Redirects are followed only to other public https URLs, at most five. The file's kind is read from its bytes.

### Response

200

`media` object

The media item, READY, with a signed URL

Fields: [The media object](#media-object).

Errors answer 4xx or 5xx with the [error object](https://linkbreakers.com/help/api#errors), and `429` past the [rate limit](https://linkbreakers.com/help/api#rate-limits).

Request

```bash
curl -X POST "https://api.linkbreakers.com/v1/media:import" \
  -H "Authorization: Bearer $LINKBREAKERS_TOKEN" \
  -H "Content-Type: application/json" \
  --data '{
  "assistantAttachmentId": "7a3d9e2b-4f1c-4b8a-a6d5-1e9c3f7b2d48",
  "fileName": "menu.pdf",
  "uploadedFrom": "UPLOAD_ORIGIN_ASSISTANT",
  "url": "https://example.com/menu.pdf"
}'
```

Response 200

```json
{
  "media": {
    "createdAt": "2026-03-14T09:30:00Z",
    "fileName": "menu-cover.png",
    "id": "5f1c2d3e-4b5a-6c7d-8e9f-0a1b2c3d4e5f",
    "kind": "KIND_IMAGE",
    "mediaType": "TYPE_CENTRAL_QRCODE_IMAGE",
    "mimeType": "image/png",
    "references": [
      {
        "linkId": "1b9d6bcd-bbfd-4b2d-9b5d-ab8dfbbd4bed",
        "linkName": "Spring menu",
        "pageThemeTemplateId": "2b8d4f60-7a1c-4e3b-9f52-c6d0e8a1b347",
        "pageThemeTemplateName": "Lyon bistro",
        "qrcodeTemplateId": "0d7f4d9c-1aef-4ed4-821b-321a3f9cba1d",
        "qrcodeTemplateName": "Table card",
        "type": "TYPE_OPEN_MEDIA_STEP",
        "workflowStepId": "987fcdeb-a321-45e6-b789-123456789012"
      }
    ],
    "sha256": "b94d27b9934d3e08a52e52d7da7dabfac484efe37a5380ee9088f7ace2efcde9",
    "signedUrl": "https://cdn.linkbreakers.com/media/5f1c2d3e/menu-cover.png?Expires=1773487800&Signature=Qm9uIGFwcGV0aXQ",
    "size": 248311,
    "status": "STATUS_READY",
    "updatedAt": "2026-03-18T16:05:00Z",
    "uploadedBy": "b7e3d1a9-4c2f-4e8b-9a6d-0f5c3e7b1a28",
    "uploadedFrom": "UPLOAD_ORIGIN_QR_CODE_LOGO",
    "usage": "USAGE_CENTRAL_QRCODE_IMAGE",
    "visibility": "VISIBILITY_PRIVATE",
    "workspaceId": "c0d3cafe-5b1e-4d42-a6fd-0c5f5c3962d0"
  }
}
```

### Parameters

`id` string 

path

Required

The ID of the pending media item (UUID), from CreateUpload

`Idempotency-Key` string 

header

A unique value per request, such as a UUID, that makes retrying it safe: a retry with the same key and body returns the first response instead of acting twice.

### Request body

An empty JSON object.

### Response

200

`media` object

The media item, now READY, with a signed URL

Fields: [The media object](#media-object).

Errors answer 4xx or 5xx with the [error object](https://linkbreakers.com/help/api#errors), and `429` past the [rate limit](https://linkbreakers.com/help/api#rate-limits).

Request

```bash
curl -X POST "https://api.linkbreakers.com/v1/media/{id}:complete" \
  -H "Authorization: Bearer $LINKBREAKERS_TOKEN" \
  -H "Content-Type: application/json"
```

Response 200

```json
{
  "media": {
    "createdAt": "2026-03-14T09:30:00Z",
    "fileName": "menu-cover.png",
    "id": "5f1c2d3e-4b5a-6c7d-8e9f-0a1b2c3d4e5f",
    "kind": "KIND_IMAGE",
    "mediaType": "TYPE_CENTRAL_QRCODE_IMAGE",
    "mimeType": "image/png",
    "references": [
      {
        "linkId": "1b9d6bcd-bbfd-4b2d-9b5d-ab8dfbbd4bed",
        "linkName": "Spring menu",
        "pageThemeTemplateId": "2b8d4f60-7a1c-4e3b-9f52-c6d0e8a1b347",
        "pageThemeTemplateName": "Lyon bistro",
        "qrcodeTemplateId": "0d7f4d9c-1aef-4ed4-821b-321a3f9cba1d",
        "qrcodeTemplateName": "Table card",
        "type": "TYPE_OPEN_MEDIA_STEP",
        "workflowStepId": "987fcdeb-a321-45e6-b789-123456789012"
      }
    ],
    "sha256": "b94d27b9934d3e08a52e52d7da7dabfac484efe37a5380ee9088f7ace2efcde9",
    "signedUrl": "https://cdn.linkbreakers.com/media/5f1c2d3e/menu-cover.png?Expires=1773487800&Signature=Qm9uIGFwcGV0aXQ",
    "size": 248311,
    "status": "STATUS_READY",
    "updatedAt": "2026-03-18T16:05:00Z",
    "uploadedBy": "b7e3d1a9-4c2f-4e8b-9a6d-0f5c3e7b1a28",
    "uploadedFrom": "UPLOAD_ORIGIN_QR_CODE_LOGO",
    "usage": "USAGE_CENTRAL_QRCODE_IMAGE",
    "visibility": "VISIBILITY_PRIVATE",
    "workspaceId": "c0d3cafe-5b1e-4d42-a6fd-0c5f5c3962d0"
  }
}
```

### Parameters

`id` string 

path

Required

The ID of the media item whose file is replaced (UUID)

`Idempotency-Key` string 

header

A unique value per request, such as a UUID, that makes retrying it safe: a retry with the same key and body returns the first response instead of acting twice.

### Request body

`fileName` string 

Required

The new file's name. The media takes it once the replacement completes; visitors download the file under it.

`mimeType` string 

Required

The new file's MIME type: image/png, image/jpeg, image/webp, image/svg+xml, application/pdf or video/mp4\. The uploaded bytes must be this format.

`sha256` string

Optional: the new file's SHA-256 digest, 64 hexadecimal characters. When given, a file another media item holds is refused at once with 409 MEDIA\_ALREADY\_EXISTS, the media's own file returns unchanged true, and storage refuses a PUT whose bytes do not match it, so the PUT must carry the x-amz-checksum-sha256 header from uploadHeaders.

`size` integer (int64) 

Required

The new file's exact size in bytes. The PUT must send exactly this many bytes.

### Response

200

`media` object

The media item as it is now, with its references: the uses the replacement will change. It keeps its current file until CompleteReplace.

Fields: [The media object](#media-object).

`replacementId` string

The replacement's id (UUID), which CompleteReplace takes. Empty when unchanged.

`unchanged` boolean

True when the declared sha256 is the media's own file: nothing to upload, nothing changes.

`uploadExpiresAt` string (date-time)

When uploadUrl stops accepting the file

`uploadHeaders` map of string

Headers the upload must carry, exactly as given: Content-Type, and x-amz-checksum-sha256 when sha256 was declared. The Content-Length must equal the declared size.

`uploadMethod` string

The HTTP method to send them with: always PUT. Empty when unchanged.

`uploadUrl` string

Where to send the new file's bytes, directly to storage. Short-lived. Empty when unchanged.

Errors answer 4xx or 5xx with the [error object](https://linkbreakers.com/help/api#errors), and `429` past the [rate limit](https://linkbreakers.com/help/api#rate-limits).

Request

```bash
curl -X POST "https://api.linkbreakers.com/v1/media/{id}/replace-uploads" \
  -H "Authorization: Bearer $LINKBREAKERS_TOKEN" \
  -H "Content-Type: application/json" \
  --data '{
  "fileName": "menu-autumn.pdf",
  "mimeType": "application/pdf",
  "sha256": "9f86d081884c7d659a2feaa0c55ad015a3bf4f1b2b0b822cd15d6c15b0f00a08",
  "size": "7340032"
}'
```

Response 200

```json
{
  "media": {
    "createdAt": "2026-03-14T09:30:00Z",
    "fileName": "menu-cover.png",
    "id": "5f1c2d3e-4b5a-6c7d-8e9f-0a1b2c3d4e5f",
    "kind": "KIND_IMAGE",
    "mediaType": "TYPE_CENTRAL_QRCODE_IMAGE",
    "mimeType": "image/png",
    "references": [
      {
        "linkId": "1b9d6bcd-bbfd-4b2d-9b5d-ab8dfbbd4bed",
        "linkName": "Spring menu",
        "pageThemeTemplateId": "2b8d4f60-7a1c-4e3b-9f52-c6d0e8a1b347",
        "pageThemeTemplateName": "Lyon bistro",
        "qrcodeTemplateId": "0d7f4d9c-1aef-4ed4-821b-321a3f9cba1d",
        "qrcodeTemplateName": "Table card",
        "type": "TYPE_OPEN_MEDIA_STEP",
        "workflowStepId": "987fcdeb-a321-45e6-b789-123456789012"
      }
    ],
    "sha256": "b94d27b9934d3e08a52e52d7da7dabfac484efe37a5380ee9088f7ace2efcde9",
    "signedUrl": "https://cdn.linkbreakers.com/media/5f1c2d3e/menu-cover.png?Expires=1773487800&Signature=Qm9uIGFwcGV0aXQ",
    "size": 248311,
    "status": "STATUS_READY",
    "updatedAt": "2026-03-18T16:05:00Z",
    "uploadedBy": "b7e3d1a9-4c2f-4e8b-9a6d-0f5c3e7b1a28",
    "uploadedFrom": "UPLOAD_ORIGIN_QR_CODE_LOGO",
    "usage": "USAGE_CENTRAL_QRCODE_IMAGE",
    "visibility": "VISIBILITY_PRIVATE",
    "workspaceId": "c0d3cafe-5b1e-4d42-a6fd-0c5f5c3962d0"
  },
  "replacementId": "0b7c2a1e-9d3f-4c55-8e21-6f4a2d9b7c10",
  "unchanged": false,
  "uploadExpiresAt": "2026-03-18T16:20:00Z",
  "uploadHeaders": {
    "Content-Type": "application/pdf",
    "x-amz-checksum-sha256": "n4bQgYhMfWWaL+qgxVrQFaO/TxsrC4Is0V1sFbDwCgg="
  },
  "uploadMethod": "PUT",
  "uploadUrl": "https://storage.example.com/media/5f1c2d3e/menu-autumn.pdf?X-Amz-Expires=900&X-Amz-Signature=3f2a9c7e"
}
```

### Parameters

`id` string 

path

Required

The ID of the media item whose file is replaced (UUID)

`replacementId` string 

path

Required

The replacement's id (UUID), from CreateReplaceUpload

`Idempotency-Key` string 

header

A unique value per request, such as a UUID, that makes retrying it safe: a retry with the same key and body returns the first response instead of acting twice.

### Request body

An empty JSON object.

### Response

200

`detachedReferences` array of object

The uses detached from the media because they keep their own copy of the old file: QR code designs that used it as their logo. They keep showing their current logo.

8 child attributes, the same as [references in the media object](#media-object-references).

`media` object

The media item, same id, holding the new file, with a signed URL and its references

Fields: [The media object](#media-object).

`unchanged` boolean

True when the new file was the media's own: nothing changed

Errors answer 4xx or 5xx with the [error object](https://linkbreakers.com/help/api#errors), and `429` past the [rate limit](https://linkbreakers.com/help/api#rate-limits).

Request

```bash
curl -X POST "https://api.linkbreakers.com/v1/media/{id}/replace-uploads/{replacementId}:complete" \
  -H "Authorization: Bearer $LINKBREAKERS_TOKEN" \
  -H "Content-Type: application/json"
```

Response 200

```json
{
  "detachedReferences": [
    {
      "linkId": "1b9d6bcd-bbfd-4b2d-9b5d-ab8dfbbd4bed",
      "linkName": "Spring menu",
      "pageThemeTemplateId": "2b8d4f60-7a1c-4e3b-9f52-c6d0e8a1b347",
      "pageThemeTemplateName": "Lyon bistro",
      "qrcodeTemplateId": "0d7f4d9c-1aef-4ed4-821b-321a3f9cba1d",
      "qrcodeTemplateName": "Table card",
      "type": "TYPE_OPEN_MEDIA_STEP",
      "workflowStepId": "987fcdeb-a321-45e6-b789-123456789012"
    }
  ],
  "media": {
    "createdAt": "2026-03-14T09:30:00Z",
    "fileName": "menu-cover.png",
    "id": "5f1c2d3e-4b5a-6c7d-8e9f-0a1b2c3d4e5f",
    "kind": "KIND_IMAGE",
    "mediaType": "TYPE_CENTRAL_QRCODE_IMAGE",
    "mimeType": "image/png",
    "references": [
      {
        "linkId": "1b9d6bcd-bbfd-4b2d-9b5d-ab8dfbbd4bed",
        "linkName": "Spring menu",
        "pageThemeTemplateId": "2b8d4f60-7a1c-4e3b-9f52-c6d0e8a1b347",
        "pageThemeTemplateName": "Lyon bistro",
        "qrcodeTemplateId": "0d7f4d9c-1aef-4ed4-821b-321a3f9cba1d",
        "qrcodeTemplateName": "Table card",
        "type": "TYPE_OPEN_MEDIA_STEP",
        "workflowStepId": "987fcdeb-a321-45e6-b789-123456789012"
      }
    ],
    "sha256": "b94d27b9934d3e08a52e52d7da7dabfac484efe37a5380ee9088f7ace2efcde9",
    "signedUrl": "https://cdn.linkbreakers.com/media/5f1c2d3e/menu-cover.png?Expires=1773487800&Signature=Qm9uIGFwcGV0aXQ",
    "size": 248311,
    "status": "STATUS_READY",
    "updatedAt": "2026-03-18T16:05:00Z",
    "uploadedBy": "b7e3d1a9-4c2f-4e8b-9a6d-0f5c3e7b1a28",
    "uploadedFrom": "UPLOAD_ORIGIN_QR_CODE_LOGO",
    "usage": "USAGE_CENTRAL_QRCODE_IMAGE",
    "visibility": "VISIBILITY_PRIVATE",
    "workspaceId": "c0d3cafe-5b1e-4d42-a6fd-0c5f5c3962d0"
  },
  "unchanged": false
}
```

### Parameters

`id` string 

path

Required

The ID of the media item whose file is replaced (UUID)

`Idempotency-Key` string 

header

A unique value per request, such as a UUID, that makes retrying it safe: a retry with the same key and body returns the first response instead of acting twice.

### Request body

`assistantAttachmentId` string

The id of a file the caller attached to their own Assistant conversation. Attachments are short-lived and belong to the member who attached them, in that workspace.

`fileName` string

The name the media takes. Empty takes the attachment's name, or the last segment of the URL's path, or keeps the media's current name.

`url` string

A public https URL the new file is downloaded from, on port 443\. Redirects are followed only to other public https URLs, at most five. The file's kind is read from its bytes.

### Response

200

`detachedReferences` array of object

The uses detached from the media because they keep their own copy of the old file: QR code designs that used it as their logo. They keep showing their current logo.

8 child attributes, the same as [references in the media object](#media-object-references).

`media` object

The media item, same id, holding the new file, with a signed URL and its references

Fields: [The media object](#media-object).

`unchanged` boolean

True when the new file was the media's own: nothing changed

Errors answer 4xx or 5xx with the [error object](https://linkbreakers.com/help/api#errors), and `429` past the [rate limit](https://linkbreakers.com/help/api#rate-limits).

Request

```bash
curl -X POST "https://api.linkbreakers.com/v1/media/{id}/replace:import" \
  -H "Authorization: Bearer $LINKBREAKERS_TOKEN" \
  -H "Content-Type: application/json" \
  --data '{
  "assistantAttachmentId": "7a3d9e2b-4f1c-4b8a-a6d5-1e9c3f7b2d48",
  "fileName": "menu-autumn.pdf",
  "url": "https://example.com/menu-autumn.pdf"
}'
```

Response 200

```json
{
  "detachedReferences": [
    {
      "linkId": "1b9d6bcd-bbfd-4b2d-9b5d-ab8dfbbd4bed",
      "linkName": "Spring menu",
      "pageThemeTemplateId": "2b8d4f60-7a1c-4e3b-9f52-c6d0e8a1b347",
      "pageThemeTemplateName": "Lyon bistro",
      "qrcodeTemplateId": "0d7f4d9c-1aef-4ed4-821b-321a3f9cba1d",
      "qrcodeTemplateName": "Table card",
      "type": "TYPE_OPEN_MEDIA_STEP",
      "workflowStepId": "987fcdeb-a321-45e6-b789-123456789012"
    }
  ],
  "media": {
    "createdAt": "2026-03-14T09:30:00Z",
    "fileName": "menu-cover.png",
    "id": "5f1c2d3e-4b5a-6c7d-8e9f-0a1b2c3d4e5f",
    "kind": "KIND_IMAGE",
    "mediaType": "TYPE_CENTRAL_QRCODE_IMAGE",
    "mimeType": "image/png",
    "references": [
      {
        "linkId": "1b9d6bcd-bbfd-4b2d-9b5d-ab8dfbbd4bed",
        "linkName": "Spring menu",
        "pageThemeTemplateId": "2b8d4f60-7a1c-4e3b-9f52-c6d0e8a1b347",
        "pageThemeTemplateName": "Lyon bistro",
        "qrcodeTemplateId": "0d7f4d9c-1aef-4ed4-821b-321a3f9cba1d",
        "qrcodeTemplateName": "Table card",
        "type": "TYPE_OPEN_MEDIA_STEP",
        "workflowStepId": "987fcdeb-a321-45e6-b789-123456789012"
      }
    ],
    "sha256": "b94d27b9934d3e08a52e52d7da7dabfac484efe37a5380ee9088f7ace2efcde9",
    "signedUrl": "https://cdn.linkbreakers.com/media/5f1c2d3e/menu-cover.png?Expires=1773487800&Signature=Qm9uIGFwcGV0aXQ",
    "size": 248311,
    "status": "STATUS_READY",
    "updatedAt": "2026-03-18T16:05:00Z",
    "uploadedBy": "b7e3d1a9-4c2f-4e8b-9a6d-0f5c3e7b1a28",
    "uploadedFrom": "UPLOAD_ORIGIN_QR_CODE_LOGO",
    "usage": "USAGE_CENTRAL_QRCODE_IMAGE",
    "visibility": "VISIBILITY_PRIVATE",
    "workspaceId": "c0d3cafe-5b1e-4d42-a6fd-0c5f5c3962d0"
  },
  "unchanged": false
}
```

### Parameters

`Idempotency-Key` string 

header

A unique value per request, such as a UUID, that makes retrying it safe: a retry with the same key and body returns the first response instead of acting twice.

### Request body

`fileName` string 

Required

The image's file name

`mimeType` string 

Required

The image's MIME type: image/png, image/jpeg, image/webp or image/svg+xml. The uploaded bytes must be this format.

`size` integer (int64) 

Required

The image's exact size in bytes, at most 3 MB (3145728). The PUT must send exactly this many bytes.

### Response

200

`media` object

The pending upload. Its id is what CompletePublicUpload and a QR code design's centralImageMediaId take.

Fields: [The media object](#media-object).

`uploadExpiresAt` string (date-time)

When uploadUrl stops accepting the image

`uploadHeaders` map of string

Headers the upload must carry, exactly as given. The Content-Length must equal the declared size.

`uploadMethod` string

The HTTP method to send them with: always PUT

`uploadUrl` string

Where to send the image's bytes, directly to storage. Short-lived.

Errors answer 4xx or 5xx with the [error object](https://linkbreakers.com/help/api#errors), and `429` past the [rate limit](https://linkbreakers.com/help/api#rate-limits).

Request

```bash
curl -X POST "https://api.linkbreakers.com/v1/media/public-uploads" \
  -H "Content-Type: application/json" \
  --data '{
  "fileName": "cafe-logo.png",
  "mimeType": "image/png",
  "size": "48213"
}'
```

Response 200

```json
{
  "media": {
    "createdAt": "2026-03-14T09:30:00Z",
    "fileName": "menu-cover.png",
    "id": "5f1c2d3e-4b5a-6c7d-8e9f-0a1b2c3d4e5f",
    "kind": "KIND_IMAGE",
    "mediaType": "TYPE_CENTRAL_QRCODE_IMAGE",
    "mimeType": "image/png",
    "references": [
      {
        "linkId": "1b9d6bcd-bbfd-4b2d-9b5d-ab8dfbbd4bed",
        "linkName": "Spring menu",
        "pageThemeTemplateId": "2b8d4f60-7a1c-4e3b-9f52-c6d0e8a1b347",
        "pageThemeTemplateName": "Lyon bistro",
        "qrcodeTemplateId": "0d7f4d9c-1aef-4ed4-821b-321a3f9cba1d",
        "qrcodeTemplateName": "Table card",
        "type": "TYPE_OPEN_MEDIA_STEP",
        "workflowStepId": "987fcdeb-a321-45e6-b789-123456789012"
      }
    ],
    "sha256": "b94d27b9934d3e08a52e52d7da7dabfac484efe37a5380ee9088f7ace2efcde9",
    "signedUrl": "https://cdn.linkbreakers.com/media/5f1c2d3e/menu-cover.png?Expires=1773487800&Signature=Qm9uIGFwcGV0aXQ",
    "size": 248311,
    "status": "STATUS_READY",
    "updatedAt": "2026-03-18T16:05:00Z",
    "uploadedBy": "b7e3d1a9-4c2f-4e8b-9a6d-0f5c3e7b1a28",
    "uploadedFrom": "UPLOAD_ORIGIN_QR_CODE_LOGO",
    "usage": "USAGE_CENTRAL_QRCODE_IMAGE",
    "visibility": "VISIBILITY_PRIVATE",
    "workspaceId": "c0d3cafe-5b1e-4d42-a6fd-0c5f5c3962d0"
  },
  "uploadExpiresAt": "2026-03-14T09:45:00Z",
  "uploadHeaders": {
    "Content-Type": "image/png"
  },
  "uploadMethod": "PUT",
  "uploadUrl": "https://storage.example.com/media/public/0e5b7c2d.png?X-Amz-Expires=900&X-Amz-Signature=5c1e7a9d"
}
```

### Parameters

`id` string 

path

Required

The id of the pending public upload (UUID), from CreatePublicUpload

`Idempotency-Key` string 

header

A unique value per request, such as a UUID, that makes retrying it safe: a retry with the same key and body returns the first response instead of acting twice.

### Request body

An empty JSON object.

### Response

200

`media` object

The upload, now READY, with a signed URL to preview it. Pass its id as a QR code design's centralImageMediaId within the hour.

Fields: [The media object](#media-object).

Errors answer 4xx or 5xx with the [error object](https://linkbreakers.com/help/api#errors), and `429` past the [rate limit](https://linkbreakers.com/help/api#rate-limits).

Request

```bash
curl -X POST "https://api.linkbreakers.com/v1/media/public-uploads/{id}:complete" \
  -H "Content-Type: application/json"
```

Response 200

```json
{
  "media": {
    "createdAt": "2026-03-14T09:30:00Z",
    "fileName": "menu-cover.png",
    "id": "5f1c2d3e-4b5a-6c7d-8e9f-0a1b2c3d4e5f",
    "kind": "KIND_IMAGE",
    "mediaType": "TYPE_CENTRAL_QRCODE_IMAGE",
    "mimeType": "image/png",
    "references": [
      {
        "linkId": "1b9d6bcd-bbfd-4b2d-9b5d-ab8dfbbd4bed",
        "linkName": "Spring menu",
        "pageThemeTemplateId": "2b8d4f60-7a1c-4e3b-9f52-c6d0e8a1b347",
        "pageThemeTemplateName": "Lyon bistro",
        "qrcodeTemplateId": "0d7f4d9c-1aef-4ed4-821b-321a3f9cba1d",
        "qrcodeTemplateName": "Table card",
        "type": "TYPE_OPEN_MEDIA_STEP",
        "workflowStepId": "987fcdeb-a321-45e6-b789-123456789012"
      }
    ],
    "sha256": "b94d27b9934d3e08a52e52d7da7dabfac484efe37a5380ee9088f7ace2efcde9",
    "signedUrl": "https://cdn.linkbreakers.com/media/5f1c2d3e/menu-cover.png?Expires=1773487800&Signature=Qm9uIGFwcGV0aXQ",
    "size": 248311,
    "status": "STATUS_READY",
    "updatedAt": "2026-03-18T16:05:00Z",
    "uploadedBy": "b7e3d1a9-4c2f-4e8b-9a6d-0f5c3e7b1a28",
    "uploadedFrom": "UPLOAD_ORIGIN_QR_CODE_LOGO",
    "usage": "USAGE_CENTRAL_QRCODE_IMAGE",
    "visibility": "VISIBILITY_PRIVATE",
    "workspaceId": "c0d3cafe-5b1e-4d42-a6fd-0c5f5c3962d0"
  }
}
```

### Parameters

`Idempotency-Key` string 

header

A unique value per request, such as a UUID, that makes retrying it safe: a retry with the same key and body returns the first response instead of acting twice.

### Request body

`fileName` string 

Required

The name of the file, shown in the media library and as the file name visitors download

`mimeType` string 

Required

The file's MIME type: image/png, image/jpeg, image/webp, image/svg+xml, application/pdf or video/mp4\. The uploaded bytes must be this format.

`sha256` string

Optional: the file's SHA-256 digest, 64 hexadecimal characters. When given, a file the workspace already holds is refused at once with 409 MEDIA\_ALREADY\_EXISTS (metadata existingMediaId and existingFileName), and storage refuses a PUT whose bytes do not match it, so the PUT must carry the x-amz-checksum-sha256 header from uploadHeaders. When omitted, the server hashes the file on completion instead.

`size` integer (int64) 

Required

The file's exact size in bytes. The PUT must send exactly this many bytes.

`uploadedFrom` enum

Where the media was uploaded from, so pickers can show a section's own uploads first. It does not limit where the media can be used; see references for where it is used. Unset means UPLOAD\_ORIGIN\_MEDIA\_LIBRARY.

Allowed values

* `UPLOAD_ORIGIN_MEDIA_LIBRARY` Uploaded from the media library itself
* `UPLOAD_ORIGIN_QR_CODE_LOGO` Uploaded while picking a QR code's logo
* `UPLOAD_ORIGIN_BACKGROUND_COVER` Uploaded while picking a page theme's background cover
* `UPLOAD_ORIGIN_BADGE` Uploaded while picking a page theme's badge
* `UPLOAD_ORIGIN_FOOTER_LOGO` Uploaded while picking a page theme's footer logo
* `UPLOAD_ORIGIN_OPEN_MEDIA` Uploaded while picking the media an Open media step opens
* `UPLOAD_ORIGIN_ASSISTANT` Imported by the Assistant, from a file attached to a conversation or a URL
* `UPLOAD_ORIGIN_UNSPECIFIED` Not set. Uploads that do not say where they come from are recorded as UPLOAD\_ORIGIN\_MEDIA\_LIBRARY.

`usage` enum

Deprecated: an upload no longer needs to say what the media is for, and this no longer limits the kinds or sizes accepted. Optional, accepted for compatibility and recorded as uploadedFrom when uploadedFrom is not set.

Allowed values

* `USAGE_CENTRAL_QRCODE_IMAGE` The logo in the center of a QR code
* `USAGE_BACKGROUND_COVER` A page theme's background cover
* `USAGE_BADGE` A page theme's badge image
* `USAGE_FOOTER_LOGO` A page theme's footer logo
* `USAGE_OPEN_MEDIA` Media an Open media workflow step hands to visitors: a PDF menu or brochure, an image or an MP4 video

`visibility` enum

The visibility of the media. If not provided, the media file will be private.

Allowed values

* `VISIBILITY_PUBLIC` The media visibility is public
* `VISIBILITY_PRIVATE` The media visibility is private

### Response

200

`media` object

The pending media item. Its id is what CompleteUpload takes.

Fields: [The media object](#media-object).

`uploadExpiresAt` string (date-time)

When uploadUrl stops accepting the file

`uploadHeaders` map of string

Headers the upload must carry, exactly as given: Content-Type, and x-amz-checksum-sha256 when sha256 was declared. The Content-Length must equal the declared size.

`uploadMethod` string

The HTTP method to send them with: always PUT

`uploadUrl` string

Where to send the file's bytes, directly to storage. Short-lived.

Errors answer 4xx or 5xx with the [error object](https://linkbreakers.com/help/api#errors), and `429` past the [rate limit](https://linkbreakers.com/help/api#rate-limits).

Request

```bash
curl -X POST "https://api.linkbreakers.com/v1/media/uploads" \
  -H "Authorization: Bearer $LINKBREAKERS_TOKEN" \
  -H "Content-Type: application/json" \
  --data '{
  "fileName": "menu.pdf",
  "mimeType": "application/pdf",
  "sha256": "9f86d081884c7d659a2feaa0c55ad015a3bf4f1b2b0b822cd15d6c15b0f00a08",
  "size": "7340032",
  "uploadedFrom": "UPLOAD_ORIGIN_OPEN_MEDIA",
  "usage": "USAGE_OPEN_MEDIA",
  "visibility": "VISIBILITY_PRIVATE"
}'
```

Response 200

```json
{
  "media": {
    "createdAt": "2026-03-14T09:30:00Z",
    "fileName": "menu-cover.png",
    "id": "5f1c2d3e-4b5a-6c7d-8e9f-0a1b2c3d4e5f",
    "kind": "KIND_IMAGE",
    "mediaType": "TYPE_CENTRAL_QRCODE_IMAGE",
    "mimeType": "image/png",
    "references": [
      {
        "linkId": "1b9d6bcd-bbfd-4b2d-9b5d-ab8dfbbd4bed",
        "linkName": "Spring menu",
        "pageThemeTemplateId": "2b8d4f60-7a1c-4e3b-9f52-c6d0e8a1b347",
        "pageThemeTemplateName": "Lyon bistro",
        "qrcodeTemplateId": "0d7f4d9c-1aef-4ed4-821b-321a3f9cba1d",
        "qrcodeTemplateName": "Table card",
        "type": "TYPE_OPEN_MEDIA_STEP",
        "workflowStepId": "987fcdeb-a321-45e6-b789-123456789012"
      }
    ],
    "sha256": "b94d27b9934d3e08a52e52d7da7dabfac484efe37a5380ee9088f7ace2efcde9",
    "signedUrl": "https://cdn.linkbreakers.com/media/5f1c2d3e/menu-cover.png?Expires=1773487800&Signature=Qm9uIGFwcGV0aXQ",
    "size": 248311,
    "status": "STATUS_READY",
    "updatedAt": "2026-03-18T16:05:00Z",
    "uploadedBy": "b7e3d1a9-4c2f-4e8b-9a6d-0f5c3e7b1a28",
    "uploadedFrom": "UPLOAD_ORIGIN_QR_CODE_LOGO",
    "usage": "USAGE_CENTRAL_QRCODE_IMAGE",
    "visibility": "VISIBILITY_PRIVATE",
    "workspaceId": "c0d3cafe-5b1e-4d42-a6fd-0c5f5c3962d0"
  },
  "uploadExpiresAt": "2026-03-14T09:45:00Z",
  "uploadHeaders": {
    "Content-Type": "application/pdf",
    "x-amz-checksum-sha256": "n4bQgYhMfWWaL+qgxVrQFaO/TxsrC4Is0V1sFbDwCgg="
  },
  "uploadMethod": "PUT",
  "uploadUrl": "https://storage.example.com/media/5f1c2d3e/menu.pdf?X-Amz-Expires=900&X-Amz-Signature=8b41d0f6"
}
```

### Parameters

`id` string 

path

Required

The ID of the media file to delete (UUID)

### Response

200

An empty JSON object.

Errors answer 4xx or 5xx with the [error object](https://linkbreakers.com/help/api#errors), and `429` past the [rate limit](https://linkbreakers.com/help/api#rate-limits).

Request

```bash
curl -X DELETE "https://api.linkbreakers.com/v1/media/{id}" \
  -H "Authorization: Bearer $LINKBREAKERS_TOKEN"
```

---

Source: https://linkbreakers.com/help/api/media
