Overview
Base URL: https://voice.toolscase.com/api/v1. All requests and responses are JSON (except file uploads and exports). The web app uses these same endpoints, so anything you can do in the studio you can automate. New to the API? Start with the quickstart.
Authentication
Create a key in Settings → API (Pro and Business). Keys look like vs_live_…, are shown once, and are bound to one workspace. Send it as a Bearer token:
curl https://voice.toolscase.com/api/v1/usage \
-H "Authorization: Bearer vs_live_xxxxxxxxxxxxxxxx"
Keep keys server-side. Revoke a leaked key immediately from the same settings page.
Responses and errors
A single resource is wrapped as { "data": { … } }. Lists are { "data": [ … ], "meta": { "page", "per_page", "total", "last_page" } }. Errors always look like:
{ "error": { "code": "quota_exceeded", "message": "You've used your 200,000 characters this month.",
"meter": "tts_chars", "used": 200000, "limit": 200000,
"upgrade_url": "https://voice.toolscase.com/pricing", "topup_available": false } }
| HTTP | code | Meaning |
|---|
| 401 | unauthenticated | Missing or invalid API key. |
| 403 | forbidden | The key's workspace can't access this resource, or the plan doesn't include the API. |
| 402 | plan_required | Feature needs a higher plan. Extra: required_plan, feature, upgrade_url. |
| 402 | quota_exceeded | Monthly allowance used up. Extra: meter, used, limit, upgrade_url, topup_available. |
| 409 | job_running | Too many jobs running for your plan's concurrency limit. |
| 422 | validation_failed | Invalid input. Extra: fields {name: [messages]}. |
| 429 | rate_limited | Slow down. Extra: retry_after (seconds); also sent as a Retry-After header. |
Limits
- Concurrency: Pro runs 3 jobs at once, Business 5. Extra jobs queue; exceeding hard limits returns
409 job_running. - Per-job size: 200,000 characters (Pro) or 500,000 (Business) per text-to-speech job.
- Rate limits: requests are rate-limited per key and IP. On
429, wait retry_after seconds before retrying. Use webhooks instead of tight polling loops. - Quotas: API usage counts against the same monthly allowances as the web app.
Voices
GET /voices
List voices. Filters: language, accent, gender, age, style, tier, favorites=1, q. Filter values with no voices are omitted from meta.filters.
curl "https://voice.toolscase.com/api/v1/voices?language=en-GB" \
-H "Authorization: Bearer $VS_KEY"
{
"data": [{
"id": "bf_emma", "name": "Emma", "engine": "kokoro",
"language": "en-GB", "language_label": "English (UK)",
"accent": "british", "gender": "female", "age_group": null, "styles": [],
"tier": "free", "min_plan": null, "locked": false,
"preview_url": "/previews/bf_emma.mp3", "is_favorite": false, "is_cloned": false,
"description": null, "credit": null
}],
"meta": { "filters": { "language": [{ "value": "en-GB", "label": "English (UK)", "count": 3 }], "...": [] } }
}
POST /voices/{id}/favorite
Add a voice to favourites. DELETE the same path to remove.
POST /voices/clonePro+
Create a cloned voice (multipart): name, sample (file, 20–120 s), consent (file — the speaker reading the consent phrase), speaker_name, consent_text, confirm=true. Public figures are blocked.
DELETE /voices/{id}
Delete a cloned voice.
Text to speech
Jobs are asynchronous: create one, then poll it or receive a webhook. Identical requests (same normalised text, voice, settings and engine) return the cached result immediately with status completed and cached: true.
POST /tts
Create a speech job. Use `text` for one voice, or `script` for multi-speaker (Starter+ when more than one voice).
{
"text": "Hello! <break time=\"500ms\"/> Welcome to Voice Studio.",
"voice_id": "af_heart",
"title": "Welcome clip",
"settings": { "speed": 1.0, "pitch": 0, "volume": 0, "format": "mp3", "bitrate": 128 }
}
curl -X POST https://voice.toolscase.com/api/v1/tts \
-H "Authorization: Bearer $VS_KEY" \
-H "Content-Type: application/json" \
-d '{"text":"Hello world","voice_id":"af_heart","settings":{"format":"mp3","bitrate":128}}'
201 {
"data": {
"id": 123, "title": "Welcome clip", "status": "queued", "progress": 0, "queue_position": 2,
"char_count": 39, "premium": false, "voice": { "id": "af_heart", "name": "Heart" }, "engine": "kokoro",
"settings": { "speed": 1, "pitch": 0, "volume": 0, "format": "mp3", "bitrate": 128 },
"format": "mp3", "duration_sec": null, "audio_url": null, "download_url": null,
"chapters": [], "error": null, "cached": false, "project_id": null,
"created_at": "2026-10-09T12:00:00Z", "completed_at": null
}
}
GET /tts/{id}
Get a job. When status is completed, audio_url (inline) and download_url (attachment) are short-lived signed links.
GET /tts
List jobs (without text). Query: project_id, q, status, page.
PATCH /tts/{id}
Update title or project_id.
DELETE /tts/{id}
Delete a job and its audio.
POST /tts/{id}/retry
Retry a failed job.
POST /tts/importStarter+
Extract narration text from an upload (PDF, DOCX, EPUB) or a URL. Returns {title, text, char_count, chapters[]} — review it, then POST /tts.
{ "upload_id": 456 } // or { "url": "https://example.com/article" }
POST /tts/bulkPro+
Multipart: csv (columns text[, filename][, voice_id]), voice_id, settings (JSON string). Returns a BulkBatch; GET /tts/bulk/{id} for progress and zip_url.
curl -X POST https://voice.toolscase.com/api/v1/tts/bulk \
-H "Authorization: Bearer $VS_KEY" \
-F [email protected] -F voice_id=af_heart -F 'settings={"format":"mp3","bitrate":192}'
Uploads
POST /uploads
Multipart upload. purpose: stt | music | clone_sample | consent | import. Returns {id, filename, size, mime, duration_sec}.
curl -X POST https://voice.toolscase.com/api/v1/uploads \
-H "Authorization: Bearer $VS_KEY" \
-F purpose=stt -F [email protected]
Speech to text
POST /stt
Create a transcription from an upload_id or a media_url (direct http(s) link to an audio/video file — no YouTube). language: "auto" or a code like "en". speaker_labels and num_speakers need Starter+.
{ "upload_id": 789, "language": "auto", "speaker_labels": true, "num_speakers": 2, "title": "Interview" }
curl -X POST https://voice.toolscase.com/api/v1/stt \
-H "Authorization: Bearer $VS_KEY" \
-H "Content-Type: application/json" \
-d '{"upload_id":789,"language":"auto"}'
201 {
"data": {
"id": 42, "title": "Interview", "status": "queued", "progress": 0, "duration_sec": null, "language": null,
"text": null, "segments": [], "speakers": [], "audio_url": null,
"summary": null, "translations": {}, "error": null, "project_id": null, "created_at": "2026-10-09T12:00:00Z"
}
}
GET /stt/{id}
Get a transcript. segments: [{id, start, end, text, speaker, words:[{w, s, e}]}], speakers: [{id:"S1", name}].
GET /stt
List transcripts. Query: project_id, q, page.
PATCH /stt/{id}
Update title, edited segments, or speaker names.
DELETE /stt/{id}
Delete a transcript and its source audio.
POST /stt/{id}/translatePro+
{target_language} → 202; the result lands in translations[lang].
POST /stt/{id}/summarisePro+
→ 202; the result lands in summary {status, text, chapters}.
GET /stt/{id}/export?format=txt|srt|vtt|docx|pdf&translation=es
Download an export as a file. Free plans: txt and srt.
curl -L "https://voice.toolscase.com/api/v1/stt/42/export?format=srt" \
-H "Authorization: Bearer $VS_KEY" -o interview.srt
Usage, projects and library
GET /usage
Current period usage: tts_chars, premium_chars (with credits), stt_minutes, cloned_voices — each {used, limit}.
GET /plans
Public plan list (no auth needed).
GET /projects
List projects. POST {name} to create; PATCH/DELETE /projects/{id}.
GET /library
Combined list of TTS jobs and transcripts. Query: type=tts|stt, project_id, q, page.
GET /dictionary
Pronunciation dictionary (Starter+). POST {term, spoken_as}; PATCH/DELETE /dictionary/{id}.
POST /shares
Create a public share link {type, id} → {token, url, embed_url, embed_html} (Starter+). DELETE /shares/{token} to revoke.
GET /status
Public service status: {api, engine, queue:{tts_waiting, stt_waiting, est_wait_sec}}.
Webhooks
Register endpoints in Settings → Webhooks or via POST /webhooks {url, events}. Events: tts.completed, tts.failed, stt.completed, stt.failed, bulk.completed. The signing secret is returned once when you create the webhook. Send a test event with POST /webhooks/{id}/test.
Each delivery is a POST with a JSON body:
{ "event": "tts.completed", "data": { /* the TtsJob, Transcript or BulkBatch */ }, "created_at": "2026-10-09T12:00:05Z" }
Respond with any 2xx within a few seconds. Failed deliveries are retried 3 times with backoff, so make your handler idempotent (use data.id + event).
Verifying signatures
Every request has an X-Voice-Signature header: t=<unix time>,v1=<hex HMAC-SHA256>, where the HMAC is computed over `${t}.${rawBody}` with your webhook secret. Compute it over the raw body (before JSON parsing), compare in constant time, and reject old timestamps.
Node.js
import crypto from "node:crypto";
// rawBody: the exact request body string; header: req.headers["x-voice-signature"]
export function verifyVoiceStudio(rawBody, header, secret, toleranceSec = 300) {
const parts = Object.fromEntries(header.split(",").map((p) => p.split("=")));
const t = Number(parts.t);
if (!t || Math.abs(Date.now() / 1000 - t) > toleranceSec) return false;
const expected = crypto.createHmac("sha256", secret).update(`${t}.${rawBody}`).digest("hex");
const given = Buffer.from(parts.v1 ?? "", "hex");
const want = Buffer.from(expected, "hex");
return given.length === want.length && crypto.timingSafeEqual(given, want);
}
PHP
<?php
function verify_voice_studio(string $rawBody, string $header, string $secret, int $tolerance = 300): bool
{
parse_str(str_replace(',', '&', $header), $parts);
$t = (int) ($parts['t'] ?? 0);
if (! $t || abs(time() - $t) > $tolerance) {
return false;
}
$expected = hash_hmac('sha256', $t . '.' . $rawBody, $secret);
return hash_equals($expected, (string) ($parts['v1'] ?? ''));
}
// Usage: verify_voice_studio(file_get_contents('php://input'), $_SERVER['HTTP_X_VOICE_SIGNATURE'], $secret);
Python
import hashlib, hmac, time
def verify_voice_studio(raw_body: bytes, header: str, secret: str, tolerance: int = 300) -> bool:
parts = dict(p.split("=", 1) for p in header.split(","))
t = int(parts.get("t", 0))
if not t or abs(time.time() - t) > tolerance:
return False
expected = hmac.new(secret.encode(), f"{t}.".encode() + raw_body, hashlib.sha256).hexdigest()
return hmac.compare_digest(expected, parts.get("v1", ""))