Caption QA API for CI/CD pipelines
Run CaptionPass in GitHub Actions, Jenkins, or any script that can POST multipart form data. On a plan that includes the API, create a key and call POST /api/v1/process — the same engine as the free converter, without browser integrity tokens.
Quick curl example
curl -sS -X POST "https://www.captionpass.com/api/v1/process" \ -H "Authorization: Bearer cp_live_..." \ -F "file=@captions.srt" \ -F "preset=youtube"
Full reference: HTTP API (v1) docs.
Typical CI steps
- Store
CAPTIONPASS_API_KEYas a CI secret. - On pull request or release, POST each deliverable SRT/VTT with the client's preset.
- Assert HTTP 200 and inspect
diagnosticsfor blocking issues. - Optionally archive the repaired file and report JSON as build artifacts.
Quotas
API keys come with the paid plans, each with a daily v1 run allowance. The free account has no API. See pricing.
Running a class or capstone? Ask for access for it.
Common questions
- Which endpoint should CI use?
- Integrations must use POST /api/v1/process with Authorization: Bearer cp_… from the dashboard. Do not call POST /api/process — that route is browser-only with an integrity token.
- What do I need for an API key?
- The API comes with every paid offer: Solo, Team, the audit, Program and Contract. The free account has no API.
- Can I fail a build on caption errors?
- Yes. Parse the JSON response diagnostics array and non-zero rule hits; treat severe timing or empty-cue errors as build failures in your pipeline.