---
title: "Pages a product's own files with their access, in the seller's order unless sorted by name, type or tier."
---

> 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 › product

`GET /v1/stores/{store}/products/{product}/files`

## Authentication

Requires one of the following:

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

## Path parameters

- `store` (`listProductFiles.path.store`; string, required) — A hostname of the store.
- `product` (`listProductFiles.path.product`; string, required) — An id, or `slug:<slug>`.
  - minLength 1

## Query parameters

- `filter` (`listProductFiles.query.filter`; object, optional) — `filter[<field>]=<value>` is an equality, `filter[<field>][<op>]=<value>` names the operator; `in` repeats the parameter.
- `sort` (`listProductFiles.query.sort`; string, optional) — Sorted by name or type, rows without a value come last either way.
  - one of `"position"`, `"name"`, `"type"`, `"tier"`
- `direction` (`listProductFiles.query.direction`; string, optional)
  - one of `"asc"`, `"desc"`
- `limit` (`listProductFiles.query.limit`; integer, optional)
  - min 1; max 100
- `cursor` (`listProductFiles.query.cursor`; string, optional)
  - maxLength 8192
- `count` (`listProductFiles.query.count`; boolean, optional)
- `preview` (`listProductFiles.query.preview`; string, optional) — A token a seller made for the product's page or one of its entries, which lists an unpublished product's files.
  - minLength 1; maxLength 128

## Code samples

### cURL

```bash
curl --request GET \
  --url 'https://api.sherpo.io/customer/v1/stores/<store>/products/<product>/files' \
  --header 'Authorization: Bearer <token>'
```

### TypeScript

```typescript
const url = 'https://api.sherpo.io/customer/v1/stores/<store>/products/<product>/files';
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>/products/<product>/files"

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

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

print(response.text)
```

## Responses

### 200

Pages a product's own files with their access, in the seller's order unless sorted by name, type or tier.

#### Example

```json
{
  "items": [
    {
      "watermark": "string",
      "requires": {
        "kind": "everyone"
      },
      "download_requires": {
        "kind": "everyone"
      },
      "requires_any": [
        {
          "product_id": "string",
          "rank": 0
        }
      ],
      "tracks": [
        {
          "id": "string",
          "label": "string",
          "language": "string",
          "generated": true
        }
      ],
      "outputs": [
        "string"
      ],
      "access": "string",
      "id": "string",
      "role": "string",
      "delivery": "string",
      "preview_only": true,
      "from_body": true,
      "release_file": true,
      "position": 0,
      "asset": {
        "id": "string",
        "name": "string",
        "title": "string",
        "ext": "string",
        "description": "string",
        "mime": "string",
        "bytes": 0,
        "enforcement": "string",
        "locator": "string",
        "metadata": {
          "width": 0,
          "height": 0,
          "duration": 0,
          "pages": 0
        },
        "status": "string"
      }
    }
  ],
  "cursor": "string",
  "total": 0,
  "facets": {
    "property1": {
      "property1": 0,
      "property2": 0
    },
    "property2": {
      "property1": 0,
      "property2": 0
    }
  }
}
```

- `items` (`listProductFiles.response.200.items`; array<object>, required)
  - `watermark` (`listProductFiles.response.200.items.watermark`; any of, required) — How its downloads are marked for their reader: `basic` a line at the foot of each page of a PDF or a protected sheet in a spreadsheet, `full` (PDFs only) a stamp across every page too; null for a file never marked.
    - any of: `string`, `null`
  - `requires` (`listProductFiles.response.200.items.requires`; any of, required) — What opens it, the same for every reader: anyone, a tier's rank or higher of the product it names, or nobody.
    - any of: `object`, `object`, `object`
  - `download_requires` (`listProductFiles.response.200.items.download_requires`; any of, required) — What opens downloading it where that asks more than `requires`: a lesson's slides bound as a download always, as they show in its place; null otherwise.
    - any of: `object`, `object`, `object`, `null`
  - `requires_any` (`listProductFiles.response.200.items.requires_any`; any of, required) — The products its rules name that a visitor reaches, each at a tier's rank, any one of which opens it past `requires`; null where no rule decides it.
    - any of: `array<object>`, `null`
  - `tracks` (`listProductFiles.response.200.items.tracks`; array<object>, required)
    - `id` (`listProductFiles.response.200.items.tracks.id`; string, required)
    - `label` (`listProductFiles.response.200.items.tracks.label`; any of, required)
      - any of: `string`, `null`
    - `language` (`listProductFiles.response.200.items.tracks.language`; any of, required)
      - any of: `string`, `null`
    - `generated` (`listProductFiles.response.200.items.tracks.generated`; boolean, required) — Subtitles the store generated with AI from the video's audio.
  - `outputs` (`listProductFiles.response.200.items.outputs`; array<string>, required) — The published AI outputs `getMediaOutputs` reads beside the video or audio file.
  - `access` (`listProductFiles.response.200.items.access`; string, required)
  - `id` (`listProductFiles.response.200.items.id`; string, required)
  - `role` (`listProductFiles.response.200.items.role`; string, required)
  - `delivery` (`listProductFiles.response.200.items.delivery`; string, required)
  - `preview_only` (`listProductFiles.response.200.items.preview_only`; boolean, required)
  - `from_body` (`listProductFiles.response.200.items.from_body`; boolean, required) — Named by its target's body text, rather than the target's own media (a lesson's video or slides).
  - `release_file` (`listProductFiles.response.200.items.release_file`; boolean, required) — One of a software release's files, which a product read lists after the product's own while the release is current.
  - `position` (`listProductFiles.response.200.items.position`; number, required)
  - `asset` (`listProductFiles.response.200.items.asset`; object, required)
    - `id` (`listProductFiles.response.200.items.asset.id`; string, required)
    - `name` (`listProductFiles.response.200.items.asset.name`; any of, required)
      - any of: `string`, `null`
    - `title` (`listProductFiles.response.200.items.asset.title`; any of, required)
      - any of: `string`, `null`
    - `ext` (`listProductFiles.response.200.items.asset.ext`; any of, required)
      - any of: `string`, `null`
    - `description` (`listProductFiles.response.200.items.asset.description`; any of, required)
      - any of: `string`, `null`
    - `mime` (`listProductFiles.response.200.items.asset.mime`; any of, required)
      - any of: `string`, `null`
    - `bytes` (`listProductFiles.response.200.items.asset.bytes`; any of, required) — The file's size in bytes, null when it has none or is withheld.
      - any of: `number`, `null`
    - `enforcement` (`listProductFiles.response.200.items.asset.enforcement`; string, required)
    - `locator` (`listProductFiles.response.200.items.asset.locator`; any of, required)
      - any of: `string`, `null`
    - `metadata` (`listProductFiles.response.200.items.asset.metadata`; object, required)
      - `width` (`listProductFiles.response.200.items.asset.metadata.width`; any of, required)
        - any of: `number`, `null`
      - `height` (`listProductFiles.response.200.items.asset.metadata.height`; any of, required)
        - any of: `number`, `null`
      - `duration` (`listProductFiles.response.200.items.asset.metadata.duration`; any of, required)
        - any of: `number`, `null`
      - `pages` (`listProductFiles.response.200.items.asset.metadata.pages`; any of, required)
        - any of: `number`, `null`
    - `status` (`listProductFiles.response.200.items.asset.status`; string, required)
- `cursor` (`listProductFiles.response.200.cursor`; any of, required)
  - any of: `string`, `null`
- `total` (`listProductFiles.response.200.total`; number, optional)
- `facets` (`listProductFiles.response.200.facets`; map<map<number>>, optional)

### 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` (`listProductFiles.response.default.type`; string, required)
  - format `uri`
- `title` (`listProductFiles.response.default.title`; string, required)
- `status` (`listProductFiles.response.default.status`; integer, required)
- `detail` (`listProductFiles.response.default.detail`; string, required)
- `code` (`listProductFiles.response.default.code`; string, optional)
- `context` (`listProductFiles.response.default.context`; object, optional)
- `reached_core` (`listProductFiles.response.default.reached_core`; boolean, optional)
- `core_answer` (`listProductFiles.response.default.core_answer`; string, optional)


Source: https://docs.sherpo.io/customer-api/reference/list-product-files/index.md
