# AI tools Source: https://docs.reedapt.com/ai-tools Dub from Claude, Cursor and other AI tools, and give them these docs while you build. ## Dub from your AI tool The Reedapt MCP server lets an AI assistant dub for you: it checks your languages and minutes, uploads a file or link, waits for the dub, and hands back the files, transcript and subtitles. It runs on your computer with your API key, so a test key keeps it free while you try it. > [tab] Claude Code > > ```bash theme={"system"} > claude mcp add reedapt --env REEDAPT_API_KEY=rk_test_... -- npx -y reedapt-mcp > ``` > [tab] Claude Desktop and Cursor > > Add this to the `mcpServers` section of the tool's MCP settings: > > ```json theme={"system"} > { > "mcpServers": { > "reedapt": { > "command": "npx", > "args": ["-y", "reedapt-mcp"], > "env": { "REEDAPT_API_KEY": "rk_test_..." } > } > } > } > ``` > [tab] VS Code > > Add this to `.vscode/mcp.json` in your project: > > ```json theme={"system"} > { > "servers": { > "reedapt": { > "type": "stdio", > "command": "npx", > "args": ["-y", "reedapt-mcp"], > "env": { "REEDAPT_API_KEY": "rk_test_..." } > } > } > } > ``` It needs Node.js 18 or later. Then ask in plain words, for example: "Dub \~/Videos/talk.mp4 from English into French and Spanish." | Tool | What it does | | - | - | | `list_languages` | The languages your plan can dub into | | `get_usage` | Your plan and minutes left, or a month's usage | | `dub_media` | Upload a file or link and start one dub per language | | `get_dub`, `wait_for_dub`, `list_dubs` | Follow your dubs | | `get_dub_files` | Download links for a finished dub | | `get_transcript`, `get_subtitles` | The dub's lines, and SRT or WebVTT subtitles | | `get_quality` | Reedapt's check of a finished dub: lines fixed and lines left to review | | `ask_reedapt`, `answer_run` | Ask for a change in plain words, then apply or decline what Reedapt proposes. Early access | | `list_lines`, `edit_lines` | Read a dub's lines by number and change them. Early access | | `cancel_dub` | Stop a dub that hasn't finished; its minutes are returned | `dub_media` takes `instructions`: notes such as names to keep or the tone. The early access tools work on the accounts that have [asking for changes](/guides/changes) and answer `NOT_AVAILABLE` on the others. `ask_reedapt` asks before it changes anything: the assistant shows you what Reedapt proposes, and applies it only after you agree. Live keys use your plan's minutes, so the assistant is told to confirm languages and length before a long dub. The source is on [GitHub](https://github.com/Reedapt/reedapt-mcp). ### The Reedapt Skill The Skill teaches an AI tool how to dub well with Reedapt: what to check first, how to wait, how to read the quality report, how to ask for changes and wait for your yes, and what to say when something fails. In Claude Code, copy the [`skill/reedapt`](https://github.com/Reedapt/reedapt-mcp/tree/main/skill/reedapt) folder into `~/.claude/skills/`. ## Search these docs from your AI tool These docs have an MCP server, so an AI assistant can search them and read any page while it helps you write your integration. It only reads the public docs. It can't see your account or use your API key. ```text theme={"system"} https://docs.reedapt.com/mcp ``` ### Add it to your tool > [tab] Claude Code > > ```bash theme={"system"} > claude mcp add --transport http reedapt-docs https://docs.reedapt.com/mcp > ``` > [tab] Cursor > > Add this to `.cursor/mcp.json` in your project: > > ```json theme={"system"} > { > "mcpServers": { > "reedapt-docs": { > "url": "https://docs.reedapt.com/mcp" > } > } > } > ``` > [tab] VS Code > > Add this to `.vscode/mcp.json` in your project: > > ```json theme={"system"} > { > "servers": { > "reedapt-docs": { > "type": "http", > "url": "https://docs.reedapt.com/mcp" > } > } > } > ``` > [tab] Other tools > > Add a remote MCP server with the address above. It uses the Streamable HTTP transport and needs no sign-in. ### From any page The menu at the top of each page can copy the page as Markdown, open it in an AI assistant, or connect the MCP server to your editor. ### Plain text The whole site is also available as plain text: * [`/llms.txt`](https://docs.reedapt.com/llms.txt) lists every page. * [`/llms-full.txt`](https://docs.reedapt.com/llms-full.txt) has every page in one file. # Get a usage report Source: https://docs.reedapt.com/api-reference/account/get-a-usage-report /openapi.json get /usage/report Minutes and dubs from the API for one month, for the whole account, per key and per target language. A dub counts in the month it started. Dubs started in the Reedapt app aren't included. # Get usage Source: https://docs.reedapt.com/api-reference/account/get-usage /openapi.json get /usage Minutes left on the account, and how a test key's dubs are limited. # List languages Source: https://docs.reedapt.com/api-reference/account/list-languages /openapi.json get /languages The languages this key's plan can dub into. # Answer a run that needs input Source: https://docs.reedapt.com/api-reference/agent/answer-a-run-that-needs-input /openapi.json post /runs/{run_id}/answer `apply` makes the proposed changes; `decline` leaves the dub as it is. # Ask Reedapt for a change Source: https://docs.reedapt.com/api-reference/agent/ask-reedapt-for-a-change /openapi.json post /dubs/{dub_id}/requests Hand a request in plain words to Reedapt's dubbing agent, as in the editor's chat ("make the French less formal", "speaker 2 should sound angrier"). It uses the same monthly allowance as the chat. # Change lines Source: https://docs.reedapt.com/api-reference/agent/change-lines /openapi.json post /dubs/{dub_id}/lines/edit Change the wording or direction of up to 100 lines. They are re-voiced and the dub's files rebuilt; the dub reports `applying_changes` meanwhile. # Get a run Source: https://docs.reedapt.com/api-reference/agent/get-a-run /openapi.json get /runs/{run_id} # List a dub's lines Source: https://docs.reedapt.com/api-reference/agent/list-a-dubs-lines /openapi.json get /dubs/{dub_id}/lines Every line with its number, timing, speaker, words and voice direction. # Cancel a dub Source: https://docs.reedapt.com/api-reference/dubs/cancel-a-dub /openapi.json post /dubs/{dub_id}/cancel Stop a dub and delete it. Its minutes are returned. # Create dubs Source: https://docs.reedapt.com/api-reference/dubs/create-dubs /openapi.json post /dubs Dub a completed upload into one or more languages. Each language is one dub and reserves its minutes now; they are returned if the dub fails or is cancelled. # Download a dub's files Source: https://docs.reedapt.com/api-reference/dubs/download-a-dubs-files /openapi.json get /dubs/{dub_id}/files Links to a completed dub's files. Each link lasts an hour; ask again for fresh ones. # Download a dub's subtitles Source: https://docs.reedapt.com/api-reference/dubs/download-a-dubs-subtitles /openapi.json get /dubs/{dub_id}/subtitles A completed dub's lines as a subtitle file, in the dub's language or the original's. # Get a dub's quality report Source: https://docs.reedapt.com/api-reference/dubs/get-a-dubs-quality-report /openapi.json get /dubs/{dub_id}/quality What Reedapt's checks found on a finished dub: lines that may run long, may be missing words or sound wrong, and the lines it fixed by itself. # Get a dub's transcript Source: https://docs.reedapt.com/api-reference/dubs/get-a-dubs-transcript /openapi.json get /dubs/{dub_id}/transcript Every line of a completed dub with its timing, speaker, original words and translation. # List dubs Source: https://docs.reedapt.com/api-reference/dubs/list-dubs /openapi.json get /dubs The account's dubs, newest first. # Retrieve a dub Source: https://docs.reedapt.com/api-reference/dubs/retrieve-a-dub /openapi.json get /dubs/{dub_id} A dub's status and progress. Prefer webhooks to polling; if you poll, every 30 seconds is plenty. # API reference Source: https://docs.reedapt.com/api-reference/introduction Every endpoint of the Reedapt API, with a playground to try it. The reference is built from our [OpenAPI file](https://api.reedapt.com/v1/openapi.json). Open any endpoint to see its fields, its answers and its errors, and to try it with your own key. > [!TIP] > > Try requests with a **test key** (`rk_test_…`). Test dubs are free and work just like live ones. ## Basics * **Base URL:** `https://api.reedapt.com/v1` * **Authentication:** `Authorization: Bearer `. See [Authentication](/authentication). * **Format:** JSON in and out. Times are in UTC, in ISO 8601. * **Ids** start with what they are: `job_` for uploads and dubs (an upload's id becomes its first dub's id), `we_` for webhook endpoints, `evt_` for events. * **Errors** all have the same shape. See [Errors](/errors). # Complete an upload Source: https://docs.reedapt.com/api-reference/uploads/complete-an-upload /openapi.json post /uploads/{upload_id}/complete Join the parts into the file. It can then be dubbed. # Create an upload Source: https://docs.reedapt.com/api-reference/uploads/create-an-upload /openapi.json post /uploads Start uploading a video or audio file. Send each part with a PUT to its link (keep each response's ETag), ask for more links with Sign more parts, then call Complete an upload. # Retrieve an upload Source: https://docs.reedapt.com/api-reference/uploads/retrieve-an-upload /openapi.json get /uploads/{upload_id} An upload and its status. Poll this after sending a source_url. # Sign more parts Source: https://docs.reedapt.com/api-reference/uploads/sign-more-parts /openapi.json post /uploads/{upload_id}/parts Fresh signed links for these parts (each lasts 15 minutes). # Batch completed Source: https://docs.reedapt.com/api-reference/webhooks/batch-completed /openapi.json webhook batch.completed Every dub of a bulk upload made in the Reedapt app has finished. # Create a webhook endpoint Source: https://docs.reedapt.com/api-reference/webhooks/create-a-webhook-endpoint /openapi.json post /webhook_endpoints Send this account's dub events (`dub.completed`, `dub.failed`) to a URL. Each delivery is signed: `Reedapt-Signature: t=,v1=.">` keyed with the endpoint's secret. # Delete a webhook endpoint Source: https://docs.reedapt.com/api-reference/webhooks/delete-a-webhook-endpoint /openapi.json delete /webhook_endpoints/{endpoint_id} Stop sending events here. Deliveries still pending are dropped. # Dub checked Source: https://docs.reedapt.com/api-reference/webhooks/dub-checked /openapi.json webhook dub.checked Reedapt finished checking a completed dub and fixing what it could by itself; `data.quality` is the same report as `GET /dubs/{id}/quality`. Sent a few minutes after `dub.completed`, on plans where Reedapt checks dubs. # Dub completed Source: https://docs.reedapt.com/api-reference/webhooks/dub-completed /openapi.json webhook dub.completed A dub finished, and its files are ready to download. # Dub failed Source: https://docs.reedapt.com/api-reference/webhooks/dub-failed /openapi.json webhook dub.failed A dub failed or was cancelled; `data.dub.error` says why. Its minutes were returned. # List deliveries Source: https://docs.reedapt.com/api-reference/webhooks/list-deliveries /openapi.json get /webhook_endpoints/{endpoint_id}/deliveries The latest deliveries to this endpoint, newest first. # List webhook endpoints Source: https://docs.reedapt.com/api-reference/webhooks/list-webhook-endpoints /openapi.json get /webhook_endpoints The account's endpoints. Secrets are never shown again. # Resend a delivery Source: https://docs.reedapt.com/api-reference/webhooks/resend-a-delivery /openapi.json post /webhook_endpoints/{endpoint_id}/deliveries/{delivery_id}/resend Send a past delivery's event to this endpoint again, now. It keeps its event id and body, so a receiver that skips repeats by event id will skip it too. # Send a test event Source: https://docs.reedapt.com/api-reference/webhooks/send-a-test-event /openapi.json post /webhook_endpoints/{endpoint_id}/test Queue a `webhook.test` event to this endpoint; watch it under /deliveries. # Authentication Source: https://docs.reedapt.com/authentication Send an API key with every request. Live keys dub whole files; test keys are free. Every request carries an API key as a bearer token: ```bash theme={"system"} curl https://api.reedapt.com/v1/usage \ -H "Authorization: Bearer rk_live_…" ``` A request without a valid key gets `401 UNAUTHORIZED`. ## Making a key Open [Reedapt](https://dub.reedapt.com/developers) and choose **Developers** in the account menu. Name the key, pick live or test, and copy it. **A key is shown once, when you make it.** If you lose it, revoke it and make another. ## Live and test keys | | Live key | Test key | | - | - | - | | Starts with | `rk_live_` | `rk_test_` | | Available on | Every paid plan | Every account with a confirmed email, free | | What it dubs | The whole file | The first 60 seconds, with a watermark | | Billing | Per minute of source media, per language | Free | | Files | Video and audio | Video only | | Limits | Your minutes and dubs at once | 20 dubs a day | Everything else works the same way, so code you write against a test key works unchanged with a live one. A test dub has `"test": true` and `preview_seconds` set, and its files are only the watermarked dub. ## Getting live keys Live keys come with every paid plan. Their dubs use your plan's minutes, the same way as dubs made in the app. If your plan ends, live keys keep working through its 7-day grace period, then stop until you renew. Test keys aren't affected. ## Keeping keys safe > [!WARNING] > > Use keys only from your server. Never put a key in a web page, a mobile app, or anything people can download. Anyone with the key can spend your minutes. * Keep keys in environment variables or a secrets manager, not in your code or repository. * Make one key per system, so you can revoke one without touching the others. * Revoke a key in **Developers** if it may have leaked. It stops working within a minute. ## Checking a key `GET /usage` tells you which plan and kind of key you're using and how many minutes are left. For minutes used per key and per language, see [Usage](/usage). ```json Response theme={"system"} { "plan": "pro", "key_mode": "live", "minutes_remaining": 184.5, "unlimited": false, "test_preview_seconds": 60 } ``` # Changelog Source: https://docs.reedapt.com/changelog What's new in the Reedapt API. **22 November 2026** Go, Rust and PHP libraries * The [Go library](/libraries) 0.1.0: `go get github.com/Reedapt/reedapt-go`. It covers the whole API, with uploads in parts, safe retries and webhook signatures. * The [Rust library](/libraries) 0.2.0: `cargo add reedapt`. The same coverage, async by default with an optional blocking client. * The [PHP library](/libraries) 0.1.0 with Laravel built in: `composer require reedapt/reedapt-php`. Laravel gets a config file, a `Reedapt` facade, webhook signature middleware and events such as `DubCompleted`. **15 November 2026** Dub instructions, quality reports and asking for changes * `instructions` on [`POST /dubs`](/guides/dubs#starting-dubs): notes for the dub, such as names to keep or the tone. Followed on paid plans. * [`GET /dubs/{id}/quality`](/guides/dubs#checking-the-result) returns Reedapt's check of a finished dub, and the new `dub.checked` webhook event sends it a few minutes after `dub.completed`, on plans where Reedapt checks dubs. * Early access: [ask Reedapt for changes](/guides/changes) to a finished dub in plain words, answer its proposals, and read and edit a dub's lines. `403 NOT_AVAILABLE` on accounts that don't have it yet. * Node.js and Python libraries 0.2.0, and the MCP server and Skill, cover all of it. **14 November 2026** Dub from AI tools * The [Reedapt MCP server](/ai-tools#dub-from-your-ai-tool) lets Claude, Cursor and other AI tools dub with your API key: `npx -y reedapt-mcp`. * The Reedapt Skill teaches AI tools how to dub well with Reedapt. **8 November 2026** Live keys on every paid plan * Live keys come with every paid plan again, and their dubs use your plan's minutes. API contracts are gone. [Getting live keys](/authentication#getting-live-keys). * Test keys still need a confirmed email address. **31 October 2026** API contracts * Live keys now come with an API contract and are invoiced monthly per minute, instead of using an app plan's minutes. * Test keys need a confirmed email address. **31 October 2026** Transcripts, subtitles and resending webhooks * [`GET /dubs/{id}/transcript`](/guides/dubs#transcripts-and-subtitles) returns every line of a dub, with its timing, speaker, original words and translation. * [`GET /dubs/{id}/subtitles`](/guides/dubs#transcripts-and-subtitles) returns SRT or WebVTT subtitles, in the dub's language or the original's. * [`POST /webhook_endpoints/{id}/deliveries/{delivery_id}/resend`](/guides/webhooks#testing-and-troubleshooting) sends a past delivery again. **28 October 2026** Usage reports * [`GET /usage/report`](/usage) gives a month of minutes and dubs, per key and per language. **28 October 2026** v1 The Reedapt API is out. * Upload files in parts, or from a link. * Dub into one or more languages, in each speaker's own voice. * Webhooks for `dub.completed`, `dub.failed` and `batch.completed`, signed with your endpoint's secret. * Free test keys that dub the first 60 seconds of a file. * `Idempotency-Key` on uploads and dubs. # Errors Source: https://docs.reedapt.com/errors Every error has the same shape, an HTTP status, and a stable code to branch on. When a request fails, the answer has a `4xx` or `5xx` status and this body: ```json theme={"system"} { "error": { "code": "UPLOAD_INCOMPLETE", "message": "Complete the upload before dubbing it.", "request_id": "req_8f2c1e0a9b7d6c5e4f3a" } } ``` * **`code`** stays the same over time. Write your logic against it. * **`message`** explains the problem in plain English. You can show it to people, but its wording may change. * **`request_id`** identifies the request. Quote it when you contact us. Every answer, successful or not, also carries it in the `Request-Id` header. When fields are missing or invalid, `code` is `INVALID_REQUEST` and `fields` lists each problem: ```json theme={"system"} { "error": { "code": "INVALID_REQUEST", "message": "Some fields are missing or invalid.", "request_id": "req_…", "fields": [{ "field": "target_languages", "message": "Field required" }] } } ``` We may add codes. Treat a code you don't recognise by its HTTP status. ## Statuses | Status | Meaning | What to do | | - | - | - | | `401` | The key is missing, wrong or revoked. | Check the key. Don't retry. | | `404` | Nothing with this id belongs to your account. | Check the id. | | `409` | The request conflicts with the object's state. | Read the code. Usually wait, or start over. | | `413` | The request body is over 256 KiB. | Send files through uploads, not in the request. | | `422` | The request can't be done as asked. | Fix the request. Don't retry it unchanged. | | `429` | Too many requests, or a limit was reached. | Wait for `Retry-After` seconds. | | `500` | Something went wrong on our side. | Retry with backoff. | | `503` | Something is briefly unavailable. | Retry after `Retry-After` seconds. | ## Codes ### Keys and limits | Code | Status | Meaning | | - | - | - | | `UNAUTHORIZED` | 401 | The key is missing, wrong or revoked. | | `RATE_LIMITED` | 429 | Too many requests. See [Rate limits](/rate-limits). | | `UNAVAILABLE` | 503 | We can't check keys right now. Retry in a minute. | | `INTERNAL` | 500 | Something went wrong on our side. | | `BODY_TOO_LARGE` | 413 | Request bodies can be at most 256 KiB. | | `LENGTH_REQUIRED` | 411 | Send a `Content-Length` with the body. | | `INVALID_REQUEST` | 422 | Missing or invalid fields; see `fields`. | ### Uploads | Code | Status | Meaning | | - | - | - | | `UNSUPPORTED_FILE_TYPE` | 422 | We don't dub this kind of file, or can't tell its type from the link. | | `FILE_TOO_LARGE` | 422 | The file is bigger than your plan allows. | | `UPLOAD_COMPLETE` | 409 | The upload is already complete. | | `UPLOAD_FETCHING` | 409 | We're downloading this file from its link; there's nothing to complete. | | `UPLOAD_PARTS_MISMATCH` | 409 | Some parts are missing or their ETags don't match. | | `UPLOAD_GONE` | 404 | The upload expired, or the file didn't match the declared size. Start again. | | `SOURCE_URL_INVALID` | 422 | The link isn't a usable `http(s)` address. | | `SOURCE_URL_NOT_PUBLIC` | 422 | The link doesn't lead to a public address. | | `SOURCE_URL_REDIRECTS` | 422 | The link redirects too many times. | | `TOO_MANY_FETCHES` | 429 | Three links are already downloading for your account. | | `FETCHES_BUSY` | 503 | We're downloading many links right now. Retry later. | A download from a link that fails after the upload was created sets the upload to `failed`, with one of these as its `error`: the link answered with an error, sent an empty file, was too slow, or the file was bigger than your plan allows. ### Dubs | Code | Status | Meaning | | - | - | - | | `UPLOAD_INCOMPLETE` | 409 | The upload isn't complete, or is still downloading. | | `UPLOAD_FAILED` | 409 | The upload failed. Upload the file again. | | `UPLOAD_USED` | 409 | The upload was already dubbed. Upload the file again to dub it again. | | `NOT_ENOUGH_MINUTES` | 422 | Not enough minutes left for this file. | | `LANGUAGE_NOT_IN_PLAN` | 422 | Your plan doesn't include this language. | | `LANGUAGE_PAUSED` | 422 | Dubbing into this language is paused for now. | | `SAME_LANGUAGE` | 422 | Every target language is the language the file is in. A target that matches it is listed in `refused` while the others start. | | `BULK_NOT_ON_PLAN` | 422 | Several languages in one request needs a plan with bulk dubbing. | | `TOO_MANY_DUBS_RUNNING` | 429 | Your plan's limit of unfinished dubs is reached. Start more once some finish. | | `TEST_KEY_VIDEO_ONLY` | 422 | Test keys dub video files. Use a live key for audio. | | `TEST_DUB_LIMIT` | 429 | The test key's dubs for today are used up. | | `TEST_DUBS_UNAVAILABLE` | 503 | Test dubs can't start right now. Retry later. | | `USAGE_UNAVAILABLE` | 503 | We couldn't check your minutes. Retry shortly. | | `DUB_COMPLETE` | 409 | The dub is finished, so it can't be cancelled. | | `DUB_NOT_READY` | 409 | The dub isn't finished, so it has no files, transcript or subtitles yet. | | `NOT_AVAILABLE` | 403 | [Asking for changes](/guides/changes) isn't released on this account yet. | | `AGENT_ALLOWANCE_USED` | 429 | The plan's monthly allowance for requests to Reedapt is used up. It isn't a rate limit, so don't retry. | | `RUN_NOT_WAITING` | 409 | The run isn't waiting for an answer. | | `RUN_EXPIRED` | 409 | A newer request replaced this proposal. Send the request again. | | `DUB_BUSY` | 409 | The dub is busy with another change. Try again in a minute. | | `FILES_GONE` | 404 | The dub's files are no longer stored. | | `TRANSCRIPT_GONE` | 404 | The dub's transcript is no longer stored, so there are no subtitles either. | ### Repeated requests | Code | Status | Meaning | | - | - | - | | `IDEMPOTENCY_MISMATCH` | 422 | This `Idempotency-Key` was used for a different request. | | `IDEMPOTENCY_IN_PROGRESS` | 409 | A request with this key is still running. Retry shortly. | | `ALREADY_STARTED` | 409 | The first request was cut off after its dubs started. Find them with `GET /dubs`. | ### Webhooks | Code | Status | Meaning | | - | - | - | | `WEBHOOK_URL_INVALID` | 422 | The URL must be a valid `https://` address. | | `WEBHOOK_URL_NOT_PUBLIC` | 422 | The URL doesn't lead to a public address. | | `WEBHOOK_LIMIT` | 422 | The account has as many endpoints as it can. Delete one first. | | `DELIVERY_PENDING` | 409 | The event is still being sent to this endpoint. Wait for it to be delivered or fail, then resend. | ## Why a dub failed A dub that fails after it started has `status: "failed"` and an `error` with one of these codes. Its minutes are returned. | Code | Meaning | | - | - | | `NO_AUDIO_TRACK` | The file has no sound to dub. | | `NO_SPEECH` | We couldn't find any speech in the file. | | `UNREADABLE_MEDIA` | The file is damaged or in a format we can't read. | | `TRANSCRIPTION_FAILED` | We couldn't transcribe the audio clearly. | | `TRANSLATION_FAILED`, `TRANSLATION_UNAVAILABLE` | Translation didn't work this time. Try again. | | `TTS_ALL_SEGMENTS_FAILED` | We couldn't make the voices for this language right now. | | `AUDIO_SEPARATION_FAILED` | We couldn't process the audio in this file. | | `PROCESSING_TIMEOUT`, `RESOURCE_OOM` | The file was too long or heavy to process right now. | | `RECOVERY_LIMIT_REACHED` | The dub stopped more than once before finishing. | | `CANCELLED` | You cancelled it. | | `DUB_FAILED` and other codes | Something went wrong on our side. Try again, and contact us with the dub's id if it keeps happening. | # Ask Reedapt for changes Source: https://docs.reedapt.com/guides/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`](/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](/libraries#ask-reedapt-for-changes) have a method for each route, and the [MCP server](/ai-tools) 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. # Dubs Source: https://docs.reedapt.com/guides/dubs Start dubs from an upload, follow their progress, and download the results. ## Starting dubs `POST /dubs` turns a completed upload into one dub per language: ```bash theme={"system"} curl https://api.reedapt.com/v1/dubs \ -H "Authorization: Bearer $REEDAPT_API_KEY" \ -H "Content-Type: application/json" \ -H "Idempotency-Key: order-1042" \ -d '{ "upload_id": "job_3f9a2c7e1b4d", "source_language": "en", "target_languages": ["fr", "es"], "metadata": {"order_id": "1042"} }' ``` | Field | Notes | | - | - | | `upload_id` | An upload whose status is `uploaded`. | | `source_language` | The language spoken in the file, such as `en`. | | `target_languages` | One dub is made for each. `GET /languages` lists the codes your plan covers. More than one language needs a plan with bulk dubbing. | | `voice_cloning` | Defaults to `true`: each speaker keeps their own voice. | | `num_speakers` | How many people speak, if you know. Left out, we work it out. | | `instructions` | Notes for the dub, up to 2000 characters: names to keep as they are, the tone, how to address the audience. Followed on paid plans. | | `metadata` | Your own keys and values, up to 2 KB, returned on the dub and in its webhooks. | The answer lists the dubs that started. Languages that couldn't start come back in `refused` with a reason, and the others still start: ```json Response theme={"system"} { "dubs": [ { "id": "job_3f9a2c7e1b4d", "object": "dub", "status": "queued", "target_language": "fr", "…": "…" } ], "refused": [ { "target_language": "es", "code": "LANGUAGE_NOT_IN_PLAN", "message": "Your plan doesn't include this language." } ] } ``` ## Minutes Dubs are counted in minutes of source media, once per language. Each dub reserves its minutes when it starts. If a dub fails or you cancel it, its minutes are returned. Check what's left with `GET /usage`. Test keys use no minutes. ## Dubs running at once Your plan sets how many dubs can be unfinished at the same time: 3 on Creator, 10 on Professional studio and 25 on Ministry & Platform. Past that, new dubs get `429 TOO_MANY_DUBS_RUNNING` until some finish. The limit is per account, across all its keys and the Reedapt app. ## Following a dub A dub moves through these statuses. `completed` and `failed` are final. ```mermaid theme={"system"} flowchart LR queued --> processing --> completed processing --> failed queued --> failed ``` While a dub is `processing`, `progress` runs from 0 to 100 and `stage` says what it's doing. Show `stage` if you like, but don't build logic on its values: they may change as we improve the pipeline. > [!TIP] > > Use [webhooks](/guides/webhooks) rather than polling. If you poll `GET /dubs/{id}`, once every 30 seconds is plenty. ```json A completed dub theme={"system"} { "id": "job_3f9a2c7e1b4d", "object": "dub", "status": "completed", "stage": null, "progress": 100, "source_language": "en", "target_language": "fr", "audio": false, "test": false, "preview_seconds": null, "duration_minutes": 12.4, "created_at": "2026-10-28T09:12:44", "started_at": "2026-10-28T09:12:51", "completed_at": "2026-10-28T09:31:02", "error": null, "metadata": { "order_id": "1042" } } ``` A failed dub has an `error` with a `code` and a `message` you can show to people. See [Errors](/errors#why-a-dub-failed) for the codes. ## Downloading the files `GET /dubs/{id}/files` returns links to a completed dub's files. Each link lasts an hour; ask again for fresh ones. | Kind | What it is | | - | - | | `dub` | The dubbed video, or the dubbed audio as MP3 for an audio file. | | `dubbed_audio_wav` | Audio dubs only: the dub as WAV. | | `voice` | Audio dubs only: the dubbed voices on their own. | | `background` | Audio dubs only: the music and sound without the voices. | Test dubs return only `dub`, the watermarked preview. > [!NOTE] > > Dubs and their files are kept for a limited time, as in the Reedapt app. Download what you need to keep. A dub whose files are gone answers `404 FILES_GONE`. ## Transcripts and subtitles A completed dub also has its words. * `GET /dubs/{id}/transcript` returns every line in time order: `start_ms`, `end_ms`, `speaker`, `original_text` and `text`, the line in the dub's language. Speakers keep the same label, such as `SPEAKER_00`, throughout a dub. * `GET /dubs/{id}/subtitles` returns a subtitle file. Pick `format=srt` (the default) or `format=vtt`, and `language=target` (the default) for the dub's language or `language=source` for the original words. ```bash theme={"system"} curl https://api.reedapt.com/v1/dubs/dub_123/subtitles?format=vtt \ -H "Authorization: Bearer $REEDAPT_API_KEY" \ -o dub.fr.vtt ``` Both follow the dub as it is now: lines changed in the Reedapt editor come back changed. A test dub returns only the lines in its 60-second preview. They answer `409 DUB_NOT_READY` until the dub has finished, and `404 TRANSCRIPT_GONE` once the dub has been cleaned up. ## Checking the result On plans where Reedapt checks dubs, it listens to a finished dub a few minutes after `dub.completed`, fixes what it can and notes what it left. `GET /dubs/{id}/quality` returns the report, and the [`dub.checked`](/guides/webhooks#events) webhook sends it when it's ready. ```json Response theme={"system"} { "dub_id": "job_3f9a2c7e1b4d", "checked": true, "listened": true, "lines": 84, "fixed": 3, "to_review": 1, "flagged": [ { "line": 12, "start_ms": 41200, "checks": ["fit"], "fixed": "shortened" }, { "line": 40, "start_ms": 160500, "checks": ["fit"], "fixed": null } ] } ``` | Field | Notes | | - | - | | `checked` | Whether the measurement checks have run. `false` until they have, and on plans that don't get them. | | `listened` | Whether Reedapt's listening check has heard the dub, as well as measured it. | | `lines` | How many lines were checked. | | `fixed` | How many lines it fixed itself. | | `to_review` | How many flagged lines are left for a person. | | `flagged` | Each flagged line, by number and start time. `checks` says what was found, such as `fit` (the line doesn't fit its time), `listen_glitch` or `listen_back`, and `fixed` is `shortened` or `revoiced` if Reedapt dealt with it, or `null` if it's left for you. The values in `checks` may grow, so don't build logic on them. Line numbers are the same as in `GET /dubs/{id}/lines`. | To change a flagged line, [ask Reedapt](/guides/changes) or edit it yourself. ## Listing and cancelling * `GET /dubs` lists the account's dubs, newest first. Page with `limit` (up to 100) and `offset`; `has_more` says whether another page follows. * `POST /dubs/{id}/cancel` stops a dub that hasn't finished and deletes it. Its minutes are returned. # Uploads Source: https://docs.reedapt.com/guides/uploads Send a file in parts with signed links, or let us download it from a link. A dub starts from an upload. Files never pass through the API itself: you send them straight to storage, or we fetch them for you. Video and audio files are both accepted, and an audio file is dubbed as audio. Your plan's file size limit is checked when the upload starts and again when it completes. An upload can be dubbed once. To dub the same file again, upload it again. ## Uploading in parts **1. Start the upload** `POST /uploads` with the file's `filename` (with its extension) and its `size` in bytes. The answer gives the `part_size`, the `part_count`, and signed links for the first parts. **2. PUT each part** Send bytes `(n - 1) × part_size` up to `n × part_size` of the file to part `n`'s link, and keep the `ETag` header of each answer. Parts can go in any order and in parallel. **3. Ask for more links when you need them** The first answer has links for up to 100 parts, and each link lasts 15 minutes. `POST /uploads/{id}/parts` with `{"part_numbers": [101, 102, …]}` signs up to 100 more at a time. Ask again for any link that expired. **4. Complete the upload** `POST /uploads/{id}/complete` with every part number and its ETag. The upload becomes `uploaded`. Parts are at least 16 MiB, and a file has at most 1,000 of them, so larger files get larger parts. Use the `part_size` we send rather than choosing your own. ```javascript Node.js theme={"system"} import { open, stat } from "node:fs/promises"; import { basename } from "node:path"; const API = "https://api.reedapt.com/v1"; const headers = { Authorization: `Bearer ${process.env.REEDAPT_API_KEY}`, "Content-Type": "application/json", }; async function post(path, body) { const res = await fetch(API + path, { method: "POST", headers, body: JSON.stringify(body) }); const json = await res.json(); if (!res.ok) throw new Error(`${json.error.code}: ${json.error.message}`); return json; } export async function uploadFile(path) { const { size } = await stat(path); const upload = await post("/uploads", { filename: basename(path), size }); const links = new Map(upload.parts.map((p) => [p.part_number, p.url])); const file = await open(path); const parts = []; try { for (let n = 1; n <= upload.part_count; n++) { if (!links.has(n)) { const last = Math.min(n + 99, upload.part_count); const part_numbers = Array.from({ length: last - n + 1 }, (_, i) => n + i); const more = await post(`/uploads/${upload.id}/parts`, { part_numbers }); for (const p of more.parts) links.set(p.part_number, p.url); } const start = (n - 1) * upload.part_size; const length = Math.min(upload.part_size, size - start); const { buffer } = await file.read(Buffer.alloc(length), 0, length, start); // No API key here: the signed link carries its own permission. const res = await fetch(links.get(n), { method: "PUT", body: buffer }); if (!res.ok) throw new Error(`Part ${n} failed with ${res.status}`); parts.push({ part_number: n, etag: res.headers.get("etag") }); } } finally { await file.close(); } return post(`/uploads/${upload.id}/complete`, { parts }); } ``` ```python Python theme={"system"} import os import requests API = "https://api.reedapt.com/v1" session = requests.Session() session.headers["Authorization"] = f"Bearer {os.environ['REEDAPT_API_KEY']}" def post(path, body): res = session.post(API + path, json=body, timeout=60) if not res.ok: error = res.json()["error"] raise RuntimeError(f"{error['code']}: {error['message']}") return res.json() def upload_file(path): size = os.path.getsize(path) upload = post("/uploads", {"filename": os.path.basename(path), "size": size}) links = {p["part_number"]: p["url"] for p in upload["parts"]} parts = [] with open(path, "rb") as f: for n in range(1, upload["part_count"] + 1): if n not in links: numbers = list(range(n, min(n + 100, upload["part_count"] + 1))) more = post(f"/uploads/{upload['id']}/parts", {"part_numbers": numbers}) links.update({p["part_number"]: p["url"] for p in more["parts"]}) f.seek((n - 1) * upload["part_size"]) # requests.put, not the session: the signed link carries its own permission. res = requests.put(links[n], data=f.read(upload["part_size"]), timeout=600) res.raise_for_status() parts.append({"part_number": n, "etag": res.headers["ETag"]}) return post(f"/uploads/{upload['id']}/complete", {"parts": parts}) ``` > [!WARNING] > > Don't send your API key to the signed links. An `Authorization` header there makes storage refuse the part. ## Uploading from a link If the file is already online, send its address instead of a filename and size: ```bash theme={"system"} curl https://api.reedapt.com/v1/uploads \ -H "Authorization: Bearer $REEDAPT_API_KEY" \ -H "Content-Type: application/json" \ -d '{"source_url": "https://example.com/media/talk.mp4"}' ``` The answer is `202` with the upload in `fetching`. We download the file and the upload becomes `uploaded`, or `failed` with an `error` saying why. Check it with `GET /uploads/{id}` every 10 to 30 seconds, then start the dubs as usual. * The link must be `http` or `https` on the standard ports and reachable from the internet. Links to private networks are refused. * If the link doesn't end in a file name, add `filename` with the right extension. * Each account can have 3 links downloading at once. Past that you get `429 TOO_MANY_FETCHES`. * A download that is very slow or stalls fails with `SOURCE_URL_TOO_SLOW`. Host the file somewhere faster, or upload it in parts. ## Upload statuses | Status | Meaning | | - | - | | `uploading` | Waiting for its parts and the call to complete. | | `fetching` | We're downloading it from `source_url`. | | `uploaded` | Ready to dub. | | `used` | Already dubbed. Upload the file again to dub it again. | | `failed` | The download from `source_url` didn't work. `error` says why. | Uploads that are never completed expire. If completing one gives `UPLOAD_GONE`, start a new upload. # Webhooks Source: https://docs.reedapt.com/guides/webhooks Hear about each dub as it finishes, and check that the message came from Reedapt. A webhook endpoint is a URL on your server. When one of your dubs finishes we `POST` an event to it, so you don't have to keep asking. ## Adding an endpoint Add one in Reedapt under **Developers**, or with the API: ```bash theme={"system"} curl https://api.reedapt.com/v1/webhook_endpoints \ -H "Authorization: Bearer $REEDAPT_API_KEY" \ -H "Content-Type: application/json" \ -d '{"url": "https://example.com/reedapt/webhooks", "description": "Production"}' ``` The answer includes the endpoint's signing `secret` (`whsec_…`). **It is shown only this once.** Store it with your other secrets. The URL must be public and use `https://`. Every endpoint gets every event for the account, whichever key started the dub. ## Events | Event | When | | - | - | | `dub.completed` | A dub finished. `data.dub` is the dub, as `GET /dubs/{id}` returns it. | | `dub.failed` | A dub failed or was cancelled. `data.dub.error` says why, and its minutes were returned. | | `dub.checked` | Reedapt finished checking a dub, a few minutes after `dub.completed`, on plans where it checks dubs. `data.dub` is the dub and `data.quality` is the report that `GET /dubs/{id}/quality` returns. | | `batch.completed` | Every dub of a bulk upload made in the Reedapt app has finished. `data.batch` has the totals and the dubs. | ```json dub.completed theme={"system"} { "id": "evt_9a3e1c7b5d2f8e0a4c6b1d3f", "type": "dub.completed", "created_at": "2026-10-28T09:31:03Z", "data": { "dub": { "id": "job_3f9a2c7e1b4d", "object": "dub", "status": "completed", "target_language": "fr", "metadata": { "order_id": "1042" }, "…": "…" } } } ``` ```json dub.checked theme={"system"} { "id": "evt_5c1b7e3a9d2f4086b1e7a3c5", "type": "dub.checked", "created_at": "2026-11-15T09:36:10Z", "data": { "dub": { "id": "job_3f9a2c7e1b4d", "object": "dub", "status": "completed", "…": "…" }, "quality": { "dub_id": "job_3f9a2c7e1b4d", "checked": true, "listened": true, "lines": 84, "fixed": 3, "to_review": 1, "flagged": [{ "line": 12, "start_ms": 41200, "checks": ["fit"], "fixed": "shortened" }] } } } ``` We may add event types. Ignore types you don't handle, and answer them with `200` too. ## Answering Answer with any `2xx` within 10 seconds. Do the slow work after answering, for example by putting the event on a queue. Anything else, or no answer in time, is retried after 1 minute, 5 minutes, 30 minutes, 2 hours and 5 hours, then every 10 hours, for about 3 days. An event can occasionally arrive twice, so skip any `id` you've already handled. ## Checking the signature Every delivery has these headers: | Header | Value | | - | - | | `Reedapt-Signature` | `t=,v1=` | | `Reedapt-Event` | The event type, such as `dub.completed`. | | `Reedapt-Delivery` | This delivery's id, as listed under the endpoint's deliveries. | The signature is the hex HMAC-SHA256 of `.`, keyed with the endpoint's secret. Refuse a delivery whose signature doesn't match, or whose time is more than 5 minutes old. ```javascript Node.js (Express) theme={"system"} import crypto from "node:crypto"; import express from "express"; const app = express(); export function isFromReedapt(rawBody, header, secret) { const parts = Object.fromEntries(header.split(",").map((p) => p.split("="))); const expected = crypto .createHmac("sha256", secret) .update(`${parts.t}.${rawBody}`) .digest("hex"); const fresh = Math.abs(Date.now() / 1000 - Number(parts.t)) < 300; const given = Buffer.from(parts.v1 ?? ""); return fresh && given.length === expected.length && crypto.timingSafeEqual(Buffer.from(expected), given); } // express.raw keeps the body exactly as it was sent. app.post("/reedapt/webhooks", express.raw({ type: "application/json" }), (req, res) => { const header = req.get("Reedapt-Signature") ?? ""; if (!isFromReedapt(req.body.toString("utf8"), header, process.env.REEDAPT_WEBHOOK_SECRET)) { return res.sendStatus(400); } const event = JSON.parse(req.body); // Queue event for processing, then answer quickly. res.sendStatus(200); }); ``` ```python Python (Flask) theme={"system"} import hashlib import hmac import os import time from flask import Flask, abort, request app = Flask(__name__) def is_from_reedapt(raw_body: bytes, header: str, secret: str) -> bool: parts = dict(p.split("=", 1) for p in header.split(",") if "=" in p) signed = parts.get("t", "").encode() + b"." + raw_body expected = hmac.new(secret.encode(), signed, hashlib.sha256).hexdigest() fresh = parts.get("t", "").isdigit() and abs(time.time() - int(parts["t"])) < 300 return fresh and hmac.compare_digest(expected, parts.get("v1", "")) @app.post("/reedapt/webhooks") def reedapt_webhook(): header = request.headers.get("Reedapt-Signature", "") if not is_from_reedapt(request.get_data(), header, os.environ["REEDAPT_WEBHOOK_SECRET"]): abort(400) event = request.get_json() # Queue event for processing, then answer quickly. return "", 200 ``` > [!WARNING] > > Check the signature against the raw body exactly as it arrived. Parsing the JSON and encoding it again changes the bytes, and the signature won't match. ## Testing and troubleshooting * **Send test event** on the Developers page, or `POST /webhook_endpoints/{id}/test`, sends a `webhook.test` event to the endpoint. * The endpoint's deliveries, in the Developers page or from `GET /webhook_endpoints/{id}/deliveries`, show each attempt, what your server answered, and when the next try is due. * `POST /webhook_endpoints/{id}/deliveries/{delivery_id}/resend` sends a past delivery again, now. It keeps its event id, so a receiver that skips repeats by event id skips it too. A delivery still being tried answers `409 DELIVERY_PENDING`. * While building, use a test key: its dubs are free, and you get real `dub.completed` events. # Repeated requests Source: https://docs.reedapt.com/idempotency Send a request again safely after a timeout, without making a second dub. Networks fail. If a request to start dubs times out, you can't tell whether the dubs started. Send an `Idempotency-Key` header with `POST /uploads` and `POST /dubs`, and you can simply send the request again: ```bash theme={"system"} curl https://api.reedapt.com/v1/dubs \ -H "Authorization: Bearer $REEDAPT_API_KEY" \ -H "Content-Type: application/json" \ -H "Idempotency-Key: 7c1f6a52-2d4e-4bb1-9e0a-5f3d8c2b1a90" \ -d '{"upload_id": "job_3f9a2c7e1b4d", "source_language": "en", "target_languages": ["fr"]}' ``` * The same request sent again with the same key gets the first answer back, with the header `Idempotent-Replayed: true`, instead of doing the work twice. * Use a value that is unique to the thing you're doing, such as a UUID or your own order id. Up to 255 characters. * Keys are kept for 24 hours, per API key. * A **different** request under a key already used is refused with `422 IDEMPOTENCY_MISMATCH`. * If the first request is still running, a repeat gets `409 IDEMPOTENCY_IN_PROGRESS`. Wait a moment and send it again. * A request that was refused keeps nothing, so you can fix it and send it again with the same key. * If the first request was cut off after its dubs had started, a repeat gets `409 ALREADY_STARTED`. Find the dubs with `GET /dubs`. `GET` and `DELETE` requests can always be repeated safely and don't need a key. # Reedapt API Source: https://docs.reedapt.com/index Dub video and audio from your own software, in each speaker's own voice. The Reedapt API does what the Reedapt app does, from your code. Upload a file, start a dub in one or more languages, and get a webhook when each one is ready. Dubs are counted in minutes of source media, once per language, the same way as in the app. > [card] [Quickstart](/quickstart) > > Dub your first video in four requests. > [card] [Authentication](/authentication) > > Live keys, free test keys, and keeping them safe. > [card] [Webhooks](/guides/webhooks) > > Hear when a dub finishes, and check that the message came from us. > [card] [API reference](/api-reference/introduction) > > Every endpoint, field and error, with a playground to try them. ## How a dub works **1. Upload the file** Send the file to storage in parts with signed links, or give us a public link and we download it. See [Uploads](/guides/uploads). **2. Start the dubs** One request starts a dub for each language you ask for. Each one reserves its minutes. See [Dubs](/guides/dubs). **3. Get the files** A `dub.completed` webhook tells you when a dub is ready. Download links come from `GET /dubs/{id}/files`. ## Base URL ```text theme={"system"} https://api.reedapt.com/v1 ``` Every request needs an API key and returns JSON. The OpenAPI file is at [`/v1/openapi.json`](https://api.reedapt.com/v1/openapi.json) for code generators and API clients. # Libraries Source: https://docs.reedapt.com/libraries Official Node.js, Python, Go, Rust and PHP (Laravel) libraries that handle uploads, retries and webhook signatures for you. The libraries do everything the API does, plus the parts that take the most code by hand: sending files in parts, retrying safely, and checking webhook signatures. > [card] [Node.js](https://www.npmjs.com/package/reedapt) > > `npm install reedapt`. Node.js 18 or later, with TypeScript types. > [card] [Python](https://pypi.org/project/reedapt/) > > `pip install reedapt`. Python 3.9 or later, sync and asyncio. > [card] [Go](https://pkg.go.dev/github.com/Reedapt/reedapt-go) > > `go get github.com/Reedapt/reedapt-go`. Go 1.21 or later, standard library only. > [card] [Rust](https://crates.io/crates/reedapt) > > `cargo add reedapt`. Rust 1.83 or later, async with an optional blocking client. > [card] [PHP and Laravel](https://packagist.org/packages/reedapt/reedapt-php) > > `composer require reedapt/reedapt-php`. PHP 8.1 or later, with Laravel built in. ## Dub a file All of them read your key from `REEDAPT_API_KEY`. ```javascript Node.js theme={"system"} import Reedapt from "reedapt"; const reedapt = new Reedapt(); const { dubs, refused } = await reedapt.dub("./interview.mp4", { source_language: "en", target_languages: ["fr", "es"], metadata: { order_id: "1042" }, }); ``` ```python Python theme={"system"} from reedapt import Reedapt reedapt = Reedapt() created = reedapt.dub( "interview.mp4", source_language="en", target_languages=["fr", "es"], metadata={"order_id": "1042"}, ) ``` ```go Go theme={"system"} client := reedapt.NewClient("") // reads REEDAPT_API_KEY created, err := client.DubPath(ctx, "./interview.mp4", &reedapt.DubParams{ SourceLanguage: "en", TargetLanguages: []string{"fr", "es"}, Metadata: map[string]string{"order_id": "1042"}, }) ``` ```rust Rust theme={"system"} let client = reedapt::Client::from_env()?; // reads REEDAPT_API_KEY let created = client .dub_file("interview.mp4", DubParams::new("en", ["fr", "es"]).metadata("order_id", "1042")) .await?; ``` ```php PHP theme={"system"} $client = new Reedapt\Client(); // reads REEDAPT_API_KEY ['dubs' => $dubs, 'refused' => $refused] = $client->dub('./interview.mp4', [ 'source_language' => 'en', 'target_languages' => ['fr', 'es'], 'metadata' => ['order_id' => '1042'], ]); ``` `dub` uploads the file in parts, four at a time, and starts one dub per language. Give it a public `https://` link instead of a path and Reedapt downloads the file itself. ## Get the files Use a [webhook](/guides/webhooks) in production. While building, you can wait in code: ```javascript Node.js theme={"system"} const dub = await reedapt.dubs.waitUntilDone(dubs[0].id); if (dub.status === "completed") { const { files } = await reedapt.dubs.files(dub.id); console.log(files[0].url); // lasts an hour } ``` ```python Python theme={"system"} dub = reedapt.dubs.wait_until_done(created["dubs"][0]["id"]) if dub["status"] == "completed": files = reedapt.dubs.files(dub["id"])["files"] print(files[0]["url"]) # lasts an hour ``` ```go Go theme={"system"} dub, err := client.Dubs.WaitUntilDone(ctx, created.Dubs[0].ID, nil) if err == nil && dub.Status == reedapt.DubStatusCompleted { files, _ := client.Dubs.Files(ctx, dub.ID) fmt.Println(files.Files[0].URL) // lasts an hour } ``` ```rust Rust theme={"system"} let dub = client.dubs().wait_until_done(&created.dubs[0].id, Default::default()).await?; if dub.status == DubStatus::Completed { let files = client.dubs().files(&dub.id).await?; println!("{}", files.files[0].url); // lasts an hour } ``` ```php PHP theme={"system"} $dub = $client->dubs->waitUntilDone($dubs[0]['id']); if ($dub['status'] === 'completed') { $files = $client->dubs->files($dub['id'])['files']; echo $files[0]['url']; // lasts an hour } ``` ## Check webhook signatures Pass the raw body, exactly as it arrived: ```javascript Node.js theme={"system"} import { constructWebhookEvent } from "reedapt"; const event = constructWebhookEvent(rawBody, req.get("Reedapt-Signature"), process.env.REEDAPT_WEBHOOK_SECRET); ``` ```python Python theme={"system"} from reedapt import construct_webhook_event event = construct_webhook_event(raw_body, request.headers.get("Reedapt-Signature"), os.environ["REEDAPT_WEBHOOK_SECRET"]) ``` ```go Go theme={"system"} event, err := webhook.ConstructEvent(body, r.Header.Get("Reedapt-Signature"), os.Getenv("REEDAPT_WEBHOOK_SECRET")) ``` ```rust Rust theme={"system"} let event = reedapt::webhook::construct_event(body, signature, &secret)?; ``` ```php PHP theme={"system"} use Reedapt\Webhook; $event = Webhook::constructEvent($payload, $header, getenv('REEDAPT_WEBHOOK_SECRET')); ``` A delivery that doesn't check out raises `WebhookVerificationError` (in Go and Rust, `ConstructEvent` / `construct_event` returns an error). In Laravel, put the route behind the package's `reedapt.webhook` middleware and listen for events such as `DubCompleted`; the PHP README shows the setup. ## Ask Reedapt for changes Early access: [asking for changes](/guides/changes) is on some paid accounts first, and the others get `NOT_AVAILABLE`. Add `instructions` to `dub` or `dubs.create` for notes on the dub itself, and read the quality report with `dubs.quality`. ```javascript Node.js theme={"system"} const run = await reedapt.dubs.requests.create("job_3f9a2c7e1b4d", { text: "Is line 3 natural? If not, make it sound calmer.", autonomy: "ask", // nothing changes until you answer }); if (run.status === "needs_input") { await reedapt.runs.answer(run.id, { choice: "apply" }); // or "decline" } const { lines } = await reedapt.dubs.lines.list("job_3f9a2c7e1b4d"); ``` ```python Python theme={"system"} run = reedapt.dubs.requests.create( "job_3f9a2c7e1b4d", text="Is line 3 natural? If not, make it sound calmer.", autonomy="ask", # nothing changes until you answer ) if run["status"] == "needs_input": reedapt.runs.answer(run["id"], choice="apply") # or "decline" lines = reedapt.dubs.lines.list("job_3f9a2c7e1b4d")["lines"] ``` ```go Go theme={"system"} run, err := client.Dubs.Requests.Create(ctx, "job_3f9a2c7e1b4d", &reedapt.CreateRunParams{ Text: "Is line 3 natural? If not, make it sound calmer.", }) if err == nil && run.Status == reedapt.RunStatusNeedsInput { run, err = client.Runs.Answer(ctx, run.ID, &reedapt.AnswerRunParams{Choice: reedapt.RunChoiceApply}) // or RunChoiceDecline } lines, err := client.Dubs.Lines.List(ctx, "job_3f9a2c7e1b4d") ``` ```rust Rust theme={"system"} let mut run = client .dubs() .requests() .create("job_3f9a2c7e1b4d", CreateRunParams::new("Is line 3 natural? If not, make it sound calmer.")) .await?; if run.status == RunStatus::NeedsInput { run = client.runs().answer(&run.id, RunChoice::Apply).await?; // or RunChoice::Decline } let lines = client.dubs().lines().list("job_3f9a2c7e1b4d").await?; ``` ```php PHP theme={"system"} $run = $client->dubs->requests->create('job_3f9a2c7e1b4d', [ 'text' => 'Is line 3 natural? If not, make it sound calmer.', 'autonomy' => 'ask', // nothing changes until you answer ]); if ($run['status'] === 'needs_input') { $run = $client->runs->answer($run['id'], ['choice' => 'apply']); // or 'decline' } $lines = $client->dubs->lines->list('job_3f9a2c7e1b4d')['lines']; ``` ## What they handle * **Uploads in parts.** Parts go straight to storage in parallel. Expired links are signed again and failed parts are retried. * **Retries.** Network failures, `5xx` answers and per-minute rate limits are retried twice with backoff, honouring `Retry-After`. * **Requests that change things.** Asking for a change, answering a run and editing lines are never retried after a network failure, so a change is never made twice. * **Repeated requests.** Creating uploads and dubs always sends an [`Idempotency-Key`](/idempotency), so a retry never makes a second dub. Pass your own to stay safe across restarts. * **Errors.** Each failed request raises an error with the HTTP status, the stable [`code`](/errors) and the `request_id` to quote to us. * **Paging.** `listAll` (Node.js), `list_all` (Python and Rust), `Dubs.ListAll` (Go) and `listAll` (PHP) go through every dub. The source and full reference are in each library's README: [Node.js](https://github.com/Reedapt/reedapt-node), [Python](https://github.com/Reedapt/reedapt-python), [Go](https://github.com/Reedapt/reedapt-go), [Rust](https://github.com/Reedapt/reedapt-rust) and [PHP](https://github.com/Reedapt/reedapt-php). # Quickstart Source: https://docs.reedapt.com/quickstart Dub a video into French and Spanish in four requests. > [!NOTE] > > You need an API key. Make one in Reedapt under **Developers** in the account menu. Test keys are free and dub the first 60 seconds of a file, so you can follow this page without using minutes. Save the key in an environment variable so it stays out of your code: ```bash theme={"system"} export REEDAPT_API_KEY="rk_test_…" ``` **1. Start an upload** Tell us the file's name and size in bytes. The answer has the upload's `id`, its `part_size`, and a signed link for each of the first parts. ```bash cURL theme={"system"} curl https://api.reedapt.com/v1/uploads \ -H "Authorization: Bearer $REEDAPT_API_KEY" \ -H "Content-Type: application/json" \ -d '{"filename": "talk.mp4", "size": 48213504}' ``` ```javascript Node.js theme={"system"} const res = await fetch("https://api.reedapt.com/v1/uploads", { method: "POST", headers: { Authorization: `Bearer ${process.env.REEDAPT_API_KEY}`, "Content-Type": "application/json", }, body: JSON.stringify({ filename: "talk.mp4", size: 48213504 }), }); const upload = await res.json(); ``` ```python Python theme={"system"} import os, requests upload = requests.post( "https://api.reedapt.com/v1/uploads", headers={"Authorization": f"Bearer {os.environ['REEDAPT_API_KEY']}"}, json={"filename": "talk.mp4", "size": 48213504}, ).json() ``` ```json Response theme={"system"} { "id": "job_3f9a2c7e1b4d", "object": "upload", "filename": "talk.mp4", "size": 48213504, "status": "uploading", "part_size": 16777216, "part_count": 3, "parts": [ { "part_number": 1, "url": "https://…" }, { "part_number": 2, "url": "https://…" }, { "part_number": 3, "url": "https://…" } ], "parts_expire_at": "2026-10-28T09:27:44Z" } ``` > [!TIP] > > If the file is already online, send `{"source_url": "https://…/talk.mp4"}` instead and skip to step 4 once the upload is `uploaded`. See [Uploading from a link](/guides/uploads#uploading-from-a-link). **2. Send the file in parts** Cut the file into pieces of `part_size` bytes (the last one is shorter) and `PUT` each piece to its link. Keep the `ETag` header from each answer. ```bash theme={"system"} split -b 16777216 talk.mp4 part- # part-aa, part-ab, part-ac curl -sS -X PUT --upload-file part-aa "" -D - -o /dev/null | grep -i etag ``` > [!WARNING] > > Don't send your API key to the signed links. They already carry their own permission, and an extra `Authorization` header makes storage refuse the request. [Uploads](/guides/uploads#uploading-in-parts) has a complete upload function in Node.js and Python. **3. Complete the upload** List every part with its ETag. We join the parts into the file. ```bash theme={"system"} curl https://api.reedapt.com/v1/uploads/job_3f9a2c7e1b4d/complete \ -H "Authorization: Bearer $REEDAPT_API_KEY" \ -H "Content-Type: application/json" \ -d '{"parts": [ {"part_number": 1, "etag": "\"3858f62230ac3c91\""}, {"part_number": 2, "etag": "\"9b2cf535f27731c9\""}, {"part_number": 3, "etag": "\"6f1e9c2ab47d03e5\""} ]}' ``` The upload's `status` becomes `uploaded`. **4. Start the dubs** Ask for the languages you want. You get one dub per language. ```bash theme={"system"} curl https://api.reedapt.com/v1/dubs \ -H "Authorization: Bearer $REEDAPT_API_KEY" \ -H "Content-Type: application/json" \ -H "Idempotency-Key: talk-2026-10-28" \ -d '{"upload_id": "job_3f9a2c7e1b4d", "source_language": "en", "target_languages": ["fr", "es"]}' ``` The `Idempotency-Key` means you can safely send the request again after a timeout: you get the first answer back instead of a second set of dubs. See [Repeated requests](/idempotency). ## Get the dubbed files When a dub finishes we send a `dub.completed` [webhook](/guides/webhooks). You can also check on it with `GET /dubs/{id}`. Then ask for its files: ```bash theme={"system"} curl https://api.reedapt.com/v1/dubs/job_3f9a2c7e1b4d/files \ -H "Authorization: Bearer $REEDAPT_API_KEY" ``` ```json Response theme={"system"} { "files": [ { "kind": "dub", "filename": "talk_dubbed_french.mp4", "url": "https://…" } ], "expires_at": "2026-10-28T10:31:02Z" } ``` Each link lasts an hour. Ask again whenever you need fresh ones. ## Next steps > [card] [Set up webhooks](/guides/webhooks) > > Stop polling and hear about each dub as it finishes. > [card] [Handle errors](/errors) > > Every error has the same shape and a stable code. # Rate limits Source: https://docs.reedapt.com/rate-limits How many requests you can make, and how to tell when to slow down. | Limit | Value | | - | - | | Requests per key | 60 a minute | | Requests per account, across all keys | 120 a minute | | Links downloading at once (`source_url`) | 3 per account | | Test dubs | 20 a day per account | | Dubs unfinished at once | Set by your plan. See [Dubs](/guides/dubs#dubs-running-at-once). | Every answer carries the state of the per-key limit: | Header | Meaning | | - | - | | `RateLimit-Limit` | Requests allowed in the current minute. | | `RateLimit-Remaining` | Requests left in the current minute. | | `RateLimit-Reset` | Seconds until the minute starts over. | Past a limit you get `429` with a `Retry-After` header in seconds. Wait that long before sending again. > [!TIP] > > Most integrations stay far below these limits by using [webhooks](/guides/webhooks) instead of polling. Uploads don't count: parts go straight to storage, not through the API. If you need higher limits, [contact us](mailto:support@reedapt.com). # Usage Source: https://docs.reedapt.com/usage See the minutes and dubs your API keys used each month, per key and per language. `GET /usage/report` returns one month of the account's API usage. It covers every key on the account, so any of them can ask. ```bash theme={"system"} curl "https://api.reedapt.com/v1/usage/report?month=2026-10" \ -H "Authorization: Bearer $REEDAPT_API_KEY" ``` ```json Response theme={"system"} { "month": "2026-10", "period_start": "2026-10-01T00:00:00Z", "period_end": "2026-11-01T00:00:00Z", "minutes": 136.5, "minutes_in_progress": 12.0, "dubs": { "completed": 14, "in_progress": 1, "failed": 1 }, "keys": [ { "key_id": "7f3c2a1e-…", "mode": "live", "minutes": 136.5, "minutes_in_progress": 12.0, "dubs": { "completed": 11, "in_progress": 1, "failed": 1 } }, { "key_id": "a91d0b4c-…", "mode": "test", "minutes": 0, "minutes_in_progress": 0, "dubs": { "completed": 3, "in_progress": 0, "failed": 0 } } ], "languages": [ { "target_language": "fr", "minutes": 98.0, "minutes_in_progress": 12.0, "dubs": { "completed": 9, "in_progress": 1, "failed": 0 } } ] } ``` ## How it's counted * **Month.** Leave out `month` for this month. Months are in UTC, and a dub counts in the month it started. * **`minutes`** are the minutes of completed dubs, once per language. That is what they cost. * **`minutes_in_progress`** are reserved by dubs that haven't finished. They move to `minutes` when a dub completes and are returned if it fails or is cancelled. * **Failed and cancelled dubs** are counted under `dubs.failed` and cost nothing. * **Test keys** are free. Their dubs are counted, but never as minutes. * **Only the API.** Dubs started in the Reedapt app aren't included. `GET /usage` shows the minutes left on the account, wherever they were used. `keys` and `languages` are sorted by minutes, most first. The same report is in Reedapt under **Developers**, where each key shows its name. # Versioning Source: https://docs.reedapt.com/versioning What can change within v1, and how breaking changes are handled. This is version 1 of the API, at `https://api.reedapt.com/v1`. Within a version we only **add** things: * new endpoints; * new optional request fields; * new fields in answers; * new error codes and new event types. Write your code so these don't break it: ignore fields and event types you don't know, and handle an unknown error code by its HTTP status. A change that could break working code comes as a new version, such as `/v2`. We announce it at least 12 months before the old version stops. Changes are listed in the [changelog](/changelog).