Developers
Dub from code,
or from your agent.
The API and the MCP server use the same credits and the same consent rules as the app. They need the Pro plan. A key is shown once, when you create it.
Quickstart
Four steps, with curl.
Create a key in the app, then send it as a Bearer token. Calls that create or start a dub need an Idempotency-Key header. Base URL: https://dubmash.com/api/v1
Create a key
In the app, open Developers and make a key. It is shown once; copy it. Use a dm_test_ key to try things on mock providers. A Read-only key can only read (GET); anything else answers 403 SCOPE_FORBIDDEN.
Create the dub
POST /dubs with videoUrl, rightsConfirmed: true and autoStart.maxCredits. Send an Idempotency-Key header. It starts only if the quote is at or under your cap.
Wait for the dub
GET /dubs/:id until status is done (or partly_failed, failed, blocked or cancelled).
Download
GET /dubs/:id/outputs for signed MP4, SRT and VTT links per language.
OpenAPI file
Every route an API key can call, with its request and response shapes: /openapi.json (OpenAPI 3.1).
Connect your agent.
Your agent gets a quote, starts the dub and hands you the files. Fourteen tools: get_credits, get_quote, create_upload, complete_upload, create_dub, start_dub, cancel_dub, get_status, list_dubs, download, list_languages, list_voices, set_speaker_voice and update_dub. Same credits, same consent rules. dubmash voices need no consent.
Webhooks
Hear when a dub changes.
Add a webhook URL to an API key on the Developers page. Every dub made with that key then calls it when its status becomes needs_review, done, partly_failed, failed, blocked or cancelled. Saving the URL shows a signing secret once. A call that doesn’t get a 2xx answer is tried again after 1 minute, 5 minutes, 30 minutes, 2 hours, 6 hours and 24 hours. Each event has an id in dubmash-event-id: you may get one twice, so keep the ids you have handled.
Set up MCP
Five clients.
The server URL is https://mcp.dubmash.com/mcp. Claude Code, Cursor and VS Code use an API key from the Developers page. claude.ai and ChatGPT connect from their connector directory and sign in with OAuth. Both need the Pro plan. A revoked key can keep working for up to 30 seconds. Disconnecting an app can take until its sign-in token runs out (up to an hour).
Claude Code
Run this in your terminal:
claude.ai
Open Settings, then Connectors, and find dubmash in the directory. Press Connect, sign in to dubmash and press Allow. No key needed.
ChatGPT
Open Settings, then Connectors, and find dubmash in the directory. Press Connect, sign in to dubmash and press Allow. Only Claude and ChatGPT connect this way.
Cursor
Add this to .cursor/mcp.json:
VS Code
Add this to .vscode/mcp.json:
FAQs
Who can use the API and MCP?
Accounts on the Pro plan. Other accounts can use the web and mobile apps.
Do API dubs skip Check the words?
Only if you set autoStart. The dub still goes through the safety check, and only voices verified on the account are cloned.
What are the limits?
60 requests a minute and 10 dubs an hour for each key. Videos run up to 10 minutes.