---
title: "Pages an event's sessions, earliest first."
---

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

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

## Authentication

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

## Path parameters

- `store` (`listEventSessions.path.store`; string, required) — The store's id.
- `product` (`listEventSessions.path.product`; string, required) — An id, or `slug:<slug>`.
  - minLength 1

## Query parameters

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

## Code samples

### cURL

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

### TypeScript

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

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

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

print(response.text)
```

## Responses

### 200

Pages an event's sessions, earliest first.

#### Example

```json
{
  "items": [
    {
      "id": "string",
      "product_id": "string",
      "starts_at": "string",
      "ends_at": "string",
      "time_zone": "string",
      "venue": "string",
      "online_label": "string",
      "created_at": "string",
      "updated_at": "string"
    }
  ],
  "cursor": "string",
  "total": 0,
  "facets": {
    "property1": {
      "property1": 0,
      "property2": 0
    },
    "property2": {
      "property1": 0,
      "property2": 0
    }
  }
}
```

- `items` (`listEventSessions.response.200.items`; array<object>, required)
  - `id` (`listEventSessions.response.200.items.id`; string, required)
  - `product_id` (`listEventSessions.response.200.items.product_id`; string, required)
  - `starts_at` (`listEventSessions.response.200.items.starts_at`; string, required)
  - `ends_at` (`listEventSessions.response.200.items.ends_at`; string, required)
  - `time_zone` (`listEventSessions.response.200.items.time_zone`; string, required) — An IANA time zone, e.g. `Europe/Rome`.
  - `venue` (`listEventSessions.response.200.items.venue`; any of, required) — Where it takes place in person, or null for none.
    - any of: `string`, `null`
  - `online_label` (`listEventSessions.response.200.items.online_label`; any of, required) — How it is joined online, e.g. `Zoom`, or null for none.
    - any of: `string`, `null`
  - `created_at` (`listEventSessions.response.200.items.created_at`; string, required)
  - `updated_at` (`listEventSessions.response.200.items.updated_at`; string, required)
- `cursor` (`listEventSessions.response.200.cursor`; any of, required)
  - any of: `string`, `null`
- `total` (`listEventSessions.response.200.total`; number, optional)
- `facets` (`listEventSessions.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` (`listEventSessions.response.default.type`; string, required)
  - format `uri`
- `title` (`listEventSessions.response.default.title`; string, required)
- `status` (`listEventSessions.response.default.status`; integer, required)
- `detail` (`listEventSessions.response.default.detail`; string, required)
- `code` (`listEventSessions.response.default.code`; string, optional)
- `context` (`listEventSessions.response.default.context`; object, optional)
- `reached_core` (`listEventSessions.response.default.reached_core`; boolean, optional)
- `core_answer` (`listEventSessions.response.default.core_answer`; string, optional)


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