Base URL for examples: https://www.captionpass.com · OpenAPI document
The API does two jobs from your own systems:
POST /api/v1/process checks one caption file against a platform preset, and optionally a named standard, and returns the fixed file with a report of every change. Nothing is kept./api/v1/library/* adds files to your workspace's library, each with its own signed record, and returns the records and the library report: the same evidence the app produces, under the same rules.The API comes with every offer except the free account: Solo, Team, The audit, Program 150, Program 500, Program 1,500, Contract. Create keys in Settings, under API keys. A key acts in its workspace, with its role there; when access ends the workspace turns read-only, and the API reads everything and adds nothing.
Machine-readable contract and importable collections for CI pipelines and API clients.
apiKey to your cp_live_… secret.examples/api/ (GitHub).Import in Postman: Import → Link paste the collection URL, then import the environment and select it before sending requests.
Send your secret on every request (TLS required). Never put keys in query strings, logs, or browser bundles. Call the API from your backend: it does not answer browser CORS requests.
Authorization: Bearer cp_live_...
https://www.captionpass.com/api/v1/...
Scope process:write. Multipart multipart/form-data:
file, required: SRT, VTT, SBV, ASS, TTML, or JSON IR.preset, optional, default youtube: the platform the file is for.fixProfile, optional: warn-only, layout-preserve-breaks, auto-split-sentences, auto-split-cps.standard, optional: the accessibility standard to grade against. Adds a report.standard verdict, clause by clause. An unrecognised value is refused rather than ignored.Content-Length over about 4.25 MiB is refused with 400 payload_too_large before the body is read.| preset | Output | Intent |
|---|---|---|
youtube | srt | YouTubeSRT for YouTube upload: plain UTF-8 cues, styling stripped per YouTube Help (no vendor line-length cap enforced). |
tiktok | srt | TikTok / ShortsSRT for TikTok/Shorts: vendor format rules only; readability targets are optional suggestions after export. |
html5 | vtt | HTML5 / WebVTT playerWebVTT per W3C: required structure and tag handling; no spec-mandated line length or CPS on export. |
generic | srt | Generic safeCaptionPass safe defaults when the destination is unknown: SRT, plain text, line length and CPS enforced. |
lms | ttml | LMS / TTML (IMSC1-friendly)TTML / IMSC1-friendly output: format and tag rules per spec; line length/CPS available as suggestions. |
instagram-reels | srt | Instagram / ReelsSRT for Meta Reels/Stories: vendor upload rules only; short-line targets are suggestions. |
linkedin | srt | LinkedInSRT for LinkedIn video posts per Help; professional line/CPS targets are suggestions. |
vimeo | vtt | VimeoWebVTT for Vimeo: player-oriented tag rules; line length/CPS are suggestions. |
facebook | srt | Facebook / Meta videoSRT sidecar for Meta video uploads; feed readability targets are suggestions. |
zoom | vtt | Zoom / webinar VTTWebVTT for Zoom/webinar players: format rules only; webinar line/CPS targets are suggestions. |
developer-json | json | Developer JSON (IR)Stable JSON timeline (CaptionPass IR v1) for round-tripping, automation, and future API use. |
curl -sS -X POST "https://www.captionpass.com/api/v1/process" \ -H "Authorization: Bearer $CAPTIONPASS_API_KEY" \ -F "file=@./captions.srt" \ -F "preset=youtube"
A preset says which platform the file is for. A standard says which regulation it is graded against. They are independent, so a request can name both.
| standard | Document | Who it binds |
|---|---|---|
wcag-2.1-aa | WCAG 2.1 Level AAW3C Web Content Accessibility Guidelines 2.1, Level AA (W3C Recommendation, 5 June 2018) | The technical standard named by the ADA Title II web rule for state and local government content, due 26 April 2027 for large entities and 26 April 2028 for small ones. |
en-301-549 | EN 301 549 (European accessibility)ETSI EN 301 549 V3.2.1 (2021-03), Accessibility requirements for ICT products and services | The harmonised European standard behind the European Accessibility Act, in force since 28 June 2025, and behind EU public-sector procurement. |
fcc-79.1 | FCC caption quality (47 CFR 79.1)47 CFR 79.1(j)(2) — caption quality standards, adopted by FCC 14-12 (2014) | Video programming distributed on US television, and — through 47 CFR 79.4 — clips of that programming redistributed online. |
dcmp | DCMP Captioning Key (educational media)Described and Captioned Media Program, Captioning Key: Guidelines and Preferred Techniques (dcmp.org/learn/captioningkey, as published on 2026-11-06) | Educational media, and the house style most US school and university media libraries are procured against. |
report.standard.clauses[] gives each clause a status of pass, fail, or not_evaluated, with the findings that decided it and, where a caption file alone cannot settle a clause, the reason. Accuracy under FCC 79.1 needs the audio, so it is always reported as not evaluated, never as a pass.
curl -sS -X POST "https://www.captionpass.com/api/v1/process" \ -H "Authorization: Bearer $CAPTIONPASS_API_KEY" \ -F "file=@./captions.srt" \ -F "preset=youtube" \ -F "standard=wcag-2.1-aa"
JSON: report, output, the dual-delivery fields (aidedOutput, suggestions, …), and remainingApiRunsToday.
Not POST /api/process
The free converter on the website uses POST /api/process with browser guards. It is not for integrations: use POST /api/v1/process with a key.
Everything the library does in the app, from your own pipeline. Each file you add is checked by the same engine, given its own signed record, kept in your workspace's library and counted against its caption hours. A file already in the library comes back as duplicate and costs nothing. Up to 10 files per request; each gets its own result, and a refused file never fails the rest.
Retrying is safe. If you never got an answer, send the same files again: a file already in the library comes back as duplicate with its fileId, costs no hours and gets no second record. After a 500, some files in the request may have been added, and sending them all again adds the rest. The Idempotency-Key header is not read.
The key decides the workspace. A personal key acts in the workspace you sign in to, with your role there. A team key reads and adds files in its team's library and never deletes them, and keeps working when the person who created it leaves. A workspace whose access has ended stays readable through the API and refuses new files with 403 access_ended.
| Route | Scope | Returns |
|---|---|---|
| POST /api/v1/library/files | library:write | Multipart files (or one file), and optional group, vendorId and replaces. One result per file: added, duplicate or rejected. |
| GET /api/v1/library/files | library:read | One page of files, newest first, and the whole library summed. limit is 100 by default and at most 500; send nextCursor back as cursor until hasMore is false. |
| GET /api/v1/library/files/{fileId} | library:read | The file's answers for every criterion, and its signed record. |
| GET /api/v1/library/files/{fileId}/record | library:read | The signed record as a file, the same one the app downloads. |
| GET /api/v1/library/report | library:read | The library report as JSON. |
Name who captioned the files with vendorId, an id from your workspace's vendor list. You keep that list in the app; the report gives each vendor's id in scorecard.rows. An id your workspace does not have refuses every file in the request with unknown_vendor. The vendor is your statement: it is shown in your library and report, and never written into a signed record.
When a vendor sends back a corrected file, add it with replaces set to the file it corrects, one file per request. The file it corrects needs an open fix request, or the corrected file comes back rejected with not_requested. Without replaces, a file is still matched to an open request by its wording. A matched result carries matched, with whether the request is now resolved, and the corrected file's record names the record it replaces. The replaced file stays readable, with replacedBy, and leaves the library's totals.
The report is version 4: each file's vendor, replaces and replacedBy, every fix request in requests, the vendor scorecard in scorecard (null when no vendor is named), and videoLibrary when a YouTube channel is connected: its videos by answer, the video hours with no captions, and how current it is.
A record proves itself. Anyone can check one without an account, at /verify or with POST /api/verify-receipt:
# Add two files to the library
curl -sS -X POST "https://www.captionpass.com/api/v1/library/files" \
-H "Authorization: Bearer $CAPTIONPASS_API_KEY" \
-F "files=@lecture-01.srt" -F "files=@lecture-02.vtt" -F "group=BIO 101"
# Add a file and name who captioned it (vendor ids are in the report's scorecard.rows)
curl -sS -X POST "https://www.captionpass.com/api/v1/library/files" \
-H "Authorization: Bearer $CAPTIONPASS_API_KEY" \
-F "files=@lecture-03.srt" -F "vendorId=$VENDOR_ID"
# Add the corrected file a vendor sent back for a fix request
curl -sS -X POST "https://www.captionpass.com/api/v1/library/files" \
-H "Authorization: Bearer $CAPTIONPASS_API_KEY" \
-F "files=@lecture-03-fixed.srt" -F "replaces=$FILE_ID"
# Download one file's signed record
curl -sS "https://www.captionpass.com/api/v1/library/files/$FILE_ID/record" \
-H "Authorization: Bearer $CAPTIONPASS_API_KEY" -o record.json
# Check it, as anyone you hand it to can
curl -sS -X POST "https://www.captionpass.com/api/verify-receipt" \
-H "Content-Type: application/json" \
-d "{\"receipt\": $(cat record.json)}"| Route | Scope | Returns |
|---|---|---|
| GET /api/v1/me | account:read | Who the key acts as, the terms its workspace runs on, and its daily run bound. |
| GET /api/v1/usage | usage:read | Today's runs against the bound, and the workspace's keys, masked. |
| GET /api/v1/api-keys | keys:read | The keys, masked: prefixes only. |
| POST /api/v1/api-keys | keys:write | Body { "name", "scopes": [...] }. Returns the secret once. A key cannot grant scopes it does not hold. |
| POST /api/v1/api-keys/{keyId}/renew | keys:write | Extends expiresAt. The secret does not change. |
| DELETE /api/v1/api-keys/{keyId} | keys:write | Revokes the key. |
curl -sS "https://www.captionpass.com/api/v1/me" \ -H "Authorization: Bearer $CAPTIONPASS_API_KEY"
| Who | Successful /api/v1/process runs a day (UTC) | Notes |
|---|---|---|
| The free converter, no account | 5 | The website tool, not the API. |
| Free account | None | No API. It comes with paid and granted access. |
| Solo, Team, The audit, Program 150, Program 500, Program 1,500, Contract | Up to 9,999 | Files added to the library count caption hours instead. |
/api/v1 route, then 429 rate_limited.RateLimit-Limit, RateLimit-Remaining and RateLimit-Reset (seconds until the minute ends). A 429 rate_limited also carries Retry-After: wait that many seconds. If our counter is briefly unavailable, a call is not refused for that reason and the RateLimit-* headers are left out.200 responses count against the day.Every response carries X-Request-Id, and an error repeats it as error.requestId. Send your own X-Request-Id (8 to 128 letters, digits, ., _ or -) to trace a call through your own logs; anything else is replaced with one of ours. Quote the id when you contact us.
A key without stored scopes holds process:write only. A 403 says what was missing in details.missingScope, details.missingFeature or details.requiredPermission.
| Scope | Routes |
|---|---|
process:write | POST /api/v1/process |
library:write | POST /api/v1/library/files |
library:read | GET /api/v1/library/files, GET …/files/{fileId}, GET …/files/{fileId}/record, GET /api/v1/library/report |
account:read | GET /api/v1/me |
usage:read | GET /api/v1/usage |
keys:read / keys:write | GET, POST /api/v1/api-keys, POST …/{keyId}/renew, DELETE …/{keyId} |
{ "error": { "code": "unauthorized", "message": "…", "details": { }, "requestId": "req_…" } }| HTTP | error.code | When |
|---|---|---|
| 401 | unauthorized | Missing Bearer token, or a key nobody has heard of. |
| 401 | api_key_revoked | The key was deliberately revoked. Create a new one. |
| 401 | api_key_expired | The key reached its expiresAt. Renew it from the account page — renewal does not change the secret, so nothing needs redeploying. |
| 403 | forbidden | Missing scope (details.missingScope), terms that do not include the API (details.missingFeature: v1_api), a role that does not allow it, or a call that did not come through www.captionpass.com. |
| 403 | access_ended | The workspace's access has ended. It is read-only: every file, record and report can still be read through the API, and nothing new can be added. |
| 403 | access_suspended | The workspace's access is suspended. Read-only, as for access_ended. |
| 429 | rate_limited | The key's rate limit for this clock minute is used up. Retry-After says how long to wait. |
| 429 | quota_exceeded | Daily successful v1 cap exhausted (UTC day). |
| 400 | bad_request | Invalid JSON or multipart body, bad preset or standard, missing fields. |
| 400 | payload_too_large | Declared Content-Length or file too large. |
| 413 | payload_too_large | Engine refused input size. |
| 413 | report_too_large | The library report is too large to send in one response. details.files says how many files it covers; contact us. |
| 422 | processing_failed | The engine could not parse or check the file. |
| 404 | not_found | No route matches that method and path, or the named resource does not exist. |
| 500 | internal_error | Unhandled server failure. The message is deliberately generic; the detail is in our logs, not in your response. |
| 503 | unavailable | A backing store is not available. Nothing was changed. |
| code | Meaning |
|---|---|
empty_input | Parser: file was empty. |
no_cues | Parser: no valid cues found. |
invalid_timestamp | Parser: malformed time range. |
missing_webvtt_header | VTT: WEBVTT missing on line 1. |
overlapping_cues | Rule: two cues overlap in time. |
reading_speed_high | Rule: CPS above preset maximum for a cue. |
too_many_lines | File: cue has more lines than the preset or standard allows. |
line_too_long | File: a line is longer than the preset or standard allows, before any wrap. |
unparsed_text | Parser: caption text with no valid timing line; players do not show it. |
text_altered | Error: words would be lost or changed; the output is not ready. |
strip_styling | Rule: markup removed per preset. |
Illustrative bodies. A success may carry more fields than shown; treat unknown fields as optional.
{
"report": { "diagnostics": [], "summary": "…" },
"output": "1\n00:00:01,000 --> 00:00:04,000\n…",
"aidedOutput": "1\n00:00:01,000 --> 00:00:04,000\n…",
"aidedSameAsDelivery": false,
"suggestions": [{ "code": "reading_speed_high", "cueIndex": 2 }],
"deliveryStatus": "will_adapt",
"aidedStatus": "ready",
"remainingApiRunsToday": 9998
}{
"userKey": "usr_…",
"email": "you@example.com",
"tier": "granted",
"terms": "program_500",
"dailyRuns": 9999,
"library": { "allowance": { "hours": 500, "per": "year" }, "walled": false }
}On a Program size, library.allowance is Program’s yearly hours. The first audit’s hours are measured apart from them.
{
"cap": 9999,
"today": "2026-11-07",
"todayCount": 3,
"remainingToday": 9996,
"tier": "granted",
"terms": "program_500",
"keys": [{ "keyId": "…", "keyPrefix": "cp_live_abcd…", "name": "CI", "scopes": ["process:write"] }]
}{
"error": {
"code": "unauthorized",
"message": "Invalid API key."
}
}{
"error": {
"code": "forbidden",
"message": "API key lacks required scope.",
"details": { "missingScope": ["library:write"] }
}
}{
"error": {
"code": "quota_exceeded",
"message": "Daily API conversion limit reached. Try again tomorrow."
}
}Paths are versioned (/api/v1/…). Breaking changes will ship under /api/v2. Additions that break nothing (new optional fields, new presets) may appear without a version bump, so ignore fields you do not know.