---
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 customer API › page

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

## Authentication

Requires one of the following:

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

## Path parameters

- `store` (`listPages.path.store`; string, required) — A hostname of the store.

## 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"`, `"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/customer/v1/stores/<store>/pages' \
  --header 'Authorization: Bearer <token>'
```

### TypeScript

```typescript
const url = 'https://api.sherpo.io/customer/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/customer/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
{
  "total": 0,
  "items": [
    {
      "access": "string",
      "id": "string",
      "slug": "string",
      "path": "string",
      "url": "string",
      "title": "string",
      "description": "string",
      "menu_position": 0,
      "published_at": "string",
      "created_at": "string",
      "updated_at": "string",
      "settings": {
        "storefront": {
          "no_index": true
        }
      }
    }
  ],
  "cursor": "string"
}
```

- `items` (`listPages.response.200.items`; array<object>, required)
  - `access` (`listPages.response.200.items.access`; string, 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`
  - `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, required)
      - `no_index` (`listPages.response.200.items.settings.storefront.no_index`; boolean, required)
- `cursor` (`listPages.response.200.cursor`; any of, required)
  - any of: `string`, `null`
- `total` (`listPages.response.200.total`; 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` (`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/customer-api/reference/list-pages/index.md
