Reference
Endpoints
Every operation of the VocalStack API, each with its TypeScript SDK, Python SDK, PHP SDK and curl sample. Base URL: https://api.vocalstack.com.
billing
GET /v1/billingGet the account's billing
The acting account's plan, rates (dollars an hour of audio, and the minimum a transcription is billed: `minimumSeconds`), credit balance, whether running transcriptions go on below zero (`belowZeroLimitOn`; `inBelowZero` while they do; never how far, and `belowZeroLimitChangesAt` when a limit held after a change stops), whether a new transcription would start now and what would refuse it (`canStart`, `startBlock` for a file; `canStartLive`, `startBlockLive` for a live transcription or realtime session, whose minimum costs more), the billing period and the one before, the monthly credit's use, the counted limits in use, the subscription (next payment, a scheduled interval switch, past due), auto top-up with its last attempt, the low-balance alert, a payment still being processed, the default card, a scheduled change with its refund deadline (`pendingChange`), a scheduled end or closure, the days data is kept after a downgrade (`downgradeKeepDays`, with any lowering told) and the auto top-up daily limit (`autoTopUp.autoTopupMaxPerDay`), the retention deadline after a downgrade, the plan's limits and whether it has paid. A creation that would overdraw the balance, or a new transcription when the balance does not cover its minimum, is refused 402 `insufficient_credit`; `topUpUrl` is where to add credit. `enabled: false` means this server does not bill.PUT /v1/billing/auto-top-upSet auto top-up
Turn auto top-up on (`threshold` and `amount`: any whole-cent values inside the plan list's `autoTopUp.thresholdRange` and `amountRange`; when the balance falls to the threshold, the amount is charged to the saved payment method, at most a few times a day) or off. `409 payment_method_required` until the account has a saved payment method; `409 invalid_state` while the payment provider takes no automatic charges (`autoTopUp.offered: false` on `GET /v1/billing`). The consent (time, hashed address, terms version) is recorded.POST /v1/billing/auto-top-up/retryRun auto top-up now
Charge the configured auto top-up amount to the saved payment method now, whatever the balance (after a declined attempt, once the card is fixed). Counts against the day's cap: `429 rate_limited` when it is used. `409 auto_top_up_off` when auto top-up is off; `409 invalid_state` while another charge for the account is in progress or automatic charges are not offered. Returns the auto top-up with its `last` attempt (`paid`, `declined` or `pending`).GET /v1/billing/chargesList the charges
The account's per-recording charges, newest first, with the transcription's name: open while the audio runs (metered every minute), settled once the recording ends, void when waived. Page with `cursor`.POST /v1/billing/checkoutsOpen a checkout
Start a payment at the payment provider: `{kind: "topup", amount}` adds credit (any whole-cent amount inside the plan list's `topUpRange`), `{kind: "subscribe", planId, interval}` starts a subscription (`month` or `year`); `promoCode` adds a code's bonus credit to a top-up or its discount to a subscription's first payment (`404 promo_code_invalid` when it does not apply; a code counts against the promo check's hourly limit, `429 rate_limited`). Both need `acceptTerms: true` or the request is `422 invalid_body`: the one consent, the Terms and the customer's request that the purchase start now. `waiveWithdrawal` is deprecated and ignored. Send the customer to `url`; the provider returns them to the app's billing page with `?checkout=<id>`. A signed-in person only (for an organization, its owner or admin), never an API key. `409 invalid_state` with an active subscription (cancel it first) or a plan billed by hand. `409 invalid_state` too when the payment provider refuses the call (an address it takes no mail at, a tax ID it rejects), with its reason in `message`: retrying will not help; `503 unavailable` only when it did not answer. Idempotent with `Idempotency-Key`.GET /v1/billing/checkouts/{id}Get a checkout
A checkout's status, for the page the customer comes back to: by its `checkoutId` or the provider's id (`?checkout=` on the return URL). `succeeded` once the payment landed (the credit or the subscription is then in `GET /v1/billing`).GET /v1/billing/detailsGet the invoice details
The name, email, address and tax id invoices and receipts carry. `email` is the sign-in email until another is saved.PUT /v1/billing/detailsSet the invoice details
Save the invoice details; they are written onto the provider's customer and prefill every checkout. `country` is ISO 3166-1 alpha-2; an EU VAT ID starts with its country's prefix (Greece: `EL`) and has 8 to 12 letters or digits (spaces, dots and dashes are dropped). `422 invalid_body` names the `field`.GET /v1/billing/ledgerList the ledger
The account's credit movements, newest first: signup credit, top-ups, monthly credit, charges, corrections, refunds. Page with `cursor`.PUT /v1/billing/low-balance-alertSet the low-balance alert
Turn the low-balance email on or off and set its line (`threshold`, inside the plan list's `lowBalanceAlert.range`): one email each time the balance falls to it.GET /v1/billing/payment-methodsList the payment methods
The cards saved at the payment provider: brand, last 4, expiry, wallet, which is the default, and whether the last automatic charge on it was declined. Empty before the first payment or card. For an organization, its owner or admin.POST /v1/billing/payment-methods/manageAdd or change a payment method
A link to the payment provider's portal, where a card is added, replaced or made the default (the provider has no API for those); it returns to the app's payment tab. Works before the first payment.DELETE /v1/billing/payment-methods/{id}Remove a payment method
Remove a saved card. `409 payment_method_in_use` while it pays for the subscription. Removing the last one turns auto top-up off.GET /v1/billing/paymentsList the payments
The account's payments history, newest first: top-ups, auto top-ups and subscription payments (`paid`, `pending` while the provider processes one, `failed` for a declined charge or renewal), refunds (`refunded`) and credit never paid for (`credit`: the signup credit, a promo code's bonus, an adjustment). `document` says whether an `invoice` or a `receipt` can be fetched. `businessPurchase` and `taxId`: a purchase made with a tax ID (on the invoice details or given at checkout) is a business purchase. Page with `cursor`.GET /v1/billing/payments/{id}/documentGet a payment's invoice or receipt
A link to the payment's invoice (a subscription) or receipt (a top-up), valid for a short while. The provider makes it on the first ask: `202` with `{pending: true}` until then, ask again in a moment. `409 billing_details_required` when it needs a billing name and address (`PUT /v1/billing/details`). A signed-in person only (for an organization, its owner or admin), never an API key: the first ask writes the document with the invoice details as they stand.GET /v1/billing/plansList the plans
The visible plans with their current rates (with the minimum a transcription is billed), prices, included credit, whether running work goes on below zero when the credit runs out (`belowZeroLimitOn`, never how far), limits and features, plus the top-up presets and range, the auto top-up and low-balance alert choices and ranges, the auto top-up daily limit, the signup credit and the days data is kept after a downgrade (`downgradeKeepDays`). These are the figures for new customers; an account's own are on `GET /v1/billing`. No credential needed.GET /v1/billing/portalGet the customer portal link
A link to the payment provider's customer portal (payment methods, invoices, receipts), valid for a short while. `409 payment_method_required` before the first checkout.POST /v1/billing/promo-codes/checkCheck a promo code
What a code gives `for` a `topup` (a bonus credit) or a `subscribe` (a discount off the first payment), before the checkout. `404 promo_code_invalid` when it does not exist, has expired, is used up, was redeemed by this account or gives nothing for this purchase. Rate-limited per account (a checkout carrying a `promoCode` counts against the same limit). For an organization, its owner or admin.POST /v1/billing/subscription/cancelCancel the subscription
Cancel at the end of the current period: nothing changes until then; after it the account moves to the default plan and unspent monthly credit is removed. `409 invalid_state` without a subscription.POST /v1/billing/subscription/intervalSwitch the billing interval
From the next period the subscription renews `month`ly or `year`ly (nothing is charged now) at `subscription.switchPrices` for that interval, the price of the version its next renewal is on; that price is also kept as a ceiling on what it renews on until a price change announced with its own date applies. Needs `acceptTerms: true` and `noNewWithdrawalPeriodShown: true` (the customer was shown that the switch starts no new 14-day withdrawal period) or the request is `422 invalid_body`; the consent is recorded. Send `expectedPrice` (the price shown) to get `409 invalid_state` when it changed meanwhile. `subscription.pendingInterval` shows the switch until it applies, with its date once the payment provider holds it. `409 invalid_state` without a subscription, when it ends at the period end, for an interval the plan does not offer, or a switch to `month` while monthly billing is withdrawn (`subscription.yearlyOptIn`); `503 unavailable` when the payment provider did not take or confirm it (nothing changed).DELETE /v1/billing/subscription/intervalKeep the billing interval
Take back a scheduled interval switch.POST /v1/billing/subscription/uncancelKeep the subscription
Take back a cancellation scheduled for the period end. `409 invalid_state` while monthly billing is no longer offered on the plan (`subscription.yearlyOptIn`): the yearly opt-in keeps the subscription then.POST /v1/billing/subscription/yearly-opt-inSwitch to yearly to keep the subscription
When a plan change withdraws monthly billing, a monthly subscription is never moved onto a yearly charge by itself: it ends at the renewal the change applies at (`subscription.yearlyOptIn: true`, `cancelReason: "interval_withdrawn"`) unless the customer opts in to yearly here, even after that cancellation is set. The subscription is kept, and renews yearly at `subscription.switchPrices.year` from that renewal (nothing is charged now). Needs `acceptTerms: true` and `noNewWithdrawalPeriodShown: true` (`422 invalid_body` otherwise); `expectedPrice` as for the interval switch. `503 unavailable` when the payment provider did not confirm it: nothing changed and the subscription still ends. Without a withdrawal it is an ordinary switch to yearly.GET /v1/billing/usageGet the usage report
What the account spent per day (in `tz`), per source (`dashboard` or the API key that made the transcription, deleted recordings included) and per kind (`file`, `live`): audio seconds and dollars, with running transcriptions at their current amount. `startDate` and `endDate` are inclusive days (`YYYY-MM-DD`); a start before the account's first day is moved to it and an end after today to today (the answer's `startDate` and `endDate` say what was used); at most 92 days (`400 range_too_long`).GET /v1/billing/usage/chargesList the usage report's charges
The charges behind the usage report, one by one, newest first: each file or link transcription, live recording and realtime session billed in the range (a running one at its current amount, `state: open`), with the transcription's name, its kind, its source (`dashboard` or the API key's id, as the report's `sources`), the seconds billed, the rate and the cost; money given back for a charge is a `correction` with a negative amount. `count` and `total` cover every charge matching the filters, not just the page. The range is the usage report's (`startDate`, `endDate`, `tz`: inclusive days, at most 92, `400 range_too_long`); `kind` (`file` or `live`) and `source` narrow it. Page with `cursor`.
broadcasts
GET /v1/broadcastsList broadcasts
Broadcasts owned by the acting principal. `lifecycle=all` is the active and the archived in one answer (each says which it is in its `state`), up to 500 of each — what a dashboard that shows them all should ask, once.POST /v1/broadcastsCreate a broadcast
Create a broadcast: the link listeners open (`code`), which a host can change later (the old one keeps working).POST /v1/broadcasts/archiveArchive broadcasts
Archive several broadcasts in one call (up to 500 `ids`), each as the one-broadcast call would. The answer lists the ids that were done and, for each one that was not, why (`failed[].code` and `message`); one failure does not stop the others.POST /v1/broadcasts/purgePurge broadcasts
Purge several broadcasts in one call (up to 500 `ids`), each as the one-broadcast call would. The answer lists the ids that were done and, for each one that was not, why (`failed[].code` and `message`); one failure does not stop the others.POST /v1/broadcasts/restoreRestore broadcasts
Restore several broadcasts in one call (up to 500 `ids`), each as the one-broadcast call would. The answer lists the ids that were done and, for each one that was not, why (`failed[].code` and `message`); one failure does not stop the others.GET /v1/broadcasts/{id}Get a broadcast
One broadcast of the acting principal's, by id.PATCH /v1/broadcasts/{id}Update a broadcast
Rename, change access/password, change the link (`code`; the links it had keep opening it), or update default capture settings.POST /v1/broadcasts/{id}/archiveArchive a broadcast
Archive the broadcast: hidden, its links dead, its data kept until it is restored or purged.POST /v1/broadcasts/{id}/audio-sourcesAdd an audio source
Give a broadcast a stream it can record from — a YouTube live, an internet radio address (`audioSources`). `broadcasts.record` with `audioSource` set to its id records it: each press makes a live transcription of its own, attached to the broadcast. Returns the broadcast.DELETE /v1/broadcasts/{id}/audio-sources/{source}Remove an audio source
Take an audio source off a broadcast. What was recorded from it stays. Returns the broadcast.GET /v1/broadcasts/{id}/audio-sources/{source}/checkCheck an audio source
Whether an audio source can be recorded right now: the server opens it as a recording would — a YouTube link resolved to its live stream, a radio address connected, a playlist followed, the first audio decoded — and says whether audio came back (`state`). When it did not: what went wrong (`problem`, `message`, `httpStatus`), and, when one of the likely mistakes — an extension a letter off, the other scheme, the stream a web page plays — was opened and gave audio, that address (`fix`). Nothing is recorded. A ready answer stands for a minute and a failed one for 20 s, unless `fresh` asks again.POST /v1/broadcasts/{id}/purgePurge a broadcast
Delete an archived broadcast and everything in it, for good.POST /v1/broadcasts/{id}/recordRecord on a broadcast
Record on the broadcast: a new live transcription is made, hearing the broadcast's microphone — or, with `audioSource`, one of its audio sources — attached to it and started. The grant's `transcription` is that new transcription; the broadcast's link shows it (`currentTranscription`), and it is listed with the transcriptions. Each press makes a new one. Mints a publisher realtime session (`streamUrl`, `sessionId`); 409 conflict with details.takeover when another device is recording. `scriptText` gives it words to follow like a teleprompter (`Transcription.scriptText`).POST /v1/broadcasts/{id}/restoreRestore a broadcast
Bring an archived broadcast back.GET /v1/broadcasts/{id}/scriptsList a broadcast's scripts
The broadcast's scripts, soonest first (those with no time last): the words each planned recording will follow. Record with one by passing its `id` as `scriptId`, on this broadcast or when starting a live transcription attached to it. `locked` is true once what was started from it has stopped.GET /v1/broadcasts/{id}/share-linksList a broadcast's share links
Active share links of the broadcast.POST /v1/broadcasts/{id}/share-linksCreate a share link
A named link ("Who is it for?") to the read-only public page. `allowDownload`, `allowExport` and `allowTranslate` are all on by default and per link. Send `allowTranslate: false` to close a link to translation; it takes effect from the next request.
connect
POST /v1/connect/revokeRevoke this API key
Signs an app out (RFC 7009 in spirit): revokes the API key the request is made with, and only that key, at once, and answers `204` with no body; every later request with it is `401`, so a second call gets `401` too. Call it when the person signs out of your app or switches workspace. Any API key may revoke itself, whatever its scopes; a realtime token or a signed-in person's token cannot. No body. Signing in again through Connect also revokes the key the same person got earlier for the same app (`client_name` and `redirect_uri`) and workspace, so an app holds one key per person and workspace. The answer is `Cache-Control: no-store`.POST /v1/connect/tokenRedeem a connect code
One-click Connect ([guide](/docs/guides/connect-an-app.md)): your server swaps the `code` the dashboard sent to your `redirect_uri` for an API key, with the PKCE `code_verifier` (OAuth 2.0 authorization code + PKCE; the access token is the key). No credential. The code works once and for two minutes; a second redemption, a wrong verifier or another `redirect_uri` is `400 invalid_grant`, and the code is spent either way; a second redemption with the right verifier and `redirect_uri` also revokes the key the code issued (RFC 6749 §4.1.2). A new key revokes the one the same person got earlier for the same app (`client_name` and `redirect_uri`) and workspace. A request from a web page is refused: call it from your server. Errors are OAuth's `{ error, error_description }`, never the API's error envelope, but for `429` and `503`. The answer is `Cache-Control: no-store`.
corrections
POST /v1/corrections/{id}/revertRevert a correction
Undo one correction.
languages
GET /v1/languagesList languages
Transcription, translation and voice lists with picker metadata.
me
GET /v1/meGet the current account
Who the credential is: the acting principal, the person (`userId`) or API key (`apiKeyId`) behind it, the principals it may act for, a key's scopes and its reach (`own`: only what the key created; `account`: everything on the account).
meta
GET /v1/clients/{client}Get an app's version policy
For VocalStack's own apps (`mac_app`: VocalStack for Mac): the newest build, with its download, size, SHA-256 and the release key's Ed25519 signature, and below which versions the app is deprecated or unsupported. `latest` is `null` while there is no build to offer. No credential.GET /v1/healthCheck health
Liveness: 200 while this server is up.GET /v1/openapi.jsonGet the OpenAPI document
This API's OpenAPI document, with this host in `servers`.
realtime
GET /v1/realtime/capabilitiesGet realtime capabilities
What the realtime socket takes: supported languages, audio formats, and limits.POST /v1/realtime/sessionsCreate a realtime session
Create a realtime session: a signed, stateless token for one WebSocket (`streamUrl`). Nothing is stored server-side.POST /v1/realtime/warmKeep an engine ready
Say that a person is using a screen that can start a live transcription (`canStart`), so the live transcription they start next is ready at once instead of waiting for an engine to load. Send it on real use — input, focus, a visible window — at most every 30 seconds, and at once when the spoken language selected there changes; an open window nobody uses should not send it. Two minutes after the last one, nothing is kept. `spokenLanguage` is the language selected on that screen (absent for auto-detect). It starts nothing and bills nothing.
rtmp
GET /v1/rtmpGet RTMP status
The account's RTMP server URL and stream key for an encoder, whether one is sending audio right now and what (`audio`, e.g. "48 kHz AAC"), and a signed link to listen to it (`monitorUrl`, an hour). `live` and `audio` cover every key of the account: this key and its app keys (`GET /v1/rtmp/keys` says which one is sending). The server URL is RTMPS (TLS) where the server has it; the plain `rtmp://` form on the same host works for encoders without TLS. A live transcription takes it as its source with `source.url` = `serverUrl`. The key is made on first ask, and that answer is the only one with the key in full (`streamKey`): it is kept as a hash, and later answers show `maskedStreamKey`. A lost key is replaced by a reset in the VocalStack app, which revokes the audio links issued before it. An app that streams (a plugin in the encoder, say) makes a key of its own with `POST /v1/rtmp/keys` rather than using this one.GET /v1/rtmp/keysList app stream keys
The account's app stream keys, oldest first: masked (`maskedStreamKey`), never in full, each with whether an encoder is sending on it now (`live`, `audio`). A key whose API key no longer works (revoked, expired or suspended, with no replacement from a rotation) is not listed: it no longer publishes. An API key whose reach is `own` lists the keys it made.POST /v1/rtmp/keysCreate an app stream key
A stream key of the app's own, so it can stream to the account without the account's key (`GET /v1/rtmp`), which an encoder may already be using. Audio sent on it reaches the account's RTMP source exactly as on the account's key: the same `serverUrl`, the same live transcriptions, the same monitor; the newest publisher on any of the account's keys is the one heard. The answer is the only one with the key in full (`streamKey`); it is kept as a hash. Made with an API key, it works while that key does (or its replacement, after a rotation): revoking that API key (in the VocalStack app: Developers, API keys) stops whatever streams on it within seconds. At most 20 working keys per account (`409 conflict` past that).DELETE /v1/rtmp/keys/{id}Delete an app stream key
The key stops working: an encoder publishing on it is disconnected within seconds. The account's key and its other app keys are not affected.
search
GET /v1/searchSearch transcripts
Sentence search via the English pivot ∪ literal match; results rendered into lang on demand. An owner searches their own transcriptions and broadcasts; a listener searches one broadcast, named by its code. A search that names no broadcast covers only the caller's own, and of the broadcasts named that the caller does not own only the first is searched. The filters (`site`, `language`, `kind`, `origin`, `tag`, `createdAfter`, `createdBefore`, `shared`) mean what they mean on `transcriptions.list` and narrow the search to the caller's own transcriptions that match every one given. A hit's `shareCode` plays in `@vocalstack/player` with no key, from `mediaStart` given as `startAt`. Whole words rank first: a sentence where the query starts a word (or matches the English index) comes before one where it sits inside a word or only resembles it. `more` says whether more sentences matched than `limit` returned.GET /v1/search/vectorSearch transcripts by meaning
Vector search over the caller's own transcriptions: finds the paragraphs closest in meaning to `q`, in any language, even when they share none of its words. Up to 10 hits, closest first, each with the line that best matches (`sentenceId`, `mediaStart`, `text`, as on `search.query`), its `similarity` (0 to 1) and the whole paragraph as `passage`, ready to give your own model as context (retrieval for RAG). A live transcription is searchable by meaning once it finishes. The filters mean what they mean on `search.query`. On a plan with a limit (`Limits.vectorSearchesPerHour`; Pay as you go 60 an hour, the Dashboard's searches included), every response carries `X-Vector-Search-Limit`, `X-Vector-Search-Remaining` and `X-Vector-Search-Reset` (seconds; apart from the per-minute `RateLimit-*` every response carries), and `allowance` says the same; a search the account repeated within the hour is not counted. Past the limit the answer is `rate_limited` with `Retry-After` and `data.details` `{ metric: "vector_search", limit, resetsAt, retryAfterS }`. `state` is `off` where vector search is not set up and `unavailable` when it could not run just now (try again).
share-links
PATCH /v1/share-links/{id}Update a share link
The share sheet's toggles: any of `label`, `allowDownload`, `allowExport`, `allowTranslate`. Omitted fields are left as they are.DELETE /v1/share-links/{id}Revoke a share link
Revoke: the public page 404s at once.GET /v1/shares/{code}Open a share code
What a share link's code opens, with no credential: the transcription's name, who shared it (`sharedBy`, a display name only), what the link allows (`allowDownload`, `allowExport`, `allowTranslate`), the transcription (`transcription`, read as a listener sees it) and, for a file or a link, its job. Pass the same code as `shareCode` to the transcription's reads: `GET /v1/transcriptions/{id}`, `/transcript`, `/summary`, `/translation`, `/voice`, `/voice/{sentence}`, `/audio`, `/audio/clip`, `/export` and the `subscribe` socket. A revoked or unknown code is `not_found`, and so is a link whose transcription has not started yet. Each call counts as a view of the link.
speaker-invites
GET /v1/speaker-invites/withdraw/{token}Open a consent withdrawal link
What the withdrawal link emailed to an invited person opens, with no credential: their name, who invited them and whether they have already withdrawn.POST /v1/speaker-invites/withdraw/{token}Withdraw consent to a cloned voice
The invited person takes back their agreement, with no credential: their cloned voice and their voice sample are deleted at once and they are not cloned again. The inviter is told. Withdrawing twice is the same as once.GET /v1/speaker-invites/{token}Open a speaker invitation
What an invitation link opens, with no credential: who it is for (`speakerName`), who sent it (`inviterName`), when it expires (`expired` is true once it has), the text to read aloud (`readText`) and how long the recording may be (`minSeconds` to `maxSeconds`). A link that was used, cancelled or replaced is `not_found`.POST /v1/speaker-invites/{token}Record a voice for a speaker invitation
The invited person sends their recording, with no credential: multipart/form-data with a `sample` audio part (their own voice, `minSeconds` to `maxSeconds` long) and a `meta` JSON part. `consent: true` in `meta` is their agreement to have their voice cloned; without it nothing is kept. `email` (optional) is where to send them a link to withdraw their consent later. The sample is stored, the inviter's saved speaker gets it, and their cloned voice is made from it. The link then closes. `400` for a missing consent or a recording too short or too long, `404` for a closed link, `409 invalid_state` for an expired one.
speakers
GET /v1/speakersList saved speakers
The people the account saved, newest first: what the dashboard's Speakers page lists. A saved speaker is recognised by their fingerprint in later transcriptions; `voice` is their cloned voice, or null while only the fingerprint is saved. `lifecycle=archived` lists the archived ones instead.POST /v1/speakersSave a speaker
Save a speaker from a recorded sample: multipart/form-data with a `sample` audio part and a `meta` JSON part (or `sampleUrl` in `meta`). The sample needs at least 20 seconds of speech from one person: it is diarized, and the speaker with the most speech is the one saved; the silence around them does not matter. The sample is kept and the speaker's fingerprint is taken from it, so they are recognised by name in later transcriptions. `consent: true` (the speaker agreed to have their voice cloned) also clones their voice: `voice` comes back `training` with progress 0; poll GET /v1/speakers/{id}. Training reports a real state — it never fakes progress, and a voice that cannot be trained ends `failed` with the reason on `error`. Without consent `voice` is null; PATCH `consent: true` later clones them from the stored sample. `draft: true` makes a clone to try first (no name needed); it is kept with PATCH `{"draft": false, "consent": true, "name": …}`.POST /v1/speakers/archiveArchive speakers
Archive several speakers in one call (up to 500 `ids`), each as the one-speaker call would. The answer lists the ids that were done and, for each one that was not, why (`failed[].code` and `message`); one failure does not stop the others.POST /v1/speakers/deleteDelete speakers
Delete several speakers in one call (up to 500 `ids`), each as the one-speaker call would. The answer lists the ids that were done and, for each one that was not, why (`failed[].code` and `message`); one failure does not stop the others.POST /v1/speakers/from-appearanceSave a speaker from a transcription
Save one speaker of a transcription — no sample to upload, because the transcription's own audio is the sample. `appearance` is the `speaker` index their lines carry in the transcription. Works while the transcription is still running: the server joins the stretches that speaker actually spoke for. Naming them here also labels them in the transcript and links them to the saved speaker. `consent: true` (they agreed to have their voice cloned) also clones their voice, and needs at least 20 seconds of their speech, their diarized turns added up; the refusal says how much there is. When the speaker was already cloned automatically (and not refused), that clone is the one granted, named and saved. Without consent only their fingerprint is saved (`voice` null), from at least 5 seconds of speech; PATCH `consent: true` clones them later. `spans` picks the stretches to take the sample from (media seconds, e.g. the transcript's sentences of that speaker): only that speaker's speech inside them is used, they must add up to 5–60 seconds (about 25 is plenty; under 20 makes a weaker voice), and a new clone is always made. `library: false` keeps the speaker with this recording only: they are not recognised in other transcriptions, and go when the recording does; PATCH `library: true` saves them later. `draft: true` makes a draft clone to try first (no `consent` or `name` needed; preview it in any language): it neither names nor stands for the speaker until it is kept with PATCH /v1/speakers/{id} `{"draft": false, "consent": true, "name": …}`; DELETE drops it.GET /v1/speakers/from-appearance/samplesChoose samples to clone a speaker from
One speaker's sentences in a transcription, judged as samples for a cloned voice, and the ones the server would use (`chosen`): whole, clearly transcribed sentences with nobody talking over them, little background noise and a strong voice, about 25 seconds in all. The server listens to the most promising sentences to judge them, so the answer can take a few seconds. `warning` says why a sample is a poor one: `overlaps`, `noisy`, `weak_voice` (the voice is faint or breathy there, and a clone made from it sounds hoarse), `unclear` or `cut_off`. Pass the `start` and `end` of the samples you want as `spans` to `speakers.createFromAppearance`; the chosen ones are what automatic voice cloning (`settings.voiceCloning`) uses. `appearance` is the `speaker` index the speaker's lines carry in the transcription.GET /v1/speakers/invitesList open speaker invitations
The invitations still waiting for their person to record, newest first. `state` is `pending`, or `expired` once the link's 7 days are up (renew it to send a new link). The link itself is shown only when an invitation is made or renewed, so `url` is absent here. Invitations that were recorded, cancelled or withdrawn are not listed: the person they made is on `GET /v1/speakers`.POST /v1/speakers/invitesInvite a speaker to record their voice
Invite a person by link to record about 30 seconds of their own voice and agree, themselves, to have it cloned. Their clone then only ever reads their own words, translated. The answer carries `url`, the link to send them; with `email` VocalStack also emails it. The link works once and for 7 days. A saved speaker (`speakerId`) is made at once with the name you give and no voice; it gets its sample and its cloned voice when the person records and agrees. A person can invite at most 5 people a day across all their workspaces (`429 rate_limited` past that; a new link for an existing invitation does not count), and a workspace has at most 20 open invitations (`409 conflict` past that).DELETE /v1/speakers/invites/{id}Cancel a speaker invitation
Close the link at once. The saved speaker made for the invitation goes with it, as nothing was recorded for them.POST /v1/speakers/invites/{id}/renewRenew a speaker invitation
A new link for an open or expired invitation, good for 7 more days; the old link stops working. The answer carries the new `url`, and an invitation made with an email is emailed again.POST /v1/speakers/restoreRestore speakers
Restore several speakers in one call (up to 500 `ids`), each as the one-speaker call would. The answer lists the ids that were done and, for each one that was not, why (`failed[].code` and `message`); one failure does not stop the others.GET /v1/speakers/{id}Get a saved speaker
The speaker, and their cloned voice's training state on `voice`: `training` / `ready` / `failed`, with `progress` and, when it failed, `error`.PATCH /v1/speakers/{id}Update a saved speaker
Rename a speaker, recolour them, or switch their cloned voice off (`enabled`; ignored while they have none). Absent fields are left alone; `color: ""` clears a chosen colour. `consent: true` records that they agreed to have their voice cloned; on a speaker saved with their fingerprint only it starts their clone from the stored sample (409 when no sample is stored). `library: true` saves a speaker kept with its recording only (or an automatic clone, with `consent: true`), so they are recognised in every transcription from then on; `library: false` takes one made from a transcription back out (it stays with that recording and goes with it). Not the place to withdraw permission — POST /v1/speakers/{id}/consent with `refused` does that.DELETE /v1/speakers/{id}Delete a saved speaker
Delete the speaker, their fingerprint, their recorded sample and their cloned voice. Speakers in transcriptions they were linked to keep their own name and their own automatic clone.POST /v1/speakers/{id}/archiveArchive a saved speaker
Put a speaker away: they are no longer recognised, their voice no longer speaks and is not offered, and they no longer name or stand for any speaker in a transcription — those are unlinked, and the ones they had named are back to their plain labels. Their sample is kept; restore brings them back (transcriptions stay unlinked) and delete removes them for good. `archivedAt` says when.POST /v1/speakers/{id}/consentGrant or refuse consent to clone a speaker
Record whether the speaker agreed to have their voice cloned. Every speaker with 20 seconds of speech in a recording is cloned automatically with `consent: "pending"`; a clone speaks, is offered in `GET /v1/voices/available` and has a preview only once its consent is `granted`. `granted` (optionally with a `name`, which also names the speaker in the recording they came from) makes it usable, and on a speaker saved with their fingerprint only starts their clone from the stored sample; `refused` deletes their audio and voice at once and they are not cloned again. Refusing later withdraws consent the same way. Each decision is recorded with who made it and when; `granted` on a speaker already granted is recorded again (the host re-confirming permission). With `settings.voiceCloning` on, a transcription's automatic clones are granted on the host's word as they are made.GET /v1/speakers/{id}/previewPreview a speaker's cloned voice
The speaker's cloned voice speaking, Ogg/Opus — `format=caf` for Apple's media stack, which will not play Ogg. 409 while it is not `ready` or the speaker has no clone. The owner's token may ride in `access_token`, because an `<audio>` element cannot carry a header.POST /v1/speakers/{id}/restoreRestore a saved speaker
Bring an archived speaker back into use. Transcriptions they were unlinked from when they were archived stay unlinked.GET /v1/speakers/{id}/sampleGet a speaker's sample
The audio this speaker was saved from (an upload, or the clip cut from a transcription), for their owner alone. Ranged. 404 when no sample is stored. It is what lets a draft picked up after a reload be the screen that was left — take, waveform and playback — rather than a preview of one.
tags
GET /v1/tagsList tags
The account's tags, by name. Each transcription lists its own in `tags`.POST /v1/tagsCreate a tag
A tag: `name` (1 to 40 characters, unique in the account however it is cased: `conflict` when taken) and `color`, one of `coral`, `amber`, `lime`, `green`, `teal`, `blue`, `violet`, `pink` — when omitted, the first no tag of the account has yet. An account keeps up to 200 tags.PATCH /v1/tags/{id}Update a tag
Rename or recolour a tag: any of `name`, `color`. Omitted fields are left as they are. Every transcription with it shows the change, so a key that reaches only its own transcriptions is `forbidden`.DELETE /v1/tags/{id}Delete a tag
Delete a tag: it comes off every transcription it is on. The transcriptions stay. A key that reaches only its own transcriptions is `forbidden`.POST /v1/tags/{id}/transcriptionsTag transcriptions
Put the tag on the transcriptions in `add` and take it off those in `remove`, by id, up to 500 in one call. All or none: an id that is not one of yours is `not_found` and nothing changes. Adding a tag a transcription already has, or removing one it does not, is not an error. Returns the tag.
transcriptions
GET /v1/transcriptionsList transcriptions
Transcriptions owned by the acting principal (file, link and live), newest first (by `createdAt`), a page at a time: follow `nextCursor` (absent on the last page) as `cursor`. A cursor is never an offset: transcriptions created, changed or archived while you page are neither repeated nor skipped among the rest. `lifecycle=all` is the active and the archived in one list. The filters narrow the list as the dashboard's search and filters do, and every one given must match; `total` counts the matches across every page. `shared=true` keeps the transcriptions with a live share link, and each one's `shareCode` plays in `@vocalstack/player` with no key.POST /v1/transcriptionsCreate a transcription
Transcribe a file or a link: creates the transcription, its recording and a server-owned job. multipart/form-data with a `file` part (+ optional `options` JSON part), or JSON with `url` (fetched server-side). The source is kept in the media store. Follow the job with `jobs.get`. Never refused for the plan's transcriptions at once: past that limit the transcription is created all the same and its job waits `queued`, with `job.queue`, until one of the account's own transcriptions ends, then starts by itself (the account's jobs in the order they were queued); its charge opens when it starts.POST /v1/transcriptions/archiveArchive transcriptions
Archive several transcriptions in one call (up to 500 `ids`), each as the one-transcription call would. The answer lists the ids that were done and, for each one that was not, why (`failed[].code` and `message`); one failure does not stop the others.POST /v1/transcriptions/liveCreate a live transcription
Create a live transcription: captured as it is spoken — this device's microphone, or a stream the server pulls — rather than read from a file (`live: true`). It is created idle; `transcriptions.start` starts it, and `transcriptions.pause`, `resume` and `stop` drive it. `broadcasts` (at most one id) attaches it to that broadcast from the start. A stream `source.url` may be a web page that plays one (a radio station's page): the first live stream found on it becomes `source.url`, and a page with none is refused (`invalid_options`); searching a page counts against the link check's hourly allowance of web pages.GET /v1/transcriptions/lookupFind a link's transcription
The caller's own transcription of a link, if there is one: the newest active (not archived or purged) transcription whose recording was transcribed from `url`. A YouTube link matches any link to the same video (`watch?v=`, `youtu.be`, `shorts`, `embed`, `live`); any other link matches the same URL, its scheme and host in any case, without its `#fragment` and with or without a trailing slash. A finished one is preferred to one still being transcribed, and either to one that failed or was stopped. `transcription` is null when there is none; the link is not fetched.GET /v1/transcriptions/probeProbe a link
What a link is before it is transcribed: `live` — a YouTube live on air or scheduled, an endless HTTP stream, an HLS playlist with no end, a dynamic DASH manifest — belongs in a live transcription; `file` is transcribed as one; `unknown` could not be told. `source` names the live form's source (`youtube`, `radio`). A web page is not a recording (`ok: false`), but `media` lists the recordings and live streams on it — media files, playlists, YouTube videos, a station's stream — each found, then opened as a link of its own would be, with its title on the page when it has one and its `kind` (`live` or `file`): create one transcription per `file` entry. A page whose own player plays a live stream (a radio station's page) is `kind: live` and `ok: true`, its stream first in `media`: a live transcription made from the page records that stream. When `ok` is `false`, `reason` says why for a client to choose its own next step (`web_page`, `site_not_fetched` and `meeting` with `siteName`, `not_found`, `unreachable`, `forbidden`, `not_media`, `copy_protected`, `too_long`, `unknown`) and `problem` says what is wrong in a sentence for people, never what to do: a link that is plainly not a recording (a PDF, an image) or is copy-protected is refused, and so is a YouTube or Loom video longer than a file may be (8 hours). A Loom share link is a `file` when the video is public; a private one is `ok: false` with `forbidden`. Nothing is kept. 60 a minute; searching a web page also counts against an hourly allowance — 20 with a plan, 10 on pay as you go, 2 on credit never paid for — and past it the probe answers `rate_limited` with `retryAfterS`.POST /v1/transcriptions/purgePurge transcriptions
Purge several transcriptions in one call (up to 500 `ids`), each as the one-transcription call would. The answer lists the ids that were done and, for each one that was not, why (`failed[].code` and `message`); one failure does not stop the others.POST /v1/transcriptions/restoreRestore transcriptions
Restore several transcriptions in one call (up to 500 `ids`), each as the one-transcription call would. The answer lists the ids that were done and, for each one that was not, why (`failed[].code` and `message`); one failure does not stop the others.GET /v1/transcriptions/{id}Get a transcription
One transcription, by id: for its owner, or, with `shareCode`, `listenerToken` or `access_token`, any listener who can reach it or its broadcast (without the owner's details).PATCH /v1/transcriptions/{id}Update a transcription
Rename, or update its settings: while it is running, `settings` also applies to it at once (mode, language, labels).PUT /v1/transcriptions/{id}/appearances/{idx}Name a speaker
Name a speaker of this transcription: `idx` is their display number, the `number` of "Speaker <number>" (`TranscriptSnapshot.speakers[].number`, `transcript.speakerNumbers`). A transcription has one set of speakers, so the name is given to that person in every recording of it they speak in. Empty or absent `name` clears it. Naming does not save them as a speaker: `speakers.createFromAppearance` does that.POST /v1/transcriptions/{id}/archiveArchive a transcription
Archive the transcription: hidden, its links dead, its data kept until it is restored or purged.GET /v1/transcriptions/{id}/audioDownload a transcription's audio
302 to a freshly signed URL. kind=delivery (owner + listeners, 1 h), voice (a rendered spoken track, needs lang=, owner + listeners, 1 h; VocalStack picks its voices, and `voices=cloned|synthetic` is the only choice; `voice=` is accepted for compatibility and serves a track already made under that `voiceKey`, else only says cloned or synthetic; through a share link a language other than the spoken one needs the link's `allowTranslate`; a track not made yet is queued, from the clips already spoken where there are any, and answers 503 engine_unavailable with `retryAfterS` until it is ready, or 429 rate_limited when the transcription already has as many readings being made as it may), background (the transcription's sound with the voices taken out, music and ambience, to play under a spoken track; owner + listeners, 1 h; format=ogg or caf), speech (the transcription's sound with the background taken out: the speech alone, without music, ambience or noise, aligned with the original to play in its place; same access; format=ogg or caf). Both are made for every transcription while it is transcribed, piece by piece (a live transcription once it ends; earlier transcriptions are queued once); asking for them never starts the work. Until the whole track is ready they answer 503 engine_unavailable with `retryAfterS`, `readyUntilS` (the media seconds already separated, from 0) and `parts`: `[{startS, endS, url}]`, consecutive pieces covering 0 to `readyUntilS`, each a signed URL (1 h) in the asked format, to play in place of the original up to `readyUntilS`. The other kinds: source (owner or a link that allows downloads), video (the source's video as it came, kept beside its audio on a plan that stores source video, Job.hasVideo; owner or a link that allows downloads) or master (owner, 5 min). Through a share link EVERY kind needs the link's `allowDownload` — streaming a file and saving it are the same request, so a link with audio off plays nothing either. The delivery is Opus in two containers: format=ogg (default) and format=caf, the one Safari/iOS plays (WebKit rejects or mis-times Ogg); pick by canPlayType('audio/x-caf; codecs=opus'). format=mp3 is for SAVING (delivery and voice): the one container every player opens, encoded on first request and kept (kinds delivery_mp3, voice_mp3:<lang>). The transcription's `media` lists which renditions are sealed (kinds delivery, delivery_caf, delivery_mp3); the CAF is remuxed on first request when it is not there yet.GET /v1/transcriptions/{id}/audio/clipGet an audio clip
A stretch of the audio as WAV (16-bit, 16 kHz, mono), available while the transcription is still open — for replaying a line during live correction. Owner + listeners; at most 120 s. Through a share link it needs the link's `allowDownload`, like every other way of asking for the audio.PUT /v1/transcriptions/{id}/broadcasts/{broadcast}Attach a broadcast
Feed a broadcast from the live transcription `id`: listeners on the broadcast's link read the transcription while it records, and its recordings are listed with the broadcast's own. A transcription feeds one broadcast at a time: attaching it to another moves it there and stops it feeding the one before. A broadcast can be fed by several transcriptions. Returns the transcription.DELETE /v1/transcriptions/{id}/broadcasts/{broadcast}Detach a broadcast
Stop feeding the broadcast from the live transcription `id`. Returns the transcription.GET /v1/transcriptions/{id}/correctionsList corrections
The corrections made to the transcript, newest first, a page at a time: follow `nextCursor` (absent on the last page) as `cursor`.POST /v1/transcriptions/{id}/correctionsApply corrections
Apply a batch of word edits and line rewrites atomically; every target must be settled. Each correction says whether its line is voiced as corrected (`voiced`): the voice may only say what was said, so a correction is voiced only when every word it says is a word of the recognizer's text (punctuation, case, Latin accents and number formatting aside) or of a fresh reading of the line's audio, taken automatically when the recognizer's text is not enough, and it drops no negation the audio has. A line spanning several segments lists neighbouring segments only (400 `invalid_options` otherwise). Any other correction is saved and read, but voice clips and voice tracks keep speaking what the recognizer heard (`notVoicedReason: rewrite`). VocalStack speaks transcripts, never text a caller wrote.GET /v1/transcriptions/{id}/exportExport a transcription
A real file: PDF, XLSX (Excel workbook), SRT or WebVTT subtitles, plain text (`txt`), Markdown (`md`) or JSON, corrections included. `speakerLabels` (`auto` When Needed, `on`, `off`) overrides the transcription's own speaker labels for this file only; without it the file follows the transcription's setting. With no labels the XLSX has no Speaker column and JSON's `speakerName` is null. `timestamps` (PDF, text, Markdown): `paragraph` (default) one per paragraph, `line` one per line with no paragraphs, `off` none. `startS`/`endS` keep only the lines that overlap that window of the recording, in seconds; times stay as in the recording. `summary=true` puts the AI summary first (PDF, text, Markdown, JSON, and the XLSX About sheet) when there is one, in `lang` when it was translated. A WebVTT cue names its speaker with a `<v>` tag and a visible `Name: ` prefix. The PDF of a finished transcription reads in paragraphs (built by the engine after finalize; a download that finds them missing or stale has them rebuilt first, waiting up to a minute). Owner, a share link (`shareCode`) that allows export, or a listener of its broadcast (`listenerToken`) once the transcription has ended. While the job runs the export is partial (file name suffixed, `partial` flagged). `lang` makes the file read in that language — the translation the reader sees on screen, one line per sentence, sentences not yet translated are translated first; the file name carries the language and JSON's `translated` is true. The spoken language, or no `lang`, is the transcript as spoken. A share link with Translate off may only have that.GET /v1/transcriptions/{id}/historyGet a transcription's event log
The transcription's durable event log in order, each frame stamped with the wall time it was written — replays the transcription exactly as the host saw it. A page at a time: follow `nextCursor` (absent on the last page) as `cursor`, or start after a `seq` you hold with `after` (not both). Owner only.GET /v1/transcriptions/{id}/jobGet a job
The transcription's job: its state and progress (done/total segments, media seconds, pct). A `queued` job with `queue` is waiting its turn behind the account's other transcriptions (the plan's `concurrentTranscriptions` are running) and starts by itself when one ends; `queue.position` 1 is the next to start.GET /v1/transcriptions/{id}/job/previewGet a job's preview media
A job waiting in `cropping`: the media for the trim step to draw the waveform from in the browser. From a link (`preview: true`), the file the server fetched — read once, kept until the job is started or for ten minutes, never stored; from an upload, its stored source streamed through. 404 once a link's copy is gone.POST /v1/transcriptions/{id}/job/retryRetry a job
Re-queue a failed job from its stored source. Past the plan's transcriptions at once it waits its turn (`queue`) behind the account's other queued jobs instead of being refused.POST /v1/transcriptions/{id}/job/startStart a cropped job
Release a job waiting in `cropping` (created with `crop: true`): the window of the source to transcribe, in seconds — an omitted bound is the start or the end of the file — then the job is queued. Timestamps in the transcript count from the window's start. Past the plan's transcriptions at once it waits its turn (`queue`) instead of being refused.GET /v1/transcriptions/{id}/media-tokenGet a media token
The owner's credential for this transcription's media URLs: pass it as `media=` to `/audio`, `/audio/clip` and `/voice/{sentence}` in place of `access_token`. It reads this transcription's media and nothing else, and it is the same string for a whole UTC day (valid until the end of the next one) — an access token rotates every few minutes, and a credential in the URL is part of the browser's cache key, so clips fetched with one were fetched again at every rotation.POST /v1/transcriptions/{id}/pausePause a transcription
Pause capture. Idempotent.POST /v1/transcriptions/{id}/publish-tokenCreate a publish token
Re-attach a publisher (reconnect or another device; takeover=true demotes the current one).POST /v1/transcriptions/{id}/purgePurge a transcription
Delete an archived transcription and everything in it, for good.POST /v1/transcriptions/{id}/restoreRestore a transcription
Bring an archived transcription back.POST /v1/transcriptions/{id}/resumeResume a transcription
Resume a paused transcription.POST /v1/transcriptions/{id}/retranscribeRetranscribe a line
Read one line's audio again with the language forced, and apply what the recognizer hears as a line rewrite. A line heard in the wrong language cannot be repaired word by word — every word is wrong together — so this is the repair for it. The segments must be settled, like every other correction; the answer is the same `line` corrections a hand-typed rewrite produces, with the same revert behind them. 503 `engine_unavailable` means the audio for that line has not reached this machine yet and the ask is worth repeating; 503 `unavailable`, that the line could not be read just now. `language_unavailable`: lines of this transcription cannot be read again in another language (its engine has no second model).GET /v1/transcriptions/{id}/scriptsList a transcription's scripts
The transcription's scripts, soonest first (those with no time last): the words it will follow. Start it with one by passing its `id` as `scriptId`. `locked` is true once what was started from it has stopped.GET /v1/transcriptions/{id}/share-linksList a transcription's share links
Active share links of the transcription.POST /v1/transcriptions/{id}/share-linksCreate a share link
A named link ("Who is it for?") to the read-only public page. `allowDownload`, `allowExport` and `allowTranslate` are all on by default and per link. Send `allowTranslate: false` to close a link to translation; it takes effect from the next request.POST /v1/transcriptions/{id}/startStart a live transcription
Start a live transcription and mint a publisher realtime session (`streamUrl`, `sessionId`). A transcription runs once: started, paused and resumed as often as needed, then stopped for good; starting one that has already been stopped is `invalid_state` (create a new one). 409 conflict with details.takeover when another device is sending its audio; `takeover: true` moves it here. When its source is a stream URL the server pulls the URL and publishes it itself: the grant carries no `streamUrl`, and `transcription.ingest` (plus `stream.ingest` frames) says where it stands. `scriptText` gives it words to follow like a teleprompter (`Transcription.scriptText`).POST /v1/transcriptions/{id}/stopStop a transcription
End capture; finalize runs asynchronously. A live transcription stops only from paused. A file transcription stops at any point before its job is done: the job fails with `errorCode` `stopped`, and what was transcribed before the stop is kept (and billed; nothing is billed when it had not started transcribing).POST /v1/transcriptions/{id}/summarizeRequest a summary
Ask for the transcription's AI title and summary. A transcription made with `summary` gets them after finalize on its own; asking turns `summary` and `title` on for one made without them. Call this when a finished transcription has none (or its pass failed) and poll the recording: `ready` carries them, `pending` means the pass is queued or running, `not_requested` that the transcription is under a minute (never summarised), `unavailable` that this server has no summariser or the transcription has no transcript (nothing was said).GET /v1/transcriptions/{id}/summaryGet a transcription's summary
The title and summary as they stand — `ready` once there is a summary (the title is the transcription's name when it was made without `title`), `pending` while the engine is still writing them, `not_requested` for a transcription made without `summary` or shorter than a minute, `unavailable` on a server without a summariser. Nothing is queued (that is `summarize`), so a share-link viewer may ask too. `lang` reads them in that language, for a transcription made with `summaryTranslations`: the one the reader picked on screen, which the transcript and the downloads follow. The engine translates the summary into every language the transcription was listened to or read in as it writes it, so those are ready; any other language is translated once, on the first ask, and kept. `lang` in the answer says the translation was had. The spoken language, or no `lang`, is the summary as written. Through a share link a language other than the spoken one needs the link's `allowTranslate`.GET /v1/transcriptions/{id}/transcriptGet a transcript
Snapshot up to lastSeq; the backfill for subscribers (after=cursor). A line scoring under `settings.confidence.hideBelow` (0.60 by default — the line's own mean word probability, not a count of bad words) is hidden as "Audio unclear". Listeners see it blanked (`suppressed`, text=''); anyone shown the text — the owner, a share-link reader — gets `unclear` instead and keeps every word. Either way the line is spoken to nobody: `GET .../voice/{sentence}` answers 404 for it. Listeners also see translations filtered to lang. Through a share link (`shareCode`), `lang` needs the link's `allowTranslate`: without it any language other than the one spoken is `forbidden`, never a silently untranslated snapshot.GET /v1/transcriptions/{id}/translationGet a translation
Sentences of the transcript translated into `lang` (a translation target), by sentence id (`sentences`, comma separated): what a reader in another language pages through. The owner, or any listener who can reach its broadcast or transcription; through a share link it needs `allowTranslate`. A listener's new (transcription, language) pairs are limited per network an hour. A transcription has at most 10 languages besides the one it was spoken in (translated or read aloud, live or afterwards): an 11th is 409 `language_limit_reached`, and one it already has always works.GET /v1/transcriptions/{id}/voiceGet a transcription's voice tracks
What this transcription can be heard speaking, one row per language and reading: rendered tracks (`sealed`) and their jobs, and the per-sentence clips a live audience left behind (`clips`, with the sentence ids and the voice that spoke them). An ended transcription has only clips — this is how a listener finds them again and plays its spoken translation back a line at a time. VocalStack picks the voices; on an ended transcription the rows that are its current reading for a kind of voice carry `chosenFor` (`cloned`, `synthetic`): play that row's clips with `voice=<voiceKey>`. The owner, or any listener who can reach its broadcast or transcription; `lang` narrows it to one. A spoken translation needs the link's `allowTranslate` when reading through a share link — without it the listing carries only the spoken language, and asking for another is `forbidden`.POST /v1/transcriptions/{id}/voiceRender voice tracks
An 11th language besides the one spoken is 409 `language_limit_reached` (a transcription has at most 10; one it already has, in any voice, is never refused). Render spoken tracks for a finished transcription, one job per language (1–10 codes, each one /v1/languages says has a voice). The owner, or any listener who can reach its broadcast or transcription (`listenerToken`, `shareCode`, or a bearer token in `access_token`); through a share link a language other than the spoken one needs the link's `allowTranslate`. VocalStack picks the voice that reads each speaker; the only choice is cloned or synthetic (`voices`). With neither `voices` nor a named voice, the transcription's default cast speaks: each speaker's own consented clone when `voiceCloning` is on, else a distinct stock voice of their gender. `voice` and `voiceBySpeaker` are accepted for compatibility and only say which kind: any cloned voice named (`clone:…`) means `voices: cloned` and needs `consent: true`, stock voices only mean `voices: synthetic`; the voices named are never used. The answer lists every track; the one this call reads for each language carries `chosenFor` with its kind.GET /v1/transcriptions/{id}/voice/{sentence}Get a spoken sentence
One spoken sentence, Ogg/Opus (`format=caf` for Apple's media stack). `sentence` is a sentence's `sentenceId` from the transcript (`sentences[].sentenceId`), not a segment's position; one the transcription does not have is a 404. VocalStack picks the voice: by default each speaker is read in their own cloned voice when its consent is granted and the transcription has `voiceCloning` on, else in a stock voice of their gender, a different one for each speaker. The only choice is `voices=cloned` or `voices=synthetic`, as on `POST /v1/transcriptions/{id}/voice`; cloned falls back to a stock voice for a speaker with no usable clone. `voice=<voiceKey>` (a row of `GET /v1/transcriptions/{id}/voice`) serves a clip already made in that reading as it is; a clip not made yet is read in VocalStack's own cast for the kind the key names (cloned when it names a `clone:…` voice, else synthetic), never in the voice named. The `X-Voice-Key` response header names the reading the clip was read in, and `X-Voices` says whether that was `cloned`, `synthetic` or `mixed`. The owner, or any listener who can reach its broadcast or transcription. A clip in a language the transcription was not spoken in is a spoken translation: through a share link it needs `allowTranslate`.
uploads
POST /v1/uploadsStart an upload
Send a file straight to storage instead of through `transcriptions.create`'s multipart body, for large files and many at once. Give the file's `name`, `bytes` (its exact size) and `mime`; the answer lists `parts`, each a link to PUT that part's bytes to (exactly `bytes` of them, the file's next slice), with no credential. Parts can go in any order and in parallel, and a failed one is sent again to the same link. Each PUT answers an `ETag` header: give every part's number and etag to `uploads.complete`, then create the transcription with `transcriptions.create` and `uploadId`. Refused like a file would be: over the plan's file size (`payload_too_large`), or without the credit a file transcription needs to start. An upload not used for a transcription by `expiresAt` (a day) is deleted. While the server has direct uploads switched off it answers 409 `invalid_state`: send the file to `transcriptions.create` as multipart instead.POST /v1/uploads/{id}/completeComplete an upload
Join the parts sent to an upload's links into its file: `parts` names every part, 1 to the last, each with the `ETag` its PUT answered. A part that was not sent, or an etag that does not match, is `invalid_options` and the upload stays open to send it again; a file whose size is not the `bytes` declared is discarded (`invalid_audio`). Completing again answers the same upload. Then `transcriptions.create` with `uploadId` transcribes it.
voices
GET /v1/voices/availableList available voices
The voices that can speak a language, best first (`default` marks the language's default voice). For information only: VocalStack picks the voice that reads each speaker, a distinct stock voice of their gender or, with `voiceCloning` on, the speaker's own consented clone; the only choice a caller has is cloned or synthetic (`voices`, `voiceCloning`). Open to listeners; a bearer token also returns that account's saved cloned voices (not automatic clones). Cloned entries carry `consent`, `auto` and, with `recording`, `speaker`.GET /v1/voices/previewPreview a voice
A few seconds of a voice speaking a language, Ogg/Opus (`format=caf` for Apple's media stack). Only voices the catalogue offers can be previewed.