Get Shareable Link Media
# Get Shareable Link Media
Retrieves all media items (from direct links and folders) associated with a shareable link with pagination, filtering, and sorting
GET
/api/v1/{app_id}/shareable-links/{token}/media
PurposeRetrieves all media items (from direct links and folders) associated with a shareable link with pagination, filtering, and sorting
Required inputstoken path
Primary response200 ยท Shareable link media retrieved successfully
Operation keydam-api:GET:/api/v1/{app_id}/shareable-links/{token}/media
## API ownership
- API family: DAM public reads
- Best for: Public asset-library folder, media, facet, and shareable-link reads. Use Management API DAM routes for authenticated administration.
- Guide route: [/media/dam/latest](/media/dam/latest)
The OpenAPI contract defines the method, path, parameters, request body, and responses for this operation.
## Operation
- Method: `GET`
- Path: `/api/v1/{app_id}/shareable-links/{token}/media`
- Summary: Get Shareable Link Media
- Description: Retrieves all media items (from direct links and folders) associated with a shareable link with pagination, filtering, and sorting
- OpenAPI contract:
dam-api
- Operation ID: Not documented in the OpenAPI contract.
- Stable operation key: `dam-api:GET:/api/v1/{app_id}/shareable-links/{token}/media`
Operation key uses API family, method, and path because this OpenAPI contract does not publish an operation ID.
## Parameters
| Name | In | Required | Type | Description |
| --- | --- | --- | --- | --- |
| token | path | Yes | string | Shareable Link Token |
| page | query | No | integer | Page number (default: 1) |
| per_page | query | No | integer | Items per page (default: 20, max: 100) |
| type | query | No | string | Filter by type: image, video, file, all (default: all) |
| sort_by | query | No | string | Sort field: name, created_at, updated_at, type (default: created_at) |
| sort_order | query | No | string | Sort order: asc, desc (default: desc) |
| attributes | query | No | string[] | Filter by attribute(s). Repeat the query parameter once per filter, each in the form template_key/attribute_key. Example: ?attributes=color/red&attributes=size/large |
## Request body
Not documented in the OpenAPI contract.
## Responses
| Status | Description | Content |
| --- | --- | --- |
| 200 | Shareable link media retrieved successfully | application/json (object) |
| 400 | Invalid request | application/json (object) |
| 404 | Shareable link not found | application/json (object) |
| 500 | Internal server error | application/json (object) |
### 200 - object
#### Shareable Link Media Response
| Property | Type | Required | Details |
| --- | --- | --- | --- |
| `data` | object[] | No | - |
| `pagination` | object | No | - |
| `success` | boolean | No | - |
##### Media Item
| Property | Type | Required | Details |
| --- | --- | --- | --- |
| `alt_text` | string | No | - |
| `attributes` | object[] | No | - |
| `blurhash` | string | No | - |
| `copyright` | string | No | - |
| `created_at` | string | No | - |
| `custom` | integer[] | No | - |
| `description` | string | No | - |
| `file_type` | string | No | - |
| `folder` | object | No | - |
| `id` | string | No | - |
| `status` | string | No | - |
| `title` | string | No | - |
| `translations` | object | No | - |
| `type` | string | No | - |
| `updated_at` | string | No | - |
| `url` | string | No | - |
| `variants` | object[] | No | - |
##### Attribute
| Property | Type | Required | Details |
| --- | --- | --- | --- |
| `description` | string | No | - |
| `id` | string | No | - |
| `key` | string | No | - |
| `name` | string | No | - |
| `values` | object | No | - |
##### Folder Ref
| Property | Type | Required | Details |
| --- | --- | --- | --- |
| `id` | string | No | - |
| `name` | string | No | - |
| `public` | boolean | No | - |
| `slug` | string | No | - |
##### Video Variant
| Property | Type | Required | Details |
| --- | --- | --- | --- |
| `created_at` | string | No | - |
| `format` | string | No | - |
| `height` | integer | No | - |
| `id` | string | No | - |
| `updated_at` | string | No | - |
| `url` | string | No | - |
| `width` | integer | No | - |
##### Page Info
| Property | Type | Required | Details |
| --- | --- | --- | --- |
| `page` | integer | No | - |
| `per_page` | integer | No | - |
| `total_items` | integer | No | - |
| `total_pages` | integer | No | - |
Generated example (synthetic)
```json
{
"data": [
{
"alt_text": "string",
"attributes": [
{
"description": null,
"id": null,
"key": null,
"name": null,
"values": null
}
],
"blurhash": "string",
"copyright": "string",
"created_at": "string",
"custom": [
0
],
"description": "string",
"file_type": "string",
"folder": {
"id": "string",
"name": "string",
"public": false,
"slug": "string"
},
"id": "string",
"status": "string",
"title": "string",
"translations": {},
"type": "string",
"updated_at": "string",
"url": "string",
"variants": [
{
"created_at": null,
"format": null,
"height": null,
"id": null,
"updated_at": null,
"url": null,
"width": null
}
]
}
],
"pagination": {
"page": 0,
"per_page": 0,
"total_items": 0,
"total_pages": 0
},
"success": false
}
```
### 400 - object
#### Error
| Property | Type | Required | Details |
| --- | --- | --- | --- |
| `details` | string[] | No | - |
| `error` | string | No | - |
**Generated example (synthetic):**
```json
{
"details": [
"string"
],
"error": "string"
}
```
### 404 - object
#### Error
| Property | Type | Required | Details |
| --- | --- | --- | --- |
| `details` | string[] | No | - |
| `error` | string | No | - |
**Generated example (synthetic):**
```json
{
"details": [
"string"
],
"error": "string"
}
```
### 500 - object
#### Error
| Property | Type | Required | Details |
| --- | --- | --- | --- |
| `details` | string[] | No | - |
| `error` | string | No | - |
**Generated example (synthetic):**
```json
{
"details": [
"string"
],
"error": "string"
}
```
## Contract identity
Use these fields to confirm you are implementing the intended endpoint contract.
- API family: DAM public reads
- Method: `GET`
- Path: `/api/v1/{app_id}/shareable-links/{token}/media`
- Operation ID: Not documented in the OpenAPI contract.
- Stable operation key: `dam-api:GET:/api/v1/{app_id}/shareable-links/{token}/media`
- OpenAPI tag: Shareable Links
- OpenAPI summary: Get Shareable Link Media