---
title: "Reads what the store's home, a page, a product or an entry renders, its body or the default layout without one, and a quiz's or certificate's body; staged reads the unpublished one, and default the default layout even over a body. `getBodySchema` answers the blocks and props each kind of body takes."
---

> 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}/{kind}/{id}/body`

## Authentication

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

## Path parameters

- `store` (`readBody.path.store`; string, required) — The store's id.
- `kind` (`readBody.path.kind`; string, required) — The target's kind, in the plural.
  - minLength 1
- `id` (`readBody.path.id`; string, required)
  - minLength 1

## Query parameters

- `staged` (`readBody.query.staged`; boolean, optional) — Reads the unpublished next body instead of the live one.
- `default` (`readBody.query.default`; boolean, optional) — Answers the default layout the target's page shows without a body (the answer's `default` set), even while it has one, naming that body as `asset`; not with `staged`, and not for a quiz or certificate.

## Code samples

### cURL

```bash
curl --request GET \
  --url 'https://api.sherpo.io/merchant/v1/stores/<store>/<kind>/<id>/body' \
  --header 'Authorization: Bearer <token>'
```

### TypeScript

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

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

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

print(response.text)
```

## Responses

### 200

Reads what the store's home, a page, a product or an entry renders, its body or the default layout without one, and a quiz's or certificate's body; staged reads the unpublished one, and default the default layout even over a body. `getBodySchema` answers the blocks and props each kind of body takes.

#### Example

```json
{
  "default": {
    "template": "string"
  },
  "attachment": {
    "id": "string"
  },
  "asset": {
    "id": "string"
  },
  "mime": "string",
  "content": "string",
  "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"
    }
  ],
  "product_fields": {
    "description": true,
    "what_you_get": true
  },
  "preview": {
    "url": "string",
    "expires_at": "string"
  }
}
```

Any of:

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


Source: https://docs.sherpo.io/merchant-api/reference/read-body/index.md
