---
title: "Reads one entry with its access, its body too when asked."
---

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

`GET /v1/stores/{store}/products/{product}/entries/{entry}`

## Authentication

Requires one of the following:

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

## Path parameters

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

## Query parameters

- `preview` (`getEntry.query.preview`; string, optional) — A token a seller made for the entry's product's page, which opens a published entry of the product unpublished, gated as ever, or for the entry itself, which opens it unpublished too as its staged body shows it; with it, any entry it does not open is `not_found` `preview`.
  - minLength 1; maxLength 128
- `include` (`getEntry.query.include`; array<string>, optional) — What else the read answers: `body` reads the body whole, as `readBody` does, and fails the read where `readBody` would.

## Code samples

### cURL

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

### TypeScript

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

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

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

print(response.text)
```

## Responses

### 200

Reads one entry with its access, its body too when asked.

#### Example

```json
{
  "files": {
    "property1": {
      "id": "string",
      "kind": "string",
      "mime": "string",
      "name": "string",
      "bytes": 0,
      "width": 0,
      "height": 0,
      "duration": 0,
      "pages": 0,
      "status": "string",
      "url": "string",
      "resized": [
        {
          "width": 1,
          "avif": "string",
          "webp": "string"
        }
      ],
      "attachment_id": "string",
      "unlocks": [
        {
          "product_id": "string",
          "product_name": "string",
          "tier": {
            "id": "string",
            "name": "string",
            "rank": 0
          }
        }
      ],
      "video": {
        "attachment_id": "string",
        "tracks": [
          {
            "id": "string",
            "label": "string",
            "language": "string",
            "generated": true
          }
        ],
        "outputs": [
          "string"
        ]
      },
      "audio": {
        "waveform": "string",
        "attachment_id": "string",
        "tracks": [
          {
            "id": "string",
            "label": "string",
            "language": "string",
            "generated": true
          }
        ],
        "outputs": [
          "string"
        ]
      }
    },
    "property2": {
      "id": "string",
      "kind": "string",
      "mime": "string",
      "name": "string",
      "bytes": 0,
      "width": 0,
      "height": 0,
      "duration": 0,
      "pages": 0,
      "status": "string",
      "url": "string",
      "resized": [
        {
          "width": 1,
          "avif": "string",
          "webp": "string"
        }
      ],
      "attachment_id": "string",
      "unlocks": [
        {
          "product_id": "string",
          "product_name": "string",
          "tier": {
            "id": "string",
            "name": "string",
            "rank": 0
          }
        }
      ],
      "video": {
        "attachment_id": "string",
        "tracks": [
          {
            "id": "string",
            "label": "string",
            "language": "string",
            "generated": true
          }
        ],
        "outputs": [
          "string"
        ]
      },
      "audio": {
        "waveform": "string",
        "attachment_id": "string",
        "tracks": [
          {
            "id": "string",
            "label": "string",
            "language": "string",
            "generated": true
          }
        ],
        "outputs": [
          "string"
        ]
      }
    }
  },
  "maps": [
    {
      "latitude": 0,
      "longitude": 0,
      "light": {
        "url": "string",
        "width": 0,
        "height": 0,
        "resized": [
          {
            "width": 1,
            "avif": "string",
            "webp": "string"
          }
        ]
      },
      "dark": {
        "url": "string",
        "width": 0,
        "height": 0,
        "resized": [
          {
            "width": 1,
            "avif": "string",
            "webp": "string"
          }
        ]
      },
      "attribution": "string",
      "attribution_url": "string"
    }
  ],
  "quiz": {
    "id": "string",
    "version": 0,
    "settings": {
      "attempts_allowed": 0,
      "pass_mark": 0,
      "show_answers": true
    },
    "certificate": {
      "requires_passing": true
    },
    "access": "string"
  },
  "body": {
    "default": {
      "template": "string"
    },
    "attachment": {
      "id": "string"
    },
    "mime": "string",
    "access": "string",
    "requires": {
      "kind": "everyone"
    },
    "content": "string",
    "words": null
  },
  "attachments": [
    {
      "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,
      "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"
      }
    }
  ],
  "access": "string",
  "requires": {
    "kind": "everyone"
  },
  "opens_at": "string",
  "completed_at": "string",
  "duration": 0,
  "previewed": true,
  "product": {
    "id": "string",
    "slug": "string",
    "path": "string",
    "url": "string",
    "title": "string",
    "progress_tracking": "string"
  },
  "id": "string",
  "product_id": "string",
  "slug": "string",
  "path": "string",
  "url": "string",
  "title": "string",
  "subtitle": "string",
  "section": "string",
  "author": {
    "kind": "string",
    "name": "string",
    "image": "string"
  },
  "tags": [
    "string"
  ],
  "preview": "string",
  "position": 0,
  "published_at": "string",
  "unlisted_at": "string",
  "created_at": "string",
  "updated_at": "string",
  "settings": {
    "ai_generated": true
  }
}
```

- `files` (`getEntry.response.200.files`; map<object>, required)
- `maps` (`getEntry.response.200.maps`; array<object>, required) — The maps the body's map blocks show, matched to a block by `latitude` and `longitude`; none while the body is kept from the reader.
  - `latitude` (`getEntry.response.200.maps.latitude`; number, required)
  - `longitude` (`getEntry.response.200.maps.longitude`; number, required)
  - `light` (`getEntry.response.200.maps.light`; object, required) — For a light page.
    - `url` (`getEntry.response.200.maps.light.url`; string, required) — A lasting URL to the image.
    - `width` (`getEntry.response.200.maps.light.width`; number, required) — Its size in pixels.
    - `height` (`getEntry.response.200.maps.light.height`; number, required)
    - `resized` (`getEntry.response.200.maps.light.resized`; any of, optional) — Its smaller copies, narrowest first; null until made.
      - any of: `array<object>`, `null`
  - `dark` (`getEntry.response.200.maps.dark`; object, required) — For a dark page.
    - `url` (`getEntry.response.200.maps.dark.url`; string, required) — A lasting URL to the image.
    - `width` (`getEntry.response.200.maps.dark.width`; number, required) — Its size in pixels.
    - `height` (`getEntry.response.200.maps.dark.height`; number, required)
    - `resized` (`getEntry.response.200.maps.dark.resized`; any of, optional) — Its smaller copies, narrowest first; null until made.
      - any of: `array<object>`, `null`
  - `attribution` (`getEntry.response.200.maps.attribution`; string, required) — The credit shown over the map, linking `attribution_url`.
  - `attribution_url` (`getEntry.response.200.maps.attribution_url`; string, required)
- `quiz` (`getEntry.response.200.quiz`; any of, required)
  - any of: `object`, `null`
- `body` (`getEntry.response.200.body`; any of, required)
  - any of: `object`, `object`, `null`
- `attachments` (`getEntry.response.200.attachments`; array<object>, required)
  - `tracks` (`getEntry.response.200.attachments.tracks`; array<object>, required)
    - `id` (`getEntry.response.200.attachments.tracks.id`; string, required)
    - `label` (`getEntry.response.200.attachments.tracks.label`; any of, required)
      - any of: `string`, `null`
    - `language` (`getEntry.response.200.attachments.tracks.language`; any of, required)
      - any of: `string`, `null`
    - `generated` (`getEntry.response.200.attachments.tracks.generated`; boolean, required) — Subtitles the store generated with AI from the video's audio.
  - `outputs` (`getEntry.response.200.attachments.outputs`; array<string>, required) — The published AI outputs `getMediaOutputs` reads beside the video or audio file.
  - `access` (`getEntry.response.200.attachments.access`; string, required)
  - `id` (`getEntry.response.200.attachments.id`; string, required)
  - `role` (`getEntry.response.200.attachments.role`; string, required)
  - `delivery` (`getEntry.response.200.attachments.delivery`; string, required)
  - `preview_only` (`getEntry.response.200.attachments.preview_only`; boolean, required)
  - `from_body` (`getEntry.response.200.attachments.from_body`; boolean, required) — Named by its target's body text, rather than the target's own media (a lesson's video or slides).
  - `position` (`getEntry.response.200.attachments.position`; number, required)
  - `asset` (`getEntry.response.200.attachments.asset`; object, required)
    - `id` (`getEntry.response.200.attachments.asset.id`; string, required)
    - `name` (`getEntry.response.200.attachments.asset.name`; any of, required)
      - any of: `string`, `null`
    - `title` (`getEntry.response.200.attachments.asset.title`; any of, required)
      - any of: `string`, `null`
    - `ext` (`getEntry.response.200.attachments.asset.ext`; any of, required)
      - any of: `string`, `null`
    - `description` (`getEntry.response.200.attachments.asset.description`; any of, required)
      - any of: `string`, `null`
    - `mime` (`getEntry.response.200.attachments.asset.mime`; any of, required)
      - any of: `string`, `null`
    - `bytes` (`getEntry.response.200.attachments.asset.bytes`; any of, required) — The file's size in bytes, null when it has none or is withheld.
      - any of: `number`, `null`
    - `enforcement` (`getEntry.response.200.attachments.asset.enforcement`; string, required)
    - `locator` (`getEntry.response.200.attachments.asset.locator`; any of, required)
      - any of: `string`, `null`
    - `metadata` (`getEntry.response.200.attachments.asset.metadata`; object, required)
      - `width` (`getEntry.response.200.attachments.asset.metadata.width`; any of, required)
        - any of: `number`, `null`
      - `height` (`getEntry.response.200.attachments.asset.metadata.height`; any of, required)
        - any of: `number`, `null`
      - `duration` (`getEntry.response.200.attachments.asset.metadata.duration`; any of, required)
        - any of: `number`, `null`
      - `pages` (`getEntry.response.200.attachments.asset.metadata.pages`; any of, required)
        - any of: `number`, `null`
    - `status` (`getEntry.response.200.attachments.asset.status`; string, required)
- `access` (`getEntry.response.200.access`; string, required)
- `requires` (`getEntry.response.200.requires`; any of, required)
  - any of: `object`, `object`, `object`
- `opens_at` (`getEntry.response.200.opens_at`; any of, required) — When its content opens to everyone it admits; null once open or without a release, and for a broken one, which stays locked.
  - any of: `string`, `null`
- `completed_at` (`getEntry.response.200.completed_at`; any of, required)
  - any of: `string`, `null`
- `duration` (`getEntry.response.200.duration`; any of, required) — The measured length in seconds of a podcast episode's own audio, told even when it is locked; null without one.
  - any of: `number`, `null`
- `previewed` (`getEntry.response.200.previewed`; boolean, required) — Whether the read's preview token is the entry's own, which shows its staged body past its gate.
- `product` (`getEntry.response.200.product`; object, required)
  - `id` (`getEntry.response.200.product.id`; string, required)
  - `slug` (`getEntry.response.200.product.slug`; string, required)
  - `path` (`getEntry.response.200.product.path`; string, required) — The storefront path.
  - `url` (`getEntry.response.200.product.url`; any of, required) — The absolute URL on the store's verified hostname, or null before it has one.
    - any of: `string`, `null`
  - `title` (`getEntry.response.200.product.title`; string, required)
  - `progress_tracking` (`getEntry.response.200.product.progress_tracking`; string, required)
- `id` (`getEntry.response.200.id`; string, required)
- `product_id` (`getEntry.response.200.product_id`; string, required)
- `slug` (`getEntry.response.200.slug`; string, required)
- `path` (`getEntry.response.200.path`; string, required) — The storefront path.
- `url` (`getEntry.response.200.url`; any of, required) — The absolute URL on the store's verified hostname, or null before it has one.
  - any of: `string`, `null`
- `title` (`getEntry.response.200.title`; string, required)
- `subtitle` (`getEntry.response.200.subtitle`; any of, required)
  - any of: `string`, `null`
- `section` (`getEntry.response.200.section`; any of, required)
  - any of: `string`, `null`
- `author` (`getEntry.response.200.author`; any of, required) — Who signs it, or null when unsigned; a member with no name, or one central no longer holds, answers a null name.
  - any of: `object`, `null`
- `tags` (`getEntry.response.200.tags`; array<string>, required)
- `preview` (`getEntry.response.200.preview`; any of, required) — The teaser, in the rich text format as stored.
  - any of: `string`, `null`
- `position` (`getEntry.response.200.position`; number, required)
- `published_at` (`getEntry.response.200.published_at`; any of, required)
  - any of: `string`, `null`
- `unlisted_at` (`getEntry.response.200.unlisted_at`; any of, required) — Set while it is out of the product's lists and indexes, though still reachable.
  - any of: `string`, `null`
- `created_at` (`getEntry.response.200.created_at`; any of, required)
  - any of: `string`, `null`
- `updated_at` (`getEntry.response.200.updated_at`; any of, required)
  - any of: `string`, `null`
- `settings` (`getEntry.response.200.settings`; object, required)
  - `ai_generated` (`getEntry.response.200.settings.ai_generated`; boolean, required)

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


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