---
title: "Reads one of a video's or audio file's AI outputs with its content."
---

> 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 merchant API › file

`GET /v1/stores/{store}/assets/{asset}/output`

## Authentication

- `bearer`, http, header `Authorization`, scopes: `file:read`

## Path parameters

- `store` (`getMediaOutput.path.store`; string, required) — The store's id.
- `asset` (`getMediaOutput.path.asset`; string, required)
  - minLength 1

## Query parameters

- `kind` (`getMediaOutput.query.kind`; string, required)
  - one of `"summary"`, `"chapters"`, `"transcript"`, `"subtitles"`

## Code samples

### cURL

```bash
curl --request GET \
  --url 'https://api.sherpo.io/merchant/v1/stores/<store>/assets/<asset>/output?kind=summary' \
  --header 'Authorization: Bearer <token>'
```

### TypeScript

```typescript
const url = 'https://api.sherpo.io/merchant/v1/stores/<store>/assets/<asset>/output?kind=summary';
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/merchant/v1/stores/<store>/assets/<asset>/output?kind=summary"

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

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

print(response.text)
```

## Responses

### 200

Reads one of a video's or audio file's AI outputs with its content.

#### Example

```json
{
  "content": {
    "cues": [
      {
        "start": 86400,
        "end": 86400,
        "text": "string"
      }
    ]
  },
  "unreadable": true,
  "truncated": true,
  "kind": "string",
  "asset_id": "string",
  "status": "string",
  "has_content": true,
  "revision": 0,
  "language": "string",
  "reason": "string",
  "bytes": 0,
  "deadline": "string",
  "updated_at": "string",
  "published_at": "string",
  "created_at": "string"
}
```

- `content` (`getMediaOutput.response.200.content`; any of, required)
  - any of: `object`, `object`, `object`, `object`, `null`
- `unreadable` (`getMediaOutput.response.200.unreadable`; boolean, required) — Whether the stored content is not what an edit may save, so `content` is null though `has_content` holds.
- `truncated` (`getMediaOutput.response.200.truncated`; boolean, required) — Whether `content` holds less than the stored subtitles (cues left out or texts cut), so saving it drops the rest.
- `kind` (`getMediaOutput.response.200.kind`; string, required)
- `asset_id` (`getMediaOutput.response.200.asset_id`; string, required)
- `status` (`getMediaOutput.response.200.status`; string, required)
- `has_content` (`getMediaOutput.response.200.has_content`; boolean, required) — Whether content landed, which a run still generating or one that failed may keep from before.
- `revision` (`getMediaOutput.response.200.revision`; number, required) — The file's revision the content came from, or the running generation reads.
- `language` (`getMediaOutput.response.200.language`; any of, required)
  - any of: `string`, `null`
- `reason` (`getMediaOutput.response.200.reason`; any of, required)
  - any of: `string`, `null`
- `bytes` (`getMediaOutput.response.200.bytes`; any of, required) — The output's size in bytes; null when it is charged nothing.
  - any of: `number`, `null`
- `deadline` (`getMediaOutput.response.200.deadline`; any of, required)
  - any of: `string`, `null`
- `updated_at` (`getMediaOutput.response.200.updated_at`; any of, required)
  - any of: `string`, `null`
- `published_at` (`getMediaOutput.response.200.published_at`; any of, required)
  - any of: `string`, `null`
- `created_at` (`getMediaOutput.response.200.created_at`; any of, required)
  - any of: `string`, `null`

### default

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

#### Example

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

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


Source: https://docs.sherpo.io/merchant-api/reference/get-media-output/index.md
