---
title: "Reads a video's or audio file's published chapters, summary and transcript, where the customer may play it."
---

> Documentation Index
> Fetch the complete documentation index at: https://docs.sherpo.io/llms.txt
> Use this file to discover all available pages before exploring further.

Path: Sherpo customer API › media

`GET /v1/stores/{store}/media_outputs`

## Authentication

Requires one of the following:

- `bearer`, http, header `Authorization`, scopes: `read`
- `publishableKey`, apiKey, in header, header `Publishable-Key`

## Path parameters

- `store` (`getMediaOutputs.path.store`; string, required) — A hostname of the store.

## Query parameters

- `attachment` (`getMediaOutputs.query.attachment`; string, required)
  - minLength 1; maxLength 512
- `kinds` (`getMediaOutputs.query.kinds`; array<string>, optional) — The outputs to read, each once; every one when none are named.
- `preview` (`getMediaOutputs.query.preview`; string, optional) — A token a seller made for a product's or a page's page, which opens the files its read lists unpublished, gated as ever.
  - minLength 1; maxLength 128

## Code samples

### cURL

```bash
curl --request GET \
  --url 'https://api.sherpo.io/customer/v1/stores/<store>/media_outputs?attachment=string' \
  --header 'Authorization: Bearer <token>'
```

### TypeScript

```typescript
const url = 'https://api.sherpo.io/customer/v1/stores/<store>/media_outputs?attachment=string';
const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};

fetch(url, options)
  .then(res => res.json())
  .then(json => console.log(json))
  .catch(err => console.error(err));
```

### Python

```python
import requests

url = "https://api.sherpo.io/customer/v1/stores/<store>/media_outputs?attachment=string"

headers = {"Authorization": "Bearer <token>"}

response = requests.get(url, headers=headers)

print(response.text)
```

## Responses

### 200

Reads a video's or audio file's published chapters, summary and transcript, where the customer may play it.

#### Example

```json
{
  "unreadable": [
    "string"
  ],
  "chapters": [
    {
      "start": 86400,
      "title": "string"
    }
  ],
  "summary": {
    "summary": "string",
    "key_points": [
      "string"
    ]
  },
  "transcript": "string"
}
```

- `unreadable` (`getMediaOutputs.response.200.unreadable`; array<string>, required) — The published outputs asked for that could not be read: some a later read may find, some only the merchant's rewrite.
- `chapters` (`getMediaOutputs.response.200.chapters`; any of, required)
  - any of: `array<object>`, `null`
- `summary` (`getMediaOutputs.response.200.summary`; any of, required)
  - any of: `object`, `null`
- `transcript` (`getMediaOutputs.response.200.transcript`; any of, required) — Plain text, its paragraphs apart by a blank line.
  - any of: `string`, `null`

### default

A problem; see https://api.sherpo.io/customer/docs/errors.

#### Example

```json
{
  "type": "http://example.com",
  "title": "string",
  "status": 0,
  "detail": "string",
  "code": "string",
  "context": {},
  "reached_core": true,
  "core_answer": "string"
}
```

- `type` (`getMediaOutputs.response.default.type`; string, required)
  - format `uri`
- `title` (`getMediaOutputs.response.default.title`; string, required)
- `status` (`getMediaOutputs.response.default.status`; integer, required)
- `detail` (`getMediaOutputs.response.default.detail`; string, required)
- `code` (`getMediaOutputs.response.default.code`; string, optional)
- `context` (`getMediaOutputs.response.default.context`; object, optional)
- `reached_core` (`getMediaOutputs.response.default.reached_core`; boolean, optional)
- `core_answer` (`getMediaOutputs.response.default.core_answer`; string, optional)


Source: https://docs.sherpo.io/customer-api/reference/get-media-outputs/index.md
