Skip to main content
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.

Node.js

npm install reedapt. Node.js 18 or later, with TypeScript types.

Python

pip install reedapt. Python 3.9 or later, sync and asyncio.

Go

go get github.com/Reedapt/reedapt-go. Go 1.21 or later, standard library only.

Rust

cargo add reedapt. Rust 1.83 or later, async with an optional blocking client.

PHP and Laravel

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.
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 in production. While building, you can wait in code:

Check webhook signatures

Pass the raw body, exactly as it arrived:
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 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.

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, 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 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, Python, Go, Rust and PHP.