---
title: "Reads one of a product's MCP prompts."
---

> 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/{prompt}`

## Authentication

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

## Path parameters

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

## Code samples

### cURL

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

### TypeScript

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

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

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

print(response.text)
```

## Responses

### 200

Reads one of a product's MCP prompts.

#### Example

```json
{
  "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"
}
```

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


Source: https://docs.sherpo.io/merchant-api/reference/get-prompt/index.md
