CaptionPass API v1
Base URL for examples: https://www.captionpass.com · OpenAPI document
The API does two jobs from your own systems:
- Fix a file for a platform.
POST /api/v1/processchecks 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. - Produce evidence.
/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.
Endpoints
Every operation in the OpenAPI document. Each path links to the section that explains it.
POST/api/v1/processProcess caption file (multipart)
Add caption files to the library: each is checked, signed and counted against the workspace's hours
One page of the library, newest first, with the whole library summed
GET/api/v1/library/files/{fileId}One file: its answers for every criterion, and its signed record
GET/api/v1/library/files/{fileId}/recordDownload the signed record, verifiable at /api/verify-receipt without an account
The library report, as JSON
GET/api/v1/meWho the key acts as, and the terms its workspace runs on
Daily usage snapshot
List API keys (masked)
POST/api/v1/api-keysCreate API key (one-time secret)
POST/api/v1/api-keys/{keyId}/renewRenew an API key (extends expiresAt; the secret does not change)
DELETE/api/v1/api-keys/{keyId}Revoke API key
Integrations
Machine-readable contract and importable collections for CI pipelines and API clients.
- OpenAPI 3 — https://www.captionpass.com/docs/api/openapi.json (routes, errors, multipart process schema).
- Postman — import CaptionPass-v1.postman_collection.json and environment template. Set
apiKeyto yourcp_live_…secret. - Examples — curl requests on this page, for fixing a file and for the library.
Import in Postman: Import → Link paste the collection URL, then import the environment and select it before sending requests.
Authentication and base URL
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/...
Fix a file for a platform: POST /api/v1/process
Scope process:write. Multipart multipart/form-data:
file, required: SRT, VTT, SBV, ASS, TTML, or JSON IR.preset, optional, defaultyoutube: 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 areport.standardverdict, clause by clause. An unrecognised value is refused rather than ignored.
- Max file about 2048 KB (2 MiB). A declared
Content-Lengthover about 4.25 MiB is refused with400 payload_too_largebefore the body is read. - The words survive: the engine fixes timing, layout and format, never what was said.
Presets
| 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"
Standards
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 European standard for accessible ICT, used in EU public-sector procurement. The European Accessibility Act, which applies from 28 June 2025, asks services that give access to audiovisual media to keep existing captions intact and in sync; it does not require anyone to caption. |
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 retrieved on 2026-11-16) | 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"
Success (200)
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.
Produce evidence: /api/v1/library
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 5: each file's vendor, replaces, replacedBy, title, videoUrl and the institution's own flags, 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. It carries inventory when a manifest listed videos with no captions or flagged any video: their video hours, never caption hours, and the share of public and course-required videos with no captions.
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)}"The key, its usage and other keys
| 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"
Limits
| 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. |
- Rate limit: 45 requests per clock minute per key, counted across every
/api/v1route, then429 rate_limited. - Every response after the key is accepted carries
RateLimit-Limit,RateLimit-RemainingandRateLimit-Reset(seconds until the minute ends). A429 rate_limitedalso carriesRetry-After: wait that many seconds. If our counter is briefly unavailable, a call is not refused for that reason and theRateLimit-*headers are left out. - Only
200responses count against the day.
Finding a request
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.
Scopes
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} |
Errors
{ "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. |
| 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. |
Common diagnostic codes in a process report
| 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. |
Request and response examples
Illustrative bodies. A success may carry more fields than shown; treat unknown fields as optional.
POST /api/v1/process, 200
{
"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
}GET /api/v1/me, 200
{
"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.
GET /api/v1/usage, 200
{
"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"] }]
}401 unauthorized
{
"error": {
"code": "unauthorized",
"message": "Invalid API key."
}
}403 forbidden (missing scope)
{
"error": {
"code": "forbidden",
"message": "API key lacks required scope.",
"details": { "missingScope": ["library:write"] }
}
}429 quota_exceeded
{
"error": {
"code": "quota_exceeded",
"message": "Daily API conversion limit reached. Try again tomorrow."
}
}Versioning
Paths are versioned (/api/v1/…). The contract is version 1.2.0, the info.version of the OpenAPI document. Every change to that document raises the version and is listed in the changelog below. Additions that break nothing, such as a new optional field or preset, raise the minor version, so ignore fields you do not know. Breaking changes ship under /api/v2.
Support window
A route or field on its way out keeps working for at least 180 days after it is announced in the changelog, which names the day it stops. Until that day, every response from a retiring route carries:
Deprecation: when it was announced, as@and Unix seconds (RFC 9745).Sunset: the day it stops working, as an HTTP date (RFC 8594).Link: <https://www.captionpass.com/docs/api#changelog>; rel="deprecation", pointing here.
The OpenAPI document marks a retiring operation deprecated. Nothing is retiring now.
Changelog
Newest first.
1.2.0,
- Added the library: POST and GET /api/v1/library/files, GET /api/v1/library/files/{fileId}, GET /api/v1/library/files/{fileId}/record and GET /api/v1/library/report, with the library:read and library:write scopes.
- Added POST /api/v1/api-keys/{keyId}/renew, which extends a key's expiresAt without changing its secret.
- Removed the webhook, projects and export-template routes, and the explain, media, jobs and artifacts routes added after 1.1.0. They answer 404. They were removed without notice; from this version on, a retirement keeps the 180-day support window.
- POST /api/v1/process takes an optional standard and adds report.standard, a verdict clause by clause.
- Every response carries X-Request-Id, and an error repeats it as error.requestId. Responses after the key is accepted carry RateLimit-Limit, RateLimit-Remaining and RateLimit-Reset; a 429 carries Retry-After.
- Every operation documents 404 and 500, which come from the router and the top-level error handler.
- GET /api/v1/library/files is paged with limit and cursor, and GET /api/v1/library/report answers 303 See Other with a link when the report is larger than one response carries.
- Signed records carry their schema version (version 4 adds replaces), and a file's sha256 is the hash of its bytes as delivered.
- The library report is version 5, with vendors, fix requests, connected video sources and the video inventory.
- The OpenAPI document carries request examples, and the Postman collection is built from it: one request per operation.
1.1.0,
- The contract as of 2026-05-25: POST /api/v1/process, GET /api/v1/me, GET /api/v1/usage, the API key routes, and the webhook, projects and export-template routes.