> ## Documentation Index
> Fetch the complete documentation index at: https://docs.relettr.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Series and glossary

> Keep names, terms and tone consistent from chapter to chapter.

A **series** holds what the translator needs to stay consistent across chapters: a **binding glossary**, your notes, and context built from earlier chapters. Chapters without a series work fine; they just start fresh every time.

## Create a series

```bash theme={null}
curl https://api.relettr.com/v1/series \
  -H "Authorization: Bearer $RELETTR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"title": "Tower of the Sword Saint",
       "notes": "Martial arts setting. Keep honorifics out; use Senior/Junior for 사형/사제."}'
```

Then pass `series_id` and a `number` when you create each chapter:

```json theme={null}
{"source_language": "ko", "series_id": "ser_3hT9aB7cD1eF2gH3iJ4kL5", "number": 42, "files": [ ... ]}
```

`number` is unique within a series. Creating a second chapter with the same number returns `409 chapter_exists`; an existing chapter is never replaced.

## What the translator gets

For chapter *N* of a series, the translation uses:

* the **glossary** as of chapter *N* (entries with `since_chapter` greater than *N* are left out),
* your series **notes**,
* a summary of the story so far (earlier chapters only),
* and the last lines of the previous chapter, so dialogue carries over.

Context is built automatically as chapters finish. Translate chapters in order for the best results.

## Glossary entries

| Field | Notes |
| - | - |
| `source` | The Korean term, up to 60 characters |
| `target` | The English to use, up to 60 characters. **Binding**: the translator uses it as given. |
| `type` | `name`, `place`, `title`, `technique`, `term`, `address`, `speech` or `sfx` |
| `gender` | `f` or `m`, for names, so pronouns come out right |
| `since_chapter` | First chapter where the entry applies (e.g. a name revealed in chapter 30) |
| `note` | Up to 200 characters of guidance |

Add up to 500 entries per call:

```bash theme={null}
curl https://api.relettr.com/v1/series/$SERIES_ID/glossary \
  -H "Authorization: Bearer $RELETTR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"entries": [
        {"source": "검기", "target": "Sword Qi", "type": "technique"},
        {"source": "이서준", "target": "Lee Seojun", "type": "name", "gender": "m", "since_chapter": 1}
      ]}'
```

## Proposals

While translating, the translator notices new names and recurring terms and proposes them. Proposals appear:

* in the chapter result as `glossary_proposals`, and
* in the series glossary with `status: "proposed"` (`GET /v1/series/{id}/glossary?status=proposed`).

Proposals are not binding until you confirm them. Confirm one, optionally correcting it, with:

```bash theme={null}
curl -X PATCH https://api.relettr.com/v1/series/$SERIES_ID/glossary/$ENTRY_ID \
  -H "Authorization: Bearer $RELETTR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"status": "confirmed", "target": "Sword Aura"}'
```

Deleting an entry (or a proposal) is permanent for that series: the translator won't propose the same term again.

## Chapters without a series

For a one-off chapter, pass an inline `glossary` (up to 300 entries) when creating it. It's ignored when `series_id` is set; put the entries in the series instead.

## Deleting a series

`DELETE /v1/series/{id}?confirm=true` deletes the series **and all of its chapters**, including their images, text and results. Without `confirm=true` it returns `400`.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.