API Documentation

Programmatic access to Scriptube for transcript extraction at scale.

🔧 Interactive API Explorer
Try API endpoints live with the OpenAPI (Swagger) interface. Test requests, view schemas, and explore responses.
Open API Explorer →

Authentication

All API requests require authentication using an API key. Get your key from API Keys in your dashboard.

Header Format

Include your API key in the X-API-Key header with every request:

X-API-Key: sk_live_your_api_key_here

Key Scopes

API keys can have different permission levels:

Scope Description
full Read and write access. Can submit new transcription jobs.
read Read-only access. Can view transcripts and usage, but cannot submit new jobs.

First 10 minutes

Price, in one line: every submit charges quota and credits per video at the full processing price, cache hits included; reading what you already own is free.

  1. Sign up and verify your email (unverified accounts get one single-video preview).
  2. Create a full-scope key in API Keys (needs a plan with API access). The secret is shown once.
  3. Check it: curl -H "X-API-Key: $KEY" https://scriptube.me/api/v1/credits/balance
  4. Submit with POST /transcripts/resolve and an Idempotency-Key header. Cached videos come back inline; missing ones return a batch_id.
  5. Wait: poll GET /transcripts/{batch_id}, or pass callback_url / register a webhook.
  6. Re-read anything you own for free with POST /transcripts/fetch; never re-submit to re-read.

Idempotency-Key

Both POST /transcripts and POST /transcripts/resolve accept an Idempotency-Key header, scoped to your account and the endpoint. Reuse the key when you retry: a retried submit never creates or charges a second batch.

  • The first call holds the key for up to 300 s while it runs; another call with it meanwhile returns 409.
  • A successful response is stored for 24 h; a replay returns it unchanged and charges nothing.
  • The key is bound to the request body: the same key with a different body returns 422.
  • A call that fails releases the key, so your retry runs fresh.
  • If our cache is unavailable the key is not checked and the call runs (and bills) normally.
  • external_id is a tag for filtering, not a dedupe key.

Base URL

All API endpoints are relative to:

https://scriptube.me/api/v1

Endpoints

POST /transcripts/resolve

Fetch once, reuse instantly. Returns transcripts we already hold immediately (billed at the full processing price, owned or not) and queues a batch only for videos we don't have yet. Accepts video, playlist and channel URLs in urls, bare 11-character ids in video_ids; the two are merged. Any mix in one request — the videos and playlists become one batch, and every batch the request creates — the videos batch and one per distinct channel — is listed in batches. Every video payload (here, /fetch, the batch poll and /videos/{video_id}/transcripts) also carries description_parsed — chapters, links, social mentions and hashtags parsed from the stored description at read time; chapters gain text only with include_segments=true on an unlocked read.

Past 50 cached videos the payloads are not inlined. cached_inline comes back false, cached is empty and cached_video_ids holds every id instead. You have already been billed for them — retrieve the content for free, 50 ids at a time, with POST /transcripts/fetch. A client that reads only cached silently loses those transcripts.

Request Body

ParameterTypeDescription
urls array Video, playlist or channel URLs (e.g. https://www.youtube.com/@channel). Required unless video_ids is given.
video_ids array Bare 11-character video ids. Merged with urls.
include_segments boolean Include timecoded segments [{start, duration, text}] per transcript
language string Caption language code, default en (e.g. ru, pt-BR). Native track when the video has one; a language YouTube can only auto-translate into is fetched as its own timed track (charged like a fresh YouTube fetch); otherwise the default track is served. Becomes the batch's default for reads, exports and webhook previews.
translate_to_english boolean Same checkbox as the web UI. A cached non-English transcript with no stored translation counts as missing so the worker translates it from cache — no YouTube re-fetch.
channel_limit integer For channel URLs: the newest N videos only (fits smaller plans). Applies to every channel in the request.
external_id string Your own id for this batch (≤ 128 chars). Echoed in every response and webhook, and filterable on GET /transcripts. A tag, not a dedupe key: use Idempotency-Key.
metadata object Arbitrary JSON object (≤ 4 KB) stored with the batch and echoed back
callback_url string Public HTTPS URL that receives batch.completed and transcript.ready for this batch, no webhook registration needed. Always signed with the callback_secret returned in this response (never with a registered webhook's secret); every part of a split submission uses the same one.
curl -X POST https://scriptube.me/api/v1/transcripts/resolve \
  -H "X-API-Key: sk_live_your_api_key" \
  -H "Content-Type: application/json" \
  -d '{"urls": ["https://www.youtube.com/watch?v=dQw4w9WgXcQ"], "include_segments": true}'

Send an Idempotency-Key header to make a retry safe: a replay returns the stored response and bills nothing. A request still in flight under the same key returns 409; the same key with another body returns 422. See Idempotency-Key.

Success Response (200 OK)
{
  "cached": [
    {
      "video_id": "dQw4w9WgXcQ",
      "url": "https://www.youtube.com/watch?v=dQw4w9WgXcQ",
      "title": "Never Gonna Give You Up",
      "channel": "Rick Astley",
      "channel_id": "UCuAXFkgsw1L7xaCfnd5JJOw",
      "published_at": "20091025",
      "duration_seconds": 213,
      "category_id": "10",
      "made_for_kids": false,
      "live_broadcast_content": "none",
      "view_count": 1500000000,
      "like_count": 17000000,
      "comment_count": 2200000,
      "topic_categories": ["https://en.wikipedia.org/wiki/Music"],
      "thumbnail_url": "https://i.ytimg.com/vi/dQw4w9WgXcQ/hqdefault.jpg",
      "metadata_fetched_at": "2026-09-18T09:00:00Z",
      "caption_tracks": [
        { "language_code": "en", "language_name": "English", "is_generated": false, "is_translatable": true }
      ],
      "transcript": {
        "language": "en",
        "source": "manual",
        "is_generated": false,
        "translation_source": null,
        "version": 1,
        "fetched_at": "2026-09-18T09:00:00Z",
        "text": "We're no strangers to love...",
        "translated_text": null,
        "segments": null
      },
      "description_parsed": {
        "chapters": [
          { "start": 0.0, "end": 45.0, "title": "Intro", "text": null },
          { "start": 45.0, "end": 213.0, "title": "The Song", "text": null }
        ],
        "links": [
          { "url": "https://www.rickastley.co.uk", "domain": "rickastley.co.uk", "label": "Official Site", "category": "website" }
        ],
        "mentions": [
          { "platform": "twitter", "handle": "@rickastley", "url": "https://twitter.com/rickastley" }
        ],
        "hashtags": ["#NeverGonnaGiveYouUp"]
      },
      "cached": true,
      "requested_at": "2026-09-18T10:00:00Z"
    }
  ],
  "cached_count": 1,
  "cached_inline": true,
  "cached_video_ids": null,
  "cached_credits_charged": 1,
  "missing_count": 0,
  "batch_id": null,
  "batch_status": null,
  "channel_batch_id": null,
  "batches": [],
  "warning": null,
  "rejected": [],
  "removed_duplicates": 0,
  "external_id": "campaign-17",
  "metadata": { "tenant": "acme" },
  "callback_secret": null,
  "message": "1 transcripts returned from cache; nothing to fetch."
}
Videos, a playlist and two channels in one request (cached omitted for brevity)
{
  "cached_count": 12,
  "cached_inline": true,
  "cached_credits_charged": 12,
  "missing_count": 30,
  "batch_id": "b1f0…",
  "batch_status": "pending",
  "channel_batch_id": "c9a1…",
  "submission_id": "8f14e45f-ea0f-4f4b-9b1e-6d2a1c3b4d5e",
  "batches": [
    { "kind": "videos", "batch_id": "b1f0…", "batch_number": 42, "status": "pending",
      "url_count": 30, "callback_secret": null },
    { "kind": "channel", "batch_id": "c9a1…", "batch_number": 43, "status": "pending",
      "channel_id": "UCuAXFkgsw1L7xaCfnd5JJOw", "title": "Rick Astley", "video_count": 210,
      "callback_secret": null },
    { "kind": "channel", "batch_id": "d4e2…", "batch_number": 44, "status": "pending",
      "channel_id": "UC2C_jShtL725hvbm1arSV9w", "title": "Veritasium", "video_count": 380,
      "callback_secret": null }
  ],
  "warning": null,
  "message": "12 transcripts returned from cache; 30 queued in batch b1f0…. 2 channel batch(es) queued."
}

batches lists every batch the request created, videos batch first. batch_id and channel_batch_id repeat entries of it and exist only so older clients keep working. Poll each batch with GET /transcripts/{batch_id} like any other, or list them in one call with GET /transcripts?submission_id=….

Over the inline cap
{
  "cached": [],
  "cached_count": 120,
  "cached_inline": false,
  "cached_video_ids": ["dQw4w9WgXcQ", "9bZkp7q19f0", "..."],
  "cached_credits_charged": 120,
  "missing_count": 0,
  "batch_id": null,
  "message": "120 cached transcripts available - over the inline limit of 50, retrieve them in chunks via POST /api/v1/transcripts/fetch; "
}
POST /transcripts/fetch

Re-download transcripts you already own — free. No credits, no daily quota. This is how you page through a /resolve response that came back with cached_inline: false, and how you re-read anything in your library later. Only videos this account has already been billed for are served; anything else is listed in not_available.

Request Body

ParameterTypeDescription
video_ids array Bare 11-character ids. At most 50 per request — chunk them, or a 422 comes back.
urls array Merged with video_ids. Video links (extra &list= junk is ignored), playlist links (expanded from your stored library, no YouTube call) and channel links (expanded to your purchased videos from that channel; an @handle costs 1 YouTube API unit, /channel/UC… costs none).
include_segments boolean Include timecoded segments per transcript
language string Which original caption track to return. Default: the primary track.
channel_cursors object Continue a channel link: {"<channel url>": "<cursor>"}, copied from the previous response's channel_cursors.

Code Example (cURL)

curl -X POST https://scriptube.me/api/v1/transcripts/fetch \
  -H "X-API-Key: sk_live_your_api_key" \
  -H "Content-Type: application/json" \
  -d '{"video_ids": ["dQw4w9WgXcQ", "9bZkp7q19f0"]}'
Success Response (200 OK)
{
  "videos": [ { "video_id": "dQw4w9WgXcQ", "url": "...", "title": "...", "transcript": { "text": "..." },
                "cached": true, "requested_at": "2026-09-18T10:00:00Z" } ],
  "not_available": ["abcdefghijk"],
  "more_video_ids": null,
  "channel_cursors": null
}

An expansion that owns more than 50 videos returns the first 50 in videos and the rest in more_video_ids — feed those straight back into the next call. A channel link expands to at most 50 of your videos per call (newest purchase first); when it has more, channel_cursors maps the link to a cursor: send the same link with channel_cursors for the next 50, until it comes back null.

Paging a large cached set

import requests

API = "https://scriptube.me/api/v1"
H = {"X-API-Key": "sk_live_your_api_key"}

r = requests.post(f"{API}/transcripts/resolve", headers=H, json={"urls": urls}).json()

videos = r["cached"]                       # inline when cached_inline is true
if not r["cached_inline"]:                 # otherwise page through the ids
    pending = r["cached_video_ids"]
    while pending:
        page = requests.post(f"{API}/transcripts/fetch", headers=H,
                             json={"video_ids": pending[:50]}).json()
        videos += page["videos"]
        pending = pending[50:]

if r["batch_id"]:                          # uncached videos are queued
    ...  # poll GET /transcripts/{batch_id} or wait for the webhook
POST /transcripts

Always-async submit: every URL is queued and you get a batch_id back. Prefer POST /transcripts/resolve — it answers instantly for anything already cached and only queues the rest. Send an Idempotency-Key header so a retry after a timeout returns the first batch instead of creating and charging a second one (details).

Videos, playlists and channels mix freely in one request. The videos and playlists become one ordinary batch per 5,000 videos (a bigger submission is split into several, parts 2..n linked to the first by parent_batch_id); each distinct channel becomes its own background batch. Every one of them is returned in batches, all sharing one submission_id. See Channels & Freshness for the gates and the compatibility rule.

Request Body

Parameter Type Description
urls required array Any mix of video URLs, playlist URLs and channel URLs
translate_to_english boolean Translate non-English transcripts to English
language string Caption language code, default en (e.g. ru, pt-BR). Native track when the video has one; a language YouTube can only auto-translate into is fetched as its own timed track (charged like a fresh YouTube fetch); otherwise the default track is served. Becomes the batch's default for reads, exports and webhook previews.
use_byok boolean Process with your stored BYOK keys instead of our pool
skip_music boolean Skip videos in YouTube's Music category
skip_kids boolean Skip made-for-kids videos
channel_limit integer For channel URLs: the newest N videos only. Applies to every channel in the request.
external_id string Your own id for this batch (≤ 128 chars). A tag, not a dedupe key: use Idempotency-Key.
metadata object Arbitrary JSON object (≤ 4 KB) stored with the batch and echoed back
callback_url string Public HTTPS URL for this batch's events, no webhook registration needed

Code Examples

curl -X POST https://scriptube.me/api/v1/transcripts \
  -H "X-API-Key: sk_live_your_api_key" \
  -H "Content-Type: application/json" \
  -d '{
    "urls": [
      "https://www.youtube.com/watch?v=dQw4w9WgXcQ",
      "https://www.youtube.com/watch?v=VIDEO_ID_2"
    ]
  }'
import requests

API_KEY = "sk_live_your_api_key"
BASE_URL = "https://scriptube.me/api/v1"

response = requests.post(
    f"{BASE_URL}/transcripts",
    headers={
        "X-API-Key": API_KEY,
        "Content-Type": "application/json"
    },
    json={
        "urls": [
            "https://www.youtube.com/watch?v=dQw4w9WgXcQ",
            "https://www.youtube.com/watch?v=VIDEO_ID_2"
        ]
    }
)

data = response.json()
batch_id = data["batch_id"]
print(f"Batch submitted: {batch_id}")
const API_KEY = "sk_live_your_api_key";
const BASE_URL = "https://scriptube.me/api/v1";

const response = await fetch(`${BASE_URL}/transcripts`, {
  method: "POST",
  headers: {
    "X-API-Key": API_KEY,
    "Content-Type": "application/json"
  },
  body: JSON.stringify({
    urls: [
      "https://www.youtube.com/watch?v=dQw4w9WgXcQ",
      "https://www.youtube.com/watch?v=VIDEO_ID_2"
    ]
  })
});

const data = await response.json();
console.log(`Batch submitted: ${data.batch_id}`);
Success Response (202 Accepted)
{
  "batch_id": "550e8400-e29b-41d4-a716-446655440000",
  "batch_number": 1,
  "status": "pending",
  "url_count": 2,
  "message": "Batch submitted for processing. Poll GET /api/v1/transcripts/{batch_id} for results.",
  "key_source": "system",
  "rejected": [],
  "removed_duplicates": 0,
  "external_id": "campaign-17",
  "metadata": { "tenant": "acme" },
  "callback_secret": null,
  "channel_batch_id": null,
  "submission_id": "8f14e45f-ea0f-4f4b-9b1e-6d2a1c3b4d5e",
  "batches": [
    { "kind": "videos", "batch_id": "550e8400-e29b-41d4-a716-446655440000", "batch_number": 1,
      "status": "pending", "url_count": 2, "callback_secret": null }
  ],
  "warning": null
}

key_source is byok_stored when your own keys were used, otherwise system. rejected lists refs dropped during expansion as {"ref": …, "reason": …}. callback_secret is returned whenever you set a callback_url (otherwise null); it signs every callback of every batch in batches, whatever webhooks the account has.

GET /transcripts/{batch_id}

Get the status and results of a specific transcript batch. A batch is finished when completed_at is set; its final status is one of completed, partial (some items delivered, some failed), failed, skipped or cancelled. Poll until completed_at != null rather than matching a status list.

Path Parameters

Parameter Type Description
batch_id required uuid The batch ID returned from POST /transcripts or /transcripts/resolve

Query Parameters

ParameterTypeDescription
skip integer Items to skip (default: 0, at most 100000; 422 above)
limit integer Items per page. Default and maximum: 50 (larger values are clamped). Page forward while has_more is true.
include_metadata boolean Add the rich video payload to each item, minus the transcript text the item already carries
include_segments boolean Include timecoded segments in the video payload. Implies include_metadata.
language string Caption track to return, e.g. es (default: the batch's language). A language the video does not have falls back to the default track — see served_language.
include_languages boolean Add transcripts to each item: every stored track with its text (segments with include_segments)

Code Examples

curl https://scriptube.me/api/v1/transcripts/550e8400-e29b-41d4-a716-446655440000 \
  -H "X-API-Key: sk_live_your_api_key"
import requests

API_KEY = "sk_live_your_api_key"
batch_id = "550e8400-e29b-41d4-a716-446655440000"

response = requests.get(
    f"https://scriptube.me/api/v1/transcripts/{batch_id}",
    headers={"X-API-Key": API_KEY}
)

data = response.json()
print(f"Status: {data['status']}")

for item in data["items"]:
    if item["status"] == "completed":
        print(f"Video: {item['title']}")
        print(f"Transcript: {item['transcript_text'][:200]}...")
const API_KEY = "sk_live_your_api_key";
const batchId = "550e8400-e29b-41d4-a716-446655440000";

const response = await fetch(
  `https://scriptube.me/api/v1/transcripts/${batchId}`,
  { headers: { "X-API-Key": API_KEY } }
);

const data = await response.json();
console.log(`Status: ${data.status}`);

data.items.forEach(item => {
  if (item.status === "completed") {
    console.log(`Video: ${item.title}`);
    console.log(`Transcript: ${item.transcript_text.slice(0, 200)}...`);
  }
});
Success Response (200 OK)
{
  "batch_id": "550e8400-e29b-41d4-a716-446655440000",
  "batch_number": 1,
  "status": "completed",
  "created_at": "2026-02-04T12:00:00Z",
  "completed_at": "2026-02-04T12:01:30Z",
  "items": [
    {
      "video_id": "dQw4w9WgXcQ",
      "url": "https://www.youtube.com/watch?v=dQw4w9WgXcQ",
      "title": "Rick Astley - Never Gonna Give You Up",
      "channel": "Rick Astley",
      "status": "completed",
      "transcript_text": "We're no strangers to love...",
      "transcript_language": "en",
      "translation_status": "not_needed",
      "transcript_version": 1,
      "duration_seconds": 213,
      "error": null,
      "error_code": null,
      "attempts": 1,
      "retry_count": 0,
      "started_at": "2026-02-04T12:00:05Z",
      "finished_at": "2026-02-04T12:01:28Z",
      "video": null,
      "transcripts": null,
      "available_languages": [
        { "code": "en", "name": "English", "is_generated": false, "is_original": true }
      ],
      "requested_language": "en",
      "served_language": "en",
      "language_hint": null
    }
  ],
  "counts": { "completed": 1, "failed": 0, "skipped": 0, "total": 1 },
  "item_count": 1,
  "skip": 0,
  "limit": 50,
  "total": 1,
  "has_more": false,
  "external_id": "campaign-17",
  "metadata": { "tenant": "acme" }
}

counts covers the whole batch, not the page. attempts counts the worker's own tries; retry_count counts retries you asked for, and that is the one the per-item retry cap is measured against. video is populated only with include_metadata=true. available_languages lists every stored track (each free to read); is_original marks the video's original audio language. When served_language differs from requested_language the requested one is not stored and the default track was served; language_hint then says how to fetch it (resubmit with language=<code>) when that is possible. translation_status says what transcript_text is: not_requested, not_needed (already English), translated (the English translation), unavailable (your plan has no translation) or pending (English asked for but not stored yet, so the original language is served). transcript_language always names the original language.

GET /transcripts

List your batches as summary rows — no items and no transcript text. Fetch a batch's items from GET /transcripts/{batch_id}.

Query Parameters

Parameter Type Description
limit integer Rows to return (1-100, default: 20)
skip integer Rows to skip (default: 0, at most 100000; 422 above). offset is accepted as an alias.
external_id string Only batches you tagged with this id at creation
submission_id uuid Only the batches one submit created (every part of a split, every channel)

Code Example (cURL)

curl "https://scriptube.me/api/v1/transcripts?limit=10&skip=0" \
  -H "X-API-Key: sk_live_your_api_key"
Success Response (200 OK)
{
  "batches": [
    { "batch_id": "b1", "batch_number": 42, "status": "completed",
      "created_at": "2026-09-18T10:00:00Z", "completed_at": "2026-09-18T10:04:00Z",
      "counts": { "completed": 5, "failed": 0, "skipped": 0, "total": 5 },
      "item_count": 5, "external_id": "campaign-17" }
  ],
  "total": 1, "skip": 0, "limit": 20, "has_more": false
}
GET /usage

Check your current usage and remaining quota.

Code Example (cURL)

curl https://scriptube.me/api/v1/usage \
  -H "X-API-Key: sk_live_your_api_key"
Success Response (200 OK)
{
  "plan": "pro",
  "daily_used": 45,
  "daily_limit": null,
  "daily_remaining": null,
  "monthly_used": 1204,
  "total_processed": 8500,
  "credits_balance": 1850,
  "credits_available": 1730
}

A limit that is not enforced is null: today credits are the only limit, so daily_limit and daily_remaining are null. credits_available (credits_balance minus the credits running batches have reserved) is what a submit can spend; below the cost a submit answers 402.

GET /plans

List all available subscription plans and their limits.

Code Example (cURL)

curl https://scriptube.me/api/v1/plans \
  -H "X-API-Key: sk_live_your_api_key"
Success Response (200 OK)
{
  "plans": [
    {
      "slug": "free",
      "title": "Free",
      "description": "Get started for free",
      "price_monthly_cents": 0,
      "price_annual_cents": 0,
      "videos_per_day": null,
      "max_batch_size": null,
      "concurrent_batches": null,
      "features": ["Batch extraction", "TXT and CSV export"],
      "credits_monthly": 100
    },
    {
      "slug": "pro",
      "title": "Pro",
      "description": "For power users",
      "price_monthly_cents": 699,
      "price_annual_cents": 6990,
      "videos_per_day": null,
      "max_batch_size": null,
      "concurrent_batches": null,
      "features": ["Everything in Starter", "API access", "Webhooks"],
      "credits_monthly": 2000
    }
  ]
}

videos_per_day, max_batch_size and concurrent_batches are null while they are not enforced (credits are the only limit). The API/webhook flags are not on this response — the table under Rate Limits & Quotas is the full picture.

GET /pricing

Current prices, live: credits per action, plans and credit packs. A price change shows up on the next call and applies to your next submit.

Code Example (cURL)

curl https://scriptube.me/api/v1/pricing \
  -H "X-API-Key: sk_live_your_api_key"
Success Response (200 OK)
{
  "currency": "usd",
  "credit_costs": {"youtube_free": 1, "elevenlabs_per_min": 10, "translation_per_1k": 12},
  "plans": [{"slug": "pro", "title": "Pro", "description": "For power users", "price_monthly_cents": 699,
             "price_annual_cents": 6990, "videos_per_day": 600, "max_batch_size": 300, "concurrent_batches": 5,
             "features": ["API access"], "credits_monthly": 2000}],
  "credit_packs": [{"slug": "micro", "name": "Micro Pack", "credits": 1000, "price_cents": 500}]
}

youtube_free is the price of one captioned video, fetched or already stored.

GET /library

Browse every video this account has purchased — your library. Lightweight rows only; pull the transcripts with POST /transcripts/fetch. Ordered newest-grant-first on an immutable key, so paging never skips or repeats.

Query Parameters

ParameterTypeDescription
after string Cursor: the previous page's next_cursor. The fast way to walk a large library; total is null on cursor pages. An invalid cursor is a 422.
skip integer Rows to skip (default: 0). Still accepted, but slower on large libraries; not together with after.
limit integer Rows per page. Default and maximum: 50.
channel_id string Filter to one channel (UC…)
playlist_id string Filter to one playlist (PL…)
curl "https://scriptube.me/api/v1/library?limit=50&channel_id=UCuAXFkgsw1L7xaCfnd5JJOw" \
  -H "X-API-Key: sk_live_your_api_key"
Success Response (200 OK)
{
  "videos": [
    { "video_id": "dQw4w9WgXcQ", "url": "https://www.youtube.com/watch?v=dQw4w9WgXcQ",
      "title": "Never Gonna Give You Up", "channel": "Rick Astley",
      "channel_id": "UCuAXFkgsw1L7xaCfnd5JJOw", "duration_seconds": 213,
      "first_accessed_at": "2026-09-01T08:00:00Z", "last_accessed_at": "2026-09-18T10:00:00Z" }
  ],
  "total": 1, "skip": 0, "limit": 50, "has_more": false, "next_cursor": null
}
GET /videos/{video_id}/transcripts

Every caption track stored for one video you own. The batch poll and /resolve only ever return the primary track — this is how you reach the other languages and the superseded versions. Returns 403 for a video this account has not purchased.

Query Parameters

ParameterTypeDescription
include_text boolean Include the text of every track (default: false)
include_segments boolean Include timecoded segments of every track
include_versions boolean Append superseded versions in versions — the only way to read them
curl "https://scriptube.me/api/v1/videos/dQw4w9WgXcQ/transcripts?include_text=true&include_versions=true" \
  -H "X-API-Key: sk_live_your_api_key"
Success Response (200 OK)
{
  "video_id": "dQw4w9WgXcQ",
  "tracks": [
    { "language": "en", "source": "manual", "is_generated": false,
      "transcript_source": "youtube", "translation_source": null, "version": 2,
      "fetched_at": "2026-09-18T09:00:00Z", "text": "...", "translated_text": null, "segments": null }
  ],
  "versions": [
    { "language": "en", "source": "manual", "version": 1,
      "fetched_at": "2026-08-01T09:00:00Z", "archived_at": "2026-09-18T09:00:00Z",
      "text": "...", "segments": null }
  ],
  "description_parsed": {
    "chapters": [
      { "start": 0.0, "end": 45.0, "title": "Intro", "text": null },
      { "start": 45.0, "end": 213.0, "title": "The Song", "text": null }
    ],
    "links": [], "mentions": [], "hashtags": []
  }
}
GET /videos/{video_id}/languages

The caption languages of one video you own, from stored data only (free): native tracks YouTube publishes (each readable with language=<code>) and translatable_to — languages YouTube can auto-translate into. Fetch one of those by submitting the video with language=<code> (charged like a fresh YouTube fetch). Returns 403 for a video this account has not purchased.

curl "https://scriptube.me/api/v1/videos/eAcOkb9G37E/languages" \
  -H "X-API-Key: sk_live_your_api_key"
Success Response (200 OK)
{
  "video_id": "eAcOkb9G37E",
  "original_language": "ru",
  "native": [
    { "code": "en-US", "name": "English (United States) (auto-generated)",
      "is_generated": true, "is_original": false, "is_translatable": true },
    { "code": "ru", "name": "Russian (auto-generated)",
      "is_generated": true, "is_original": true, "is_translatable": true }
  ],
  "translatable_to": [ { "code": "de", "name": "German" }, { "code": "fr", "name": "French" } ]
}
GET /credits/balance

Current credit balance and today's video usage. This is the cheapest authenticated call, so it is the natural credential health check.

curl https://scriptube.me/api/v1/credits/balance \
  -H "X-API-Key: sk_live_your_api_key"
Success Response (200 OK)
{
  "credits_balance": 1850,
  "credits_available": 1730,
  "plan": "pro",
  "daily_used": 45,
  "daily_limit": null
}
GET /user

Who this API key belongs to. email_verified matters: submitting and resolving are refused with 403 until the account's email is verified.

curl https://scriptube.me/api/v1/user \
  -H "X-API-Key: sk_live_your_api_key"
Success Response (200 OK)
{
  "user_id": "3f1c…",
  "email": "dev@example.com",
  "plan": "pro",
  "email_verified": true,
  "credits_balance": 1850,
  "total_videos_processed": 8500,
  "created_at": "2026-01-14T09:30:00Z"
}
GET /transcripts/{batch_id}/export

Export a whole batch. Failed and skipped items are included by default with status, error_code and error. Columns mirror VideoPayload plus two extras parsed from description: chapters and links, each a compact JSON string in CSV/TXT and a JSON string value in json/jsonl rows.

Path Parameters

Parameter Type Description
batch_id required uuid The batch ID to export

Query Parameters

Parameter Type Description
format string json, jsonl, csv, txt, srt, vtt (default: json). Subtitle formats return one file per video, ZIPped when the batch holds more than one.
include_failed boolean Include failed and skipped rows (default: true)
partial boolean Export a batch that is still running (default: false)
language string Which original caption track to export, e.g. es

Code Example (cURL)

curl "https://scriptube.me/api/v1/transcripts/550e8400-e29b-41d4-a716-446655440000/export?format=json" \
  -H "X-API-Key: sk_live_your_api_key" \
  -o transcripts.json
POST /transcripts/{batch_id}/cancel

Stop a running batch. Pending and processing items become cancelled; their daily quota and reserved credits are returned.

curl -X POST https://scriptube.me/api/v1/transcripts/{batch_id}/cancel \
  -H "X-API-Key: sk_live_your_api_key"
Success Response (200 OK)
{
  "status": "cancelled", "batch_id": "b1", "batch_status": "cancelled",
  "counts": { "completed": 2, "cancelled": 3, "total": 5 }, "external_id": "campaign-17"
}
POST /transcripts/{batch_id}/retry-failed

Requeue failed items still under the per-item retry cap. Each retried item is charged when it completes, like any processing. Answers 402 (nothing requeued) when your available credits cannot cover the items being retried.

Request Body (optional)

ParameterTypeDescription
item_idsarray Retry only these failed items
languagestring Language the retried items fetch and serve (kept on each item)
translate_to_englishboolean Override the batch's setting for the retried items
force_elevenlabsboolean Skip YouTube and transcribe the audio. 409 elevenlabs_disabled while AI transcription is switched off — nothing changes
include_permanentboolean Also retry permanent failures (video_unavailable, no_transcript, age_restricted, …), skipped by default
curl -X POST "https://scriptube.me/api/v1/transcripts/550e8400-e29b-41d4-a716-446655440000/retry-failed" \
  -H "X-API-Key: sk_live_your_api_key" -H "Content-Type: application/json" \
  -d '{"language": "de"}'
Success Response (200 OK)
{
  "status": "queued", "batch_id": "550e8400-e29b-41d4-a716-446655440000", "batch_status": "pending",
  "count": 1, "counts": { "pending": 1, "failed": 1, "total": 2 },
  "retried": ["2b1f0c9e-7d43-4c55-9a8e-0e6c1d2f3a4b"],
  "skipped": [ { "item_id": "9c8d7e6f-5a4b-4c3d-8e2f-1a0b9c8d7e6f", "error_code": "video_unavailable",
                 "reason": "permanent failure: another attempt cannot change it — pass include_permanent=true or force_elevenlabs=true" } ]
}
POST /transcripts/{batch_id}/items/{item_id}/retry

Retry one failed item. Same body as retry-failed (item_ids ignored) and the same retried/skipped answer; a permanent failure comes back in skipped unless include_permanent.

POST /transcripts/{batch_id}/rerun

Re-run every item whatever its status. Re-charges daily quota and reserves credits again. A cancelled batch needs ?force=true.

DELETE /transcripts/{batch_id}

Delete a batch. A live batch is cancelled first, so its quota and credits come back.

GET /transcripts/{batch_id}/items/{item_id}/export

Export a single item. format accepts json, jsonl, csv, txt, srt, vtt; language picks the caption track.

curl "https://scriptube.me/api/v1/transcripts/{batch_id}/items/{item_id}/export?format=srt" \
  -H "X-API-Key: sk_live_your_api_key"
POST /transcripts/estimate

Price a batch before submitting it. Returns a per-video breakdown, your balance and the total. The response also carries a precheck_token, which the /api/v1 creators do not read: a submit is reserved at its own price and each video is charged what it costs when it completes.

curl -X POST https://scriptube.me/api/v1/transcripts/estimate \
  -H "X-API-Key: sk_live_your_api_key" \
  -H "Content-Type: application/json" \
  -d '{"urls": ["https://www.youtube.com/watch?v=dQw4w9WgXcQ"], "translate_to_english": false}'
GET /channels/precheck

Size a channel before ingesting it: video count, how many we already hold, and the YouTube API cost. Takes url (channel URL or @handle).

curl "https://scriptube.me/api/v1/channels/precheck?url=@veritasium" \
  -H "X-API-Key: sk_live_your_api_key"
POST /keys

Mint a key. The full secret appears in this response and nowhere else. Needs a full-scope key to call.

Request Body

ParameterTypeDescription
name required string Label shown in the dashboard
scope string read or full (default: read)
expires_in_days integer Expiry in days (1-3650). Omit for a key that never expires.
Success Response (201 Created)
{
  "key": "sk_live_...",
  "api_key": { "id": "…", "name": "prod", "key_prefix": "sk_live_abc",
    "scope": "full", "created_at": "2026-09-18T10:00:00Z", "expires_at": null,
    "last_used_at": null }
}
GET /keys

List your live keys — prefix, scope, creation, expiry and last use. Secrets are never returned again.

DELETE /keys/{key_id}

Revoke a key. It stops working on the next request that uses it.

POST /keys/{key_id}/rotate

Replace a key: the new secret is returned once and the old one is revoked in the same call. The replacement keeps the old key's name, scope and remaining lifetime.

GET /health

Health check endpoint. No authentication required.

Code Example (cURL)

curl https://scriptube.me/api/v1/health
Success Response (200 OK)
{
  "status": "ok",
  "version": "1.0.0"
}

Channels & Freshness

Mixing videos, playlists and channels

POST /transcripts and POST /transcripts/resolve both take any mix of the three in one request. A watch?v=X&list=… link counts as one video, not a playlist.

  • The videos and playlists become one ordinary batch, returned as batch_id — or, over 5,000 videos, several batches of up to 5,000 each, all in batches (batch_id is the first), announced in warnings[]. Parts 2..n carry parent_batch_id = the first; cancelling the first cancels them all, and one callback_secret signs every part.
  • Each distinct channel becomes its own background batch. Two URLs that resolve to the same channel (an @handle and its /channel/UC… form) produce one batch, not two.
  • Every batch the request created is listed in batches, in creation order, with kind (videos or channel), batch_id, batch_number, status, callback_secret and either url_count or channel_id/title/video_count.
  • Every batch of one request carries the same submission_id. List them with GET /transcripts?submission_id=…, and polling any one of them returns that id plus its siblings in related_batches.

Keeping old clients working

channel_batch_id is the first channel entry of batches. On POST /transcripts, batch_id is the video batch when the request has one and the first channel batch otherwise — so a channel-only request looks exactly as it always did. On /resolve, batch_id stays the video batch and is null when there is none.

Gates, and what they do to the rest of the request

ConditionResult
More than 10 channel links in one request 422. Channels count against api_max_network_expansions, because each one costs a YouTube API unit to resolve.
channel_batches_enabled is off for your account 403 for the whole request, videos included. Nothing is created.
A channel URL does not resolve 404 or 502 for the whole request. Channel resolution is all-or-nothing, never partial.
A channel is very large Channels are never gated by size: the whole channel is queued, whatever your plan. Credits are the only limit. If your credits cannot cover the request, it returns 402 and nothing is queued or charged.
Not enough concurrent-batch slots 429 concurrent_limit. Each half needs its own slot: one for the video batch plus one per queued channel. The check runs before anything is created, so nothing is left behind.

Always read warnings[] (and the older one-line warning). It is how a request tells you about a split, a cut playlist or channel, videos not started, or a channel skipped while the rest succeeded.

Sizing a channel first

GET /channels/precheck?url=@handle tells you how many videos the channel has, how many we already hold and what the ingestion will cost — for 1 YouTube API unit and no enumeration. Run it before committing a large channel, and before batching several into one request.

channel_limit caps ingestion to the newest N videos and applies to every channel in the request. Leave it off and the whole channel is ingested up to the per-channel ceiling (CHANNEL_MAX_VIDEOS, 50,000 newest; over 5,000 it runs as several batches), so use the estimate to see the cost before you commit.

What a re-submit actually does

  • A stored video costs the full processing price. Every submit charges quota and credits for every video, owned or not, exactly as if it were fetched now; only reads (GET batch, export, /transcripts/fetch, an Idempotency-Key replay) are free. A video we already hold is served straight from the stored snapshot — no YouTube call, no worker.
  • Metadata refreshes only when it is stale. A video that goes through the worker gets a new metadata snapshot (view, like and comment counts, description, tags) only when the stored one is older than 24 hours. Fresher than that, the existing snapshot is reused.
  • There is no metadata-only refresh endpoint. Re-submitting a cached video will not force fresh view counts, because the cache-hit path does not run the worker. If you need current engagement numbers, read them from YouTube directly.

Rate Limits & Quotas

Plan Limits

Your API usage is subject to your subscription plan limits:

Plan Credits/Mo Daily cap Batch size Parallel batches Webhooks API
Free 100 None Any Unlimited — —
Starter 1,000 None Any Unlimited — —
Pro 2,000 None Any Unlimited 5 ✓
Business 6,500 None Any Unlimited 10 ✓
Unlimited 20,000 None Any Unlimited 25 ✓

Credit Costs

Each action consumes credits from your monthly allocation:

Action Cost
YouTube transcript (captions) 1 credits per video (the caption price)
AI transcription (ElevenLabs) 10 credits/minute
Translation 12 credits per 1K chars

Live numbers: POST /api/v1/transcripts/estimate quotes a request before you submit it, and /ui/pricing shows the current price list.

Credit Packs (Top-Up)

Need more credits? Purchase credit packs anytime. Credits never expire.

Pack Credits Price Per Credit
Micro Pack 1,000 $5.00 $0.0050
Standard Pack 2,200 $10.00 $0.0045
Bulk Pack 6,000 $25.00 $0.0042
Max Pack 13,000 $50.00 $0.0038

Purchase via dashboard or POST /api/billing/buy-credits

Rate Limiting

Limits are counted per API key, then per signed-in user, then per trusted IP — so several products behind one egress address do not throttle each other. Every response carries X-RateLimit-Limit, X-RateLimit-Remaining and X-RateLimit-Reset; a 429 adds Retry-After. Pace yourself off those headers rather than discovering the ceiling.

Operations Limit
Writes — POST /transcripts, /transcripts/resolve, /transcripts/estimate, the batch lifecycle actions (cancel, retry, retry-failed, rerun) and the key lifecycle (POST/DELETE /keys, /keys/{key_id}/rotate) 30 / minute
Reads — GET /transcripts, /transcripts/{batch_id} and its exports, POST /transcripts/fetch, /library, /videos/{video_id}/transcripts, /usage, /plans, /user, /credits/balance, /channels/precheck, GET /keys, /health 60 / minute
Webhook management — everything under /api/webhooks 30 / minute
Batch creation through the web UI (/api/batches) 10 / minute

These throttles are separate from your plan's videos-per-day quota and from the concurrent-batch cap. All three return 429 and are told apart by code — see Error Handling.

Checking Your Usage

Use GET /api/v1/usage for the daily video quota and GET /api/v1/credits/balance for the credit balance.

Error Handling

The API uses standard HTTP status codes to indicate success or failure:

Code Description
200 Success - Request completed successfully
202 Accepted - Batch submitted for processing
401 Unauthorized - Missing or invalid API key
403 Forbidden - API key lacks required permissions or email not verified
404 Not Found - Resource doesn't exist
402 Payment Required (payment_required) - Not enough credits for this request. Channels are never gated by size, so credits are the only reason for this response. Nothing was charged or queued: top up credits or upgrade, then resubmit. Retries (retry-failed, item retry) answer it too when available credits cannot cover the retried items.
409 Conflict (conflict, or elevenlabs_disabled on retry/rerun) - A request with the same Idempotency-Key is still running. Retry with backoff using the same key.
422 Unprocessable Entity (validation_error) - Invalid request body, exceeded batch size limit, or an Idempotency-Key reused with a different body
429 Too Many Requests - Rate limit or quota exceeded
500 Internal Server Error - Something went wrong on our end
503 Service Unavailable (service_unavailable) - Pricing or channel ingestion is temporarily not configured. Nothing was charged; retry later.

Error Response Format

Every /api/* error uses the same envelope. Branch on code; message is for humans and detail repeats it (or carries the structured field errors on a 422).

{
  "code": "daily_quota_exceeded",
  "message": "Daily limit reached. You have 0 videos remaining today.",
  "detail": "Daily limit reached. You have 0 videos remaining today."
}

Codes on 429

Three different things return 429. They are told apart by code:

CodeMeaningWhat to do
rate_limited Too many requests per minute Wait Retry-After seconds and retry
daily_quota_exceeded Your plan's videos-per-day limit is spent Retry tomorrow or upgrade
concurrent_limit Too many batches running at once Wait for one to finish, or upgrade

A 422 carries code: "validation_error" and the offending fields in detail.

Bring Your Own Key (BYOK)

Use your own API keys for third-party services to get better rates, higher limits, or more control over your usage.

Supported Services

Service Key Type Used For
ElevenLabs API Key Audio transcription when captions aren't available
OpenAI API Key Whisper transcription (coming soon)
YouTube Data API Key Playlist expansion, video metadata

How BYOK Works

  1. Add your key — Go to BYOK Settings and add your service API key
  2. Keys are encrypted — All keys are encrypted with AES-256 before storage
  3. Activate the key — Select which key to use (you can store multiple per service)
  4. Automatic usage — When processing videos, your key is used instead of our shared pool

Benefits

  • No credit cost — BYOK requests don't consume your Scriptube credits for that service
  • Higher limits — Use your own quota instead of shared limits
  • Better rates — If you have a discounted API plan, you keep those savings
  • Full control — Monitor usage directly in the service's dashboard

Managing BYOK Keys

BYOK keys are added, activated and removed from BYOK Settings. There is no public API for them: the keys are encrypted at rest and never leave the dashboard. Set use_byok: true on a batch to process it with your stored keys.

Integrations

Connect Scriptube to your favorite automation tools for seamless workflow integration.

Zapier, Make, Pipedream

There is no Scriptube app in these marketplaces yet. They work today through their generic HTTP and webhook steps: one HTTP step submits, and Scriptube calls you back when the batch is done.

  1. Submit: an HTTP request step (Zapier "Webhooks by Zapier → Custom Request", Make "HTTP → Make a request", Pipedream "HTTP request") — POST https://scriptube.me/api/v1/transcripts with header X-API-Key and body {"urls": ["<youtube url>"], "callback_url": "<your catch-hook url>"}.
  2. Receive: a catch-hook trigger (Zapier "Catch Hook", Make "Custom webhook", Pipedream "HTTP / Webhook") at that callback_url gets batch.completed and transcript.ready for the batch. For every batch, register the hook once with POST /api/webhooks/register instead.
  3. Fetch: if the payload is not enough, an HTTP step calls GET https://scriptube.me/api/v1/transcripts/{batch_id} or its /export.

Verify X-Scriptube-Signature where the tool can run code (see Webhooks).

n8n Integration

Self-hosted workflow automation with full API access. The official n8n-nodes-scriptube community node ships an action node and a trigger node; the trigger verifies the HMAC signature on every delivery and rejects anything unsigned, forged or outside the replay window, so its credential needs a Webhook Secret as well as an API key. The raw HTTP Request setups below are the alternative.

HTTP Request Node Setup

{
  "method": "POST",
  "url": "https://scriptube.me/api/v1/transcripts",
  "authentication": "genericCredentialType",
  "genericAuthType": "httpHeaderAuth",
  "headers": {
    "X-API-Key": "={{ $credentials.apiKey }}"
  },
  "body": {
    "urls": ["{{ $json.youtube_url }}"]
  }
}
{
  "method": "GET",
  "url": "https://scriptube.me/api/v1/transcripts/{{ $json.batch_id }}",
  "headers": {
    "X-API-Key": "={{ $credentials.apiKey }}"
  }
}
{
  "method": "GET",
  "url": "https://scriptube.me/api/v1/transcripts/{{ $json.batch_id }}/export?format=json",
  "headers": {
    "X-API-Key": "={{ $credentials.apiKey }}"
  }
}

Example n8n Workflow

┌─────────────┐    ┌─────────────┐    ┌─────────────┐    ┌─────────────┐
│  Trigger    │───▶│  Submit to  │───▶│   Wait &    │───▶│  Save to    │
│ (Schedule/  │    │  Scriptube  │    │   Poll      │    │  Notion/    │
│  Webhook)   │    │             │    │   Status    │    │  Sheets     │
└─────────────┘    └─────────────┘    └─────────────┘    └─────────────┘

Webhooks

Receive real-time notifications when your transcripts are ready. Perfect for n8n, Zapier, or custom integrations.

Webhook Limits by Plan

Plan Webhooks Rate Limit
Free — —
Starter — —
Pro 5 30 deliveries/min
Business 10 120 deliveries/min
Unlimited 25 300 deliveries/min

Register a Webhook

POST /api/webhooks/register
{
  "url": "https://your-n8n-instance.com/webhook/abc123",
  "events": ["batch.completed", "batch.failed"],
  "secret": "your-hmac-secret"
}

secret is required, 16-256 characters. We sign every delivery to this endpoint with it, so use a dedicated random string — not your API key.

Every Webhook Route

MethodPathWhat it does
POST /api/webhooks/register Register an endpoint. Body above; secret is required (16-256 chars).
GET /api/webhooks List your webhooks with their events, active flag and failure count
GET /api/webhooks/{webhook_id} One webhook's registration
DELETE /api/webhooks/{webhook_id} Unregister it
POST /api/webhooks/{webhook_id}/test Queue a signed test event for the registered URL (202 — follow it in /logs)
GET /api/webhooks/{webhook_id}/logs Delivery history: event, status, response code, attempts
POST /api/webhooks/{webhook_id}/retry ?delivery_id=<id from /logs> (required): re-queue a failed delivery by hand; one that used all four attempts gets a fresh set (202 — follow it in /logs)
POST /api/webhooks/{webhook_id}/reactivate Re-enable a webhook the circuit breaker switched off and reset its failure count
GET /api/webhooks/events/available The event list below, straight from the server

Note the prefix: webhooks live under /api/webhooks, not under /api/v1.

Available Events

Event Description data fields
batch.created Fired when a new batch is created batch_id, batch_number, url_count, estimated_credits
batch.started Fired when batch processing begins batch_id, batch_number, item_count
batch.completed Fired when all items in a batch are processed batch_id, batch_number, status, item_count, completed_count, failed_count, skipped_count, counts (every item status), partial (true when some items delivered and some failed)
batch.failed Fired when a batch fails completely batch_id, batch_number, error_message, item_count, failed_count
item.completed Fired when a single video transcript is ready batch_id, item_id, video_id, title, has_transcript
item.failed Fired when a single video fails to process batch_id, item_id, video_id, error
transcript.ready Fired when transcript text is available batch_id, item_id, video_id, title, transcript_preview (first 500 characters)
credits.low Fired when credits drop below 20% of plan allocation user_id, current_balance, threshold
credits.depleted Fired when credits reach zero user_id
subscription.updated Fired when plan changes (upgrade/downgrade) user_id, old_plan, new_plan

Every event with a batch_id (the batch and item events and transcript.ready) also carries the batch's external_id, metadata, submission_id and parent_batch_id (the first batch of a split submission or channel; null otherwise) in data. GET /api/webhooks/events/available lists the event names.

Webhook Payload Format

{
  "event": "batch.completed",
  "timestamp": "2024-01-15T10:35:00Z",
  "data": {
    "batch_id": "5f0c2a64-3d1b-4c8e-9a47-2b6e1f9d7c30",
    "batch_number": 42,
    "status": "completed",
    "item_count": 5,
    "completed_count": 5,
    "failed_count": 0,
    "skipped_count": 0,
    "counts": {"completed": 5, "failed": 0, "total": 5},
    "partial": false,
    "external_id": "order-1042",
    "metadata": {"customer": "acme"},
    "submission_id": "8f14e45f-ea0f-4f4b-9b1e-6d2a1c3b4d5e",
    "parent_batch_id": null
  }
}

Signature Verification (HMAC-SHA256)

Every delivery is signed the same way, whether it goes to a registered webhook or to a batch's callback_url. Sign the raw request body exactly as received, prefixed by the timestamp header, and compare against X-Scriptube-Signature. Reject anything whose X-Scriptube-Timestamp is more than five minutes old.

HeaderValue
X-Scriptube-Signaturesha256=<hex digest> of {timestamp}.{raw body}
X-Scriptube-TimestampUnix seconds, part of the signed message (replay protection)
X-Scriptube-EventEvent type, e.g. batch.completed
X-Scriptube-Delivery-IDDelivery id (registered webhooks only)
X-Scriptube-Batch-IDBatch id (callback_url deliveries only)
import hmac, hashlib, time

def verify(raw_body: bytes, timestamp: str, signature: str, secret: str) -> bool:
    if abs(time.time() - int(timestamp)) > 300:      # replay window
        return False
    message = f"{timestamp}.".encode() + raw_body
    expected = hmac.new(secret.encode(), message, hashlib.sha256).hexdigest()
    return hmac.compare_digest(f"sha256={expected}", signature)
// Node.js — the same check, on the raw bytes
const { createHmac, timingSafeEqual } = require('crypto');

function verify(rawBody, timestamp, signature, secret) {
  const sent = Number(timestamp);
  if (!Number.isFinite(sent) || Math.abs(Date.now() / 1000 - sent) > 300) return false;

  const message = Buffer.concat([Buffer.from(`${timestamp}.`, 'utf8'), rawBody]);
  const expected = 'sha256=' + createHmac('sha256', secret).update(message).digest('hex');

  const a = Buffer.from(expected, 'utf8');
  const b = Buffer.from(signature ?? '', 'utf8');
  return a.length === b.length && timingSafeEqual(a, b);
}

Verify the bytes, not a re-serialization. Capture the body before your framework parses it (Express: express.raw() or a verify hook; FastAPI: await request.body()). Re-encoding the parsed object will not reproduce what we signed — non-ASCII characters are escaped as \uXXXX on the wire.

Failed deliveries retry after 1, 5 and 15 minutes (four attempts in total). A webhook is deactivated only after ten deliveries in a row have used up all four attempts; any successful delivery resets the count. After an outage: POST /api/webhooks/{id}/reactivate, then retry the failed deliveries listed in /logs, or reconcile by polling GET /api/v1/transcripts?submission_id= (a batch is done when completed_at is set).

Need Help?

If you have questions or run into issues, we're here to help.

Contact Support OpenAPI Spec