Skip to content

CaptionPass API v1

Check caption files and keep the evidence from your own systems. Keys are created in Settings.

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/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.
  • 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.

Integrations

Machine-readable contract and importable collections for CI pipelines and API clients.

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, 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.
  • Max file about 2048 KB (2 MiB). A declared Content-Length over about 4.25 MiB is refused with 400 payload_too_large before the body is read.
  • The words survive: the engine fixes timing, layout and format, never what was said.

Presets

presetOutputIntent
youtubesrtYouTubeSRT for YouTube upload: plain UTF-8 cues, styling stripped per YouTube Help (no vendor line-length cap enforced).
tiktoksrtTikTok / ShortsSRT for TikTok/Shorts: vendor format rules only; readability targets are optional suggestions after export.
html5vttHTML5 / WebVTT playerWebVTT per W3C: required structure and tag handling; no spec-mandated line length or CPS on export.
genericsrtGeneric safeCaptionPass safe defaults when the destination is unknown: SRT, plain text, line length and CPS enforced.
lmsttmlLMS / TTML (IMSC1-friendly)TTML / IMSC1-friendly output: format and tag rules per spec; line length/CPS available as suggestions.
instagram-reelssrtInstagram / ReelsSRT for Meta Reels/Stories: vendor upload rules only; short-line targets are suggestions.
linkedinsrtLinkedInSRT for LinkedIn video posts per Help; professional line/CPS targets are suggestions.
vimeovttVimeoWebVTT for Vimeo: player-oriented tag rules; line length/CPS are suggestions.
facebooksrtFacebook / Meta videoSRT sidecar for Meta video uploads; feed readability targets are suggestions.
zoomvttZoom / webinar VTTWebVTT for Zoom/webinar players: format rules only; webinar line/CPS targets are suggestions.
developer-jsonjsonDeveloper 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.

standardDocumentWho it binds
wcag-2.1-aaWCAG 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-549EN 301 549 (European accessibility)ETSI EN 301 549 V3.2.1 (2021-03), Accessibility requirements for ICT products and servicesThe 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.1FCC 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.
dcmpDCMP 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.

RouteScopeReturns
POST /api/v1/library/fileslibrary:writeMultipart files (or one file), and optional group, vendorId and replaces. One result per file: added, duplicate or rejected.
GET /api/v1/library/fileslibrary:readOne 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:readThe file's answers for every criterion, and its signed record.
GET /api/v1/library/files/{fileId}/recordlibrary:readThe signed record as a file, the same one the app downloads.
GET /api/v1/library/reportlibrary:readThe 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

RouteScopeReturns
GET /api/v1/meaccount:readWho the key acts as, the terms its workspace runs on, and its daily run bound.
GET /api/v1/usageusage:readToday's runs against the bound, and the workspace's keys, masked.
GET /api/v1/api-keyskeys:readThe keys, masked: prefixes only.
POST /api/v1/api-keyskeys:writeBody { "name", "scopes": [...] }. Returns the secret once. A key cannot grant scopes it does not hold.
POST /api/v1/api-keys/{keyId}/renewkeys:writeExtends expiresAt. The secret does not change.
DELETE /api/v1/api-keys/{keyId}keys:writeRevokes the key.
curl -sS "https://www.captionpass.com/api/v1/me" \
  -H "Authorization: Bearer $CAPTIONPASS_API_KEY"

Limits

WhoSuccessful /api/v1/process runs a day (UTC)Notes
The free converter, no account5The website tool, not the API.
Free accountNoneNo API. It comes with paid and granted access.
Solo, Team, The audit, Program 150, Program 500, Program 1,500, ContractUp to 9,999Files added to the library count caption hours instead.
  • Rate limit: 45 requests per clock minute per key, counted across every /api/v1 route, then 429 rate_limited.
  • Every response after the key is accepted carries 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.
  • Only 200 responses 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.

ScopeRoutes
process:writePOST /api/v1/process
library:writePOST /api/v1/library/files
library:readGET /api/v1/library/files, GET …/files/{fileId}, GET …/files/{fileId}/record, GET /api/v1/library/report
account:readGET /api/v1/me
usage:readGET /api/v1/usage
keys:read / keys:writeGET, POST /api/v1/api-keys, POST …/{keyId}/renew, DELETE …/{keyId}

Errors

{ "error": { "code": "unauthorized", "message": "…", "details": { }, "requestId": "req_…" } }
HTTPerror.codeWhen
401unauthorizedMissing Bearer token, or a key nobody has heard of.
401api_key_revokedThe key was deliberately revoked. Create a new one.
401api_key_expiredThe key reached its expiresAt. Renew it from the account page — renewal does not change the secret, so nothing needs redeploying.
403forbiddenMissing 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.
403access_endedThe 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.
403access_suspendedThe workspace's access is suspended. Read-only, as for access_ended.
429rate_limitedThe key's rate limit for this clock minute is used up. Retry-After says how long to wait.
429quota_exceededDaily successful v1 cap exhausted (UTC day).
400bad_requestInvalid JSON or multipart body, bad preset or standard, missing fields.
400payload_too_largeDeclared Content-Length or file too large.
413payload_too_largeEngine refused input size.
422processing_failedThe engine could not parse or check the file.
404not_foundNo route matches that method and path, or the named resource does not exist.
500internal_errorUnhandled server failure. The message is deliberately generic; the detail is in our logs, not in your response.
503unavailableA backing store is not available. Nothing was changed.

Common diagnostic codes in a process report

codeMeaning
empty_inputParser: file was empty.
no_cuesParser: no valid cues found.
invalid_timestampParser: malformed time range.
missing_webvtt_headerVTT: WEBVTT missing on line 1.
overlapping_cuesRule: two cues overlap in time.
reading_speed_highRule: CPS above preset maximum for a cue.
too_many_linesFile: cue has more lines than the preset or standard allows.
line_too_longFile: a line is longer than the preset or standard allows, before any wrap.
unparsed_textParser: caption text with no valid timing line; players do not show it.
text_alteredError: words would be lost or changed; the output is not ready.
strip_stylingRule: 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.