{"info":{"_postman_id":"captionpass-v1-api","name":"CaptionPass HTTP API v1","version":"1.2.0","description":"Built from the OpenAPI document (https://www.captionpass.com/docs/api/openapi.json), version 1.2.0: one request per operation. Set `baseUrl` and `apiKey` in the environment. Adding library files stores the first file's id in `fileId` for the requests that need one. What changed between versions: https://www.captionpass.com/docs/api#changelog","schema":"https://schema.getpostman.com/json/collection/v2.1.0/collection.json"},"auth":{"type":"bearer","bearer":[{"key":"token","value":"{{apiKey}}","type":"string"}]},"variable":[{"key":"baseUrl","value":"https://www.captionpass.com"},{"key":"apiKey","value":""},{"key":"fileId","value":""},{"key":"keyId","value":""}],"item":[{"name":"Process","item":[{"name":"Process caption file (multipart)","request":{"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"file","type":"file","src":"../fixtures/sample.srt"},{"key":"preset","type":"text","value":"youtube"}]},"url":{"raw":"{{baseUrl}}/api/v1/process","host":["{{baseUrl}}"],"path":["api","v1","process"]}}}]},{"name":"Library","item":[{"name":"Add caption files to the library: each is checked, signed and counted against the workspace's hours","request":{"method":"POST","description":"Each file is checked by the same engine as the app, signed, stored, and its running time counted against the workspace's caption hours. A file already in the library comes back as `duplicate` and costs nothing, so sending the same files again is safe. A read-only workspace answers 403 `access_ended`. Only a free account's monthly hours ever refuse a file (`over_allowance`); granted and paid access is counted, never stopped. `vendorId` names who captioned the files, from the workspace's own vendor list; an id the workspace does not have rejects every file with `unknown_vendor` and adds nothing. `replaces` names the file a corrected file is for (one file per request); a file with no open fix request is rejected with `not_requested`. Without `replaces`, an added file is still matched to an open fix request by its wording, and the result says so in `matched` or `candidates`.","header":[],"body":{"mode":"formdata","formdata":[{"key":"files","type":"file","src":"../fixtures/sample.srt"},{"key":"group","type":"text","value":"API examples"}]},"url":{"raw":"{{baseUrl}}/api/v1/library/files","host":["{{baseUrl}}"],"path":["api","v1","library","files"]}},"event":[{"listen":"test","script":{"type":"text/javascript","exec":["const body = pm.response.json();","const first = (body.results || [])[0] || {};","const fileId = (first.file && first.file.fileId) || (first.existing && first.existing.fileId);","if (fileId) pm.environment.set(\"fileId\", fileId);"]}}]},{"name":"One page of the library, newest first, with the whole library summed","request":{"method":"GET","description":"One page of files, newest first, with `summary` covering the whole library. Send `nextCursor` back as `cursor` until `hasMore` is false. A file added during a walk neither repeats nor skips another.","header":[],"url":{"raw":"{{baseUrl}}/api/v1/library/files?limit=100","host":["{{baseUrl}}"],"path":["api","v1","library","files"],"query":[{"key":"limit","value":"100"},{"key":"cursor","value":"","disabled":true}]}}},{"name":"One file: its answers for every criterion, and its signed record","request":{"method":"GET","header":[],"url":{"raw":"{{baseUrl}}/api/v1/library/files/:fileId","host":["{{baseUrl}}"],"path":["api","v1","library","files",":fileId"],"variable":[{"key":"fileId","value":"{{fileId}}"}]}}},{"name":"Download the signed record, verifiable at /api/verify-receipt without an account","request":{"method":"GET","header":[],"url":{"raw":"{{baseUrl}}/api/v1/library/files/:fileId/record","host":["{{baseUrl}}"],"path":["api","v1","library","files",":fileId","record"],"variable":[{"key":"fileId","value":"{{fileId}}"}]}}},{"name":"The library report, as JSON","request":{"method":"GET","description":"One document across every file, not paged. Past 5,000,000 bytes it is written to a file and the answer is 303 See Other, with `Location` and `url` a link to it that works for 5 minutes; a client that follows redirects receives the report either way.","header":[],"url":{"raw":"{{baseUrl}}/api/v1/library/report","host":["{{baseUrl}}"],"path":["api","v1","library","report"]}}}]},{"name":"Account","item":[{"name":"Who the key acts as, and the terms its workspace runs on","request":{"method":"GET","header":[],"url":{"raw":"{{baseUrl}}/api/v1/me","host":["{{baseUrl}}"],"path":["api","v1","me"]}}},{"name":"Daily usage snapshot","request":{"method":"GET","header":[],"url":{"raw":"{{baseUrl}}/api/v1/usage","host":["{{baseUrl}}"],"path":["api","v1","usage"]}}}]},{"name":"API keys","item":[{"name":"List API keys (masked)","request":{"method":"GET","header":[],"url":{"raw":"{{baseUrl}}/api/v1/api-keys","host":["{{baseUrl}}"],"path":["api","v1","api-keys"]}}},{"name":"Create API key (one-time secret)","request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"}],"body":{"mode":"raw","raw":"{\n  \"name\": \"CI integration\",\n  \"scopes\": [\n    \"process:write\",\n    \"account:read\",\n    \"usage:read\"\n  ]\n}"},"url":{"raw":"{{baseUrl}}/api/v1/api-keys","host":["{{baseUrl}}"],"path":["api","v1","api-keys"]}}},{"name":"Renew an API key (extends expiresAt; the secret does not change)","request":{"method":"POST","header":[],"url":{"raw":"{{baseUrl}}/api/v1/api-keys/:keyId/renew","host":["{{baseUrl}}"],"path":["api","v1","api-keys",":keyId","renew"],"variable":[{"key":"keyId","value":"{{keyId}}"}]}}},{"name":"Revoke API key","request":{"method":"DELETE","header":[],"url":{"raw":"{{baseUrl}}/api/v1/api-keys/:keyId","host":["{{baseUrl}}"],"path":["api","v1","api-keys",":keyId"],"variable":[{"key":"keyId","value":"{{keyId}}"}]}}}]}]}