---
title: "Pages a product's MCP prompts with their text."
---

> 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}/products/{product}/prompts`

## Authentication

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

## Path parameters

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

## Query parameters

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

## Code samples

### cURL

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

### TypeScript

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

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

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

print(response.text)
```

## Responses

### 200

Pages a product's MCP prompts with their text.

#### Example

```json
{
  "items": [
    {
      "id": "string",
      "product_id": "string",
      "name": "string",
      "title": "string",
      "description": "string",
      "body": "string",
      "arguments": [
        {
          "name": "string",
          "description": "string",
          "required": true,
          "default": "string",
          "match": "string",
          "flags": "string",
          "message": "string",
          "lenient": true
        }
      ],
      "access": {
        "tier_id": "string"
      },
      "position": 0,
      "created_at": "string"
    }
  ],
  "cursor": "string",
  "total": 0,
  "facets": {
    "property1": {
      "property1": 0,
      "property2": 0
    },
    "property2": {
      "property1": 0,
      "property2": 0
    }
  }
}
```

- `items` (`listPrompts.response.200.items`; array<object>, required)
  - `id` (`listPrompts.response.200.items.id`; string, required)
  - `product_id` (`listPrompts.response.200.items.product_id`; string, required)
  - `name` (`listPrompts.response.200.items.name`; string, required)
  - `title` (`listPrompts.response.200.items.title`; any of, required)
    - any of: `string`, `null`
  - `description` (`listPrompts.response.200.items.description`; any of, required)
    - any of: `string`, `null`
  - `body` (`listPrompts.response.200.items.body`; string, required)
  - `arguments` (`listPrompts.response.200.items.arguments`; array<object>, required)
    - `name` (`listPrompts.response.200.items.arguments.name`; string, required)
    - `description` (`listPrompts.response.200.items.arguments.description`; any of, required)
      - any of: `string`, `null`
    - `required` (`listPrompts.response.200.items.arguments.required`; boolean, required)
    - `default` (`listPrompts.response.200.items.arguments.default`; any of, required)
      - any of: `string`, `null`
    - `match` (`listPrompts.response.200.items.arguments.match`; any of, required) — Pattern the whole value must match, diacritic-insensitive.
      - any of: `string`, `null`
    - `flags` (`listPrompts.response.200.items.arguments.flags`; any of, required) — Flags among `i`, `s` and `u` the pattern runs with; null for `i` alone.
      - any of: `string`, `null`
    - `message` (`listPrompts.response.200.items.arguments.message`; any of, required) — What a refused value is told instead of the default reason.
      - any of: `string`, `null`
    - `lenient` (`listPrompts.response.200.items.arguments.lenient`; boolean, required)
  - `access` (`listPrompts.response.200.items.access`; any of, required)
    - any of: `object`, `null`
  - `position` (`listPrompts.response.200.items.position`; number, required)
  - `created_at` (`listPrompts.response.200.items.created_at`; any of, required)
    - any of: `string`, `null`
- `cursor` (`listPrompts.response.200.cursor`; any of, required)
  - any of: `string`, `null`
- `total` (`listPrompts.response.200.total`; number, optional)
- `facets` (`listPrompts.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` (`listPrompts.response.default.type`; string, required)
  - format `uri`
- `title` (`listPrompts.response.default.title`; string, required)
- `status` (`listPrompts.response.default.status`; integer, required)
- `detail` (`listPrompts.response.default.detail`; string, required)
- `code` (`listPrompts.response.default.code`; string, optional)
- `context` (`listPrompts.response.default.context`; object, optional)
- `reached_core` (`listPrompts.response.default.reached_core`; boolean, optional)
- `core_answer` (`listPrompts.response.default.core_answer`; string, optional)


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