---
title: "Reads an entry's text aloud in a curated voice, or again, landing as a draft while the published version plays on; spends Sherpo AI credits, 10 per 1,000 characters."
---

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

`POST /v1/stores/{store}/products/{product}/entries/{entry}/narration/generate`

## Authentication

- `bearer`, http, header `Authorization`, scopes: `entry:write`

## Path parameters

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

## Header parameters

- `Idempotency-Key` (`generateEntryNarration.header.Idempotency-Key`; string, optional) — Repeats within 24 hours answer the first result; the same key with other arguments is a conflict.
  - minLength 1; maxLength 255; pattern `^[\x21-\x7E]+$`

## Request body

_Required._

- `voice` (`generateEntryNarration.voice`; string, required) — The curated voice it is read in, as `listNarrationVoices` lists them.
  - one of `"talia"`, `"darian"`, `"elara"`, `"sawyer"`, `"alicia"`, `"finley"`
- `language` (`generateEntryNarration.language`; any of, optional) — The ISO 639-1 language it is read in; null or absent for the text's own, which the reader detects.
  - any of: `string`, `null`

## Example request

```json
{
  "voice": "talia",
  "language": "id"
}
```

## Code samples

### cURL

```bash
curl --request POST \
  --url 'https://api.sherpo.io/merchant/v1/stores/<store>/products/<product>/entries/<entry>/narration/generate' \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "voice": "talia",
  "language": "id"
}
'
```

### TypeScript

```typescript
const url = 'https://api.sherpo.io/merchant/v1/stores/<store>/products/<product>/entries/<entry>/narration/generate';
const options = {
  method: 'POST',
  headers: {'Content-Type': 'application/json', Authorization: 'Bearer <token>'},
  body: JSON.stringify({voice: 'talia', language: 'id'})
};

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>/entries/<entry>/narration/generate"

payload = {
    "voice": "talia",
    "language": "id"
}
headers = {
    "Content-Type": "application/json",
    "Authorization": "Bearer <token>"
}

response = requests.post(url, json=payload, headers=headers)

print(response.text)
```

## Responses

### 200

Reads an entry's text aloud in a curated voice, or again, landing as a draft while the published version plays on; spends Sherpo AI credits, 10 per 1,000 characters.

#### Example

```json
{
  "entry_id": "string",
  "current": {
    "asset_id": "string",
    "status": "string",
    "voice": "string",
    "language": "string",
    "characters": 0,
    "credits": 0,
    "billed_credits": 0,
    "outdated": true,
    "duration": 0,
    "bytes": 0,
    "reason": "string",
    "deadline": "string",
    "updated_at": "string",
    "published_at": "string",
    "created_at": "string"
  },
  "published": {
    "asset_id": "string",
    "status": "string",
    "voice": "string",
    "language": "string",
    "characters": 0,
    "credits": 0,
    "billed_credits": 0,
    "outdated": true,
    "duration": 0,
    "bytes": 0,
    "reason": "string",
    "deadline": "string",
    "updated_at": "string",
    "published_at": "string",
    "created_at": "string"
  },
  "quote": {
    "characters": 0,
    "credits": 0,
    "fits": true
  }
}
```

- `entry_id` (`generateEntryNarration.response.200.entry_id`; string, required)
- `current` (`generateEntryNarration.response.200.current`; any of, required) — The latest run, its draft or its failure; the published version when there is none newer; null without any.
  - any of: `object`, `null`
- `published` (`generateEntryNarration.response.200.published`; any of, required) — The version customers hear; null while none is published.
  - any of: `object`, `null`
- `quote` (`generateEntryNarration.response.200.quote`; any of, required) — What a generate would cost for the entry's latest saved text; null when it could not be read or speaks no body.
  - any of: `object`, `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` (`generateEntryNarration.response.default.type`; string, required)
  - format `uri`
- `title` (`generateEntryNarration.response.default.title`; string, required)
- `status` (`generateEntryNarration.response.default.status`; integer, required)
- `detail` (`generateEntryNarration.response.default.detail`; string, required)
- `code` (`generateEntryNarration.response.default.code`; string, optional)
- `context` (`generateEntryNarration.response.default.context`; object, optional)
- `reached_core` (`generateEntryNarration.response.default.reached_core`; boolean, optional)
- `core_answer` (`generateEntryNarration.response.default.core_answer`; string, optional)


Source: https://docs.sherpo.io/merchant-api/reference/generate-entry-narration/index.md
