---
title: "Pages the store's custom pages."
---

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

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

## Authentication

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

## Path parameters

- `store` (`listPages.path.store`; string, required) — The store's id.

## Query parameters

- `filter` (`listPages.query.filter`; object, optional) — `filter[<field>]=<value>` is an equality, `filter[<field>][<op>]=<value>` names the operator; `in` repeats the parameter.
- `sort` (`listPages.query.sort`; string, optional)
  - one of `"menu"`, `"created"`, `"title"`
- `direction` (`listPages.query.direction`; string, optional)
  - one of `"asc"`, `"desc"`
- `limit` (`listPages.query.limit`; integer, optional)
  - min 1; max 100
- `cursor` (`listPages.query.cursor`; string, optional)
  - maxLength 8192
- `count` (`listPages.query.count`; boolean, optional)
- `search` (`listPages.query.search`; string, optional)
  - minLength 1; maxLength 200

## Code samples

### cURL

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

### TypeScript

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

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

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

print(response.text)
```

## Responses

### 200

Pages the store's custom pages.

#### Example

```json
{
  "items": [
    {
      "id": "string",
      "slug": "string",
      "path": "string",
      "url": "string",
      "title": "string",
      "description": "string",
      "menu_position": 0,
      "status": "string",
      "live": true,
      "menu_live": true,
      "published_at": "string",
      "created_at": "string",
      "updated_at": "string",
      "settings": {
        "storefront": {
          "no_index": true
        },
        "property1": true,
        "property2": true
      },
      "metadata": {
        "property1": true,
        "property2": true
      }
    }
  ],
  "cursor": "string",
  "total": 0,
  "facets": {
    "property1": {
      "property1": 0,
      "property2": 0
    },
    "property2": {
      "property1": 0,
      "property2": 0
    }
  }
}
```

- `items` (`listPages.response.200.items`; array<object>, required)
  - `id` (`listPages.response.200.items.id`; string, required)
  - `slug` (`listPages.response.200.items.slug`; string, required)
  - `path` (`listPages.response.200.items.path`; string, required) — The storefront path.
  - `url` (`listPages.response.200.items.url`; any of, required) — The absolute URL on the store's verified hostname, or null before it has one.
    - any of: `string`, `null`
  - `title` (`listPages.response.200.items.title`; string, required)
  - `description` (`listPages.response.200.items.description`; any of, required)
    - any of: `string`, `null`
  - `menu_position` (`listPages.response.200.items.menu_position`; any of, required)
    - any of: `number`, `null`
  - `status` (`listPages.response.200.items.status`; string, required)
  - `live` (`listPages.response.200.items.live`; boolean, required) — Served: published and within the pages the plan applies.
  - `menu_live` (`listPages.response.200.items.menu_live`; boolean, required) — Shown in the menu: published or scheduled, in it, and within the menu items the plan applies.
  - `published_at` (`listPages.response.200.items.published_at`; any of, required)
    - any of: `string`, `null`
  - `created_at` (`listPages.response.200.items.created_at`; any of, required)
    - any of: `string`, `null`
  - `updated_at` (`listPages.response.200.items.updated_at`; any of, required)
    - any of: `string`, `null`
  - `settings` (`listPages.response.200.items.settings`; object, required)
    - `storefront` (`listPages.response.200.items.settings.storefront`; object, optional)
      - `no_index` (`listPages.response.200.items.settings.storefront.no_index`; boolean, optional)
  - `metadata` (`listPages.response.200.items.metadata`; map<any of>, required)
- `cursor` (`listPages.response.200.cursor`; any of, required)
  - any of: `string`, `null`
- `total` (`listPages.response.200.total`; number, optional)
- `facets` (`listPages.response.200.facets`; map<map<number>>, optional)

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


Source: https://docs.sherpo.io/merchant-api/reference/list-pages/index.md
