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

# Ask Reedapt for changes

> Describe a change to a finished dub in plain words, or edit its lines yourself.

> [!NOTE]
>
> Early access. These routes are being released to paid accounts a few at a time. On an account that doesn't have them yet, they answer `403 NOT_AVAILABLE`.

A finished dub can still be changed. You can hand Reedapt a request in plain words, such as "Make the greeting warmer" or "Is line 3 natural?", or you can read the dub's lines and edit them yourself. This is the same help the Reedapt editor's chat gives, and it uses the same monthly allowance.

## Ask in plain words

`POST /dubs/{id}/requests` takes the request in `text` (up to 2000 characters) and an `autonomy`:

| Autonomy | What happens |
| - | - |
| `ask` | The default. If Reedapt wants to change something, it tells you what and waits. Nothing is changed until you answer. |
| `decide` | Reedapt makes the change it judges right, straight away. |

```bash theme={"system"}
curl https://api.reedapt.com/v1/dubs/job_3f9a2c7e1b4d/requests \
  -H "Authorization: Bearer $REEDAPT_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"text": "Is line 3 natural? If not, make it sound calmer.", "autonomy": "ask"}'
```

The answer is a run:

```json Response theme={"system"}
{
  "id": "run_4f1a9c2e7b3d5a8c0e6f1b2d",
  "object": "run",
  "dub_id": "job_3f9a2c7e1b4d",
  "status": "needs_input",
  "request": "Is line 3 natural? If not, make it sound calmer.",
  "reply": "Line 3 reads a little stiff. I can make it calmer.",
  "proposal": { "kind": "changes", "summary": "Soften the wording of line 3.", "lines": 1 },
  "options": [
    { "id": "apply", "label": "Apply the changes" },
    { "id": "decline", "label": "Leave it as it is" }
  ],
  "created_at": "2026-11-15T10:02:11Z"
}
```

| Status | Meaning |
| - | - |
| `done` | Reedapt answered in `reply`. Nothing needed changing. |
| `needs_input` | Reedapt proposes a change and waits. `proposal` says what, and how many lines it would change. |
| `applied` | The change was made. `applied_lines` says how many lines changed. |
| `declined` | You said no. The dub is as it was. |
| `failed` | Reedapt couldn't do it. `reply` says why. |

`reply` is in the language of the request. Show it to the person; don't build logic on its words.

## Answer a proposal

When a run is `needs_input`, answer it with `apply` or `decline`:

```bash theme={"system"}
curl https://api.reedapt.com/v1/runs/run_4f1a9c2e7b3d5a8c0e6f1b2d/answer \
  -H "Authorization: Bearer $REEDAPT_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"choice": "apply"}'
```

`GET /runs/{id}` returns a run again. A run that isn't waiting answers `409 RUN_NOT_WAITING`. If you sent another request on the same dub first, the older proposal is replaced, and applying it answers `409 RUN_EXPIRED`. Send the request again.

## Changes are voiced again

Applied changes are voiced again in the background and the dub's files are rebuilt, which takes a little while. Fetch fresh links from `GET /dubs/{id}/files` once it's done, or listen for the next [`dub.checked`](https://docs.reedapt.com/guides/webhooks#events) event.

## Read and edit lines

`GET /dubs/{id}/lines` returns every line, numbered from 1 in time order:

```json Response theme={"system"}
{
  "dub_id": "job_3f9a2c7e1b4d",
  "lines": [
    {
      "line": 3,
      "start_ms": 9120,
      "end_ms": 11840,
      "speaker": "SPEAKER_00",
      "original_text": "Welcome to our home.",
      "text": "Bienvenue chez nous.",
      "delivery_style": null,
      "voice_instructions": null
    }
  ]
}
```

`POST /dubs/{id}/lines/edit` changes up to 100 lines. For each line, give its number and what to change:

| Field | Notes |
| - | - |
| `line` | The line's number from `GET /dubs/{id}/lines`. |
| `text` | The new wording, in the dub's language. Up to 1000 characters. |
| `delivery_style` | How it's said, such as `angry` or `whisper`. `null` clears it. |
| `voice_instructions` | The delivery in plain words, up to 300 characters. |

```bash theme={"system"}
curl https://api.reedapt.com/v1/dubs/job_3f9a2c7e1b4d/lines/edit \
  -H "Authorization: Bearer $REEDAPT_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"lines": [{"line": 3, "text": "Bienvenue chez nous !", "delivery_style": "warm"}]}'
```

It answers `202` with the lines being changed and `"status": "revoicing"`. A dub that is busy with another change answers `409 DUB_BUSY`; try again in a minute. Both routes need a finished dub and answer `409 DUB_NOT_READY` before that.

## Limits

A request counts against your plan's monthly allowance for the editor's chat. When it's used up, requests answer `429 AGENT_ALLOWANCE_USED` until it renews. This isn't a rate limit, so don't retry. Reading runs and lines doesn't use the allowance.

## With the libraries and AI tools

The [Node.js and Python libraries](https://docs.reedapt.com/libraries.md#ask-reedapt-for-changes) have a method for each route, and the [MCP server](https://docs.reedapt.com/ai-tools.md) has `ask_reedapt`, `answer_run`, `list_lines` and `edit_lines`, so an assistant can ask for a change and wait for the person's yes before applying it.


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