{"openapi":"3.1.0","info":{"title":"TrulyFinal API","version":"1.0.0","description":"Create projects, upload files, send them for review and hear back when they're approved. Every plan includes the API. Create a key in Settings → Integrations."},"servers":[{"url":"https://app.trulyfinal.com/api"}],"components":{"securitySchemes":{"apiKey":{"type":"http","scheme":"bearer","description":"An API key from Settings → Integrations, e.g. `Authorization: Bearer tf_…`"}},"schemas":{"Error":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["invalid_request","unauthorized","plan_required","forbidden","not_found","conflict","too_large","unsupported_file","rate_limited","server_error"]},"message":{"type":"string"}},"required":["code","message"]}},"required":["error"]},"MemberPage":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/Member"}},"nextCursor":{"type":["string","null"],"description":"Pass as `cursor` for the next page; null on the last page."}},"required":["data","nextCursor"]},"Member":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"email":{"type":"string"},"role":{"type":"string","enum":["owner","admin","member"]},"joinedAt":{"type":"string","format":"date-time","example":"2026-11-15T09:30:00.000Z"}},"required":["id","name","email","role","joinedAt"]},"Invitation":{"type":"object","properties":{"id":{"type":"string"},"email":{"type":"string"},"role":{"type":"string","enum":["admin","member"]},"expiresAt":{"type":"string","format":"date-time","example":"2026-11-15T09:30:00.000Z"}},"required":["id","email","role","expiresAt"]},"ClientPage":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/Client"}},"nextCursor":{"type":["string","null"],"description":"Pass as `cursor` for the next page; null on the last page."}},"required":["data","nextCursor"]},"Client":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"createdAt":{"type":"string","format":"date-time","example":"2026-11-15T09:30:00.000Z"}},"required":["id","name","createdAt"]},"ProjectPage":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/Project"}},"nextCursor":{"type":["string","null"],"description":"Pass as `cursor` for the next page; null on the last page."}},"required":["data","nextCursor"]},"Project":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"reference":{"type":["string","null"]},"status":{"type":"string","enum":["active","completed","archived"]},"client":{"type":["object","null"],"properties":{"id":{"type":"string"},"name":{"type":"string"}},"required":["id","name"]},"dueAt":{"type":["string","null"],"format":"date-time","example":"2026-11-15T09:30:00.000Z"},"createdAt":{"type":"string","format":"date-time","example":"2026-11-15T09:30:00.000Z"},"updatedAt":{"type":"string","format":"date-time","example":"2026-11-15T09:30:00.000Z"},"url":{"type":"string"}},"required":["id","name","reference","status","client","dueAt","createdAt","updatedAt","url"]},"Sections":{"type":"object","properties":{"data":{"type":"array","items":{"type":"string"},"description":"Section names, in order."}},"required":["data"]},"Step":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"audience":{"type":"string","enum":["internal","client"]},"final":{"type":"boolean"},"approvalRule":{"type":"string","enum":["all","any","threshold"]},"threshold":{"type":["number","null"]},"dueDays":{"type":["number","null"]},"reviewers":{"type":"array","items":{"$ref":"#/components/schemas/Reviewer"}}},"required":["id","name","audience","final","approvalRule","threshold","dueDays","reviewers"]},"Reviewer":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":["string","null"]},"email":{"type":["string","null"]},"role":{"type":"string","enum":["approver","reviewer","viewer"],"description":"approver: their decision counts; reviewer: comments only; viewer: looks only"}},"required":["id","name","email","role"]},"StagesInput":{"type":"object","properties":{"internalSteps":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":60},"approvalRule":{"type":"string","enum":["all","any","threshold"],"default":"all"},"threshold":{"type":"integer","minimum":1,"maximum":50},"dueDays":{"type":["integer","null"],"minimum":1,"maximum":60},"userIds":{"type":"array","items":{"type":"string"},"minItems":1,"maxItems":30,"description":"Members (GET /v1/members) who approve this stage."}},"required":["name","userIds"]},"maxItems":3},"clientName":{"type":"string","minLength":1,"maxLength":60,"default":"Client stage"},"clientRule":{"type":"string","enum":["all","any","threshold"],"default":"all"},"clientThreshold":{"type":"integer","minimum":1,"maximum":50},"clientDueDays":{"type":["integer","null"],"minimum":1,"maximum":60}},"required":["internalSteps"]},"FilePage":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/File"}},"nextCursor":{"type":["string","null"],"description":"Pass as `cursor` for the next page; null on the last page."}},"required":["data","nextCursor"]},"File":{"type":"object","properties":{"id":{"type":"string"},"projectId":{"type":"string"},"name":{"type":"string"},"kind":{"type":"string","enum":["pdf","image","video"]},"status":{"type":"string","description":"draft, in_review, changes_requested, approved_with_changes, approved or delivered. approved_with_changes (added Nov 2026): approved once the listed changes are made; the next version must be confirmed, and the file can't be delivered until then. Clients reading only \"approved\" keep working: such files used to report approved."},"externalId":{"type":["string","null"],"description":"Your own id for this file (another system's record)."},"section":{"type":["string","null"],"description":"The project section it's in (GET /v1/projects/{id}/sections); null when unsorted."},"latestVersion":{"$ref":"#/components/schemas/Version"},"openComments":{"type":"number","description":"Top-level comments on the latest version that still need something (open or reopened; AI findings not counted)."},"createdAt":{"type":"string","format":"date-time","example":"2026-11-15T09:30:00.000Z"},"updatedAt":{"type":"string","format":"date-time","example":"2026-11-15T09:30:00.000Z"},"url":{"type":"string"}},"required":["id","projectId","name","kind","status","externalId","section","latestVersion","openComments","createdAt","updatedAt","url"]},"Version":{"type":["object","null"],"properties":{"id":{"type":"string"},"number":{"type":"number"},"filename":{"type":"string"},"mimeType":{"type":"string"},"byteSize":{"type":"number"},"status":{"type":"string","enum":["uploading","processing","ready","failed"]},"error":{"type":["string","null"]},"pageCount":{"type":["number","null"]},"createdAt":{"type":"string","format":"date-time","example":"2026-11-15T09:30:00.000Z"}},"required":["id","number","filename","mimeType","byteSize","status","error","pageCount","createdAt"]},"FileSearchPage":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/File"}},"nextCursor":{"type":["string","null"],"description":"Pass as `cursor` for the next page; null on the last page."}},"required":["data","nextCursor"]},"FileDetail":{"allOf":[{"$ref":"#/components/schemas/File"},{"type":"object","properties":{"versions":{"type":"array","items":{"$ref":"#/components/schemas/Version"}}},"required":["versions"]}]},"Uploaded":{"type":"object","properties":{"file":{"$ref":"#/components/schemas/FileDetail"},"version":{"$ref":"#/components/schemas/Version"}},"required":["file","version"]},"Review":{"type":"object","properties":{"id":{"type":"string"},"stage":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"audience":{"type":"string","enum":["internal","client"]}},"required":["id","name","audience"]},"status":{"type":"string","enum":["not_started","in_review","changes_requested","approved","superseded","canceled"]},"dueAt":{"type":["string","null"],"format":"date-time","example":"2026-11-15T09:30:00.000Z"},"startedAt":{"type":["string","null"],"format":"date-time","example":"2026-11-15T09:30:00.000Z"},"closedAt":{"type":["string","null"],"format":"date-time","example":"2026-11-15T09:30:00.000Z"},"reviewers":{"type":"array","items":{"allOf":[{"$ref":"#/components/schemas/Reviewer"},{"type":"object","properties":{"decision":{"type":["string","null"],"enum":["approved","approved_with_changes","changes_requested","rejected","withdrawn",null]},"decidedAt":{"type":["string","null"],"format":"date-time","example":"2026-11-15T09:30:00.000Z"},"pages":{"type":["array","null"],"items":{"type":["string","null"],"enum":["approved","approved_with_changes","changes_requested","rejected",null]},"description":"Their decision on each page (page 1 first; null: undecided), when the review is decided page by page. Null when every decision covers the whole file."}},"required":["decision","decidedAt","pages"]}]}},"pages":{"type":["array","null"],"items":{"type":"string","enum":["approved","changes_requested","in_review"]},"description":"Each page's status (page 1 first), when reviewers decided page by page on a multi-page PDF. The review is approved only when every page is. Null when every decision covers the whole file."}},"required":["id","stage","status","dueAt","startedAt","closedAt","reviewers","pages"]},"CommentPage":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/Comment"}},"nextCursor":{"type":["string","null"],"description":"Pass as `cursor` for the next page; null on the last page."}},"required":["data","nextCursor"]},"Comment":{"type":"object","properties":{"id":{"type":"string"},"versionId":{"type":"string"},"parentId":{"type":["string","null"]},"number":{"type":["number","null"]},"body":{"type":"string"},"internal":{"type":"boolean","description":"Seen by the team only."},"status":{"type":["string","null"],"enum":["open","resolved","dismissed","reopened",null]},"page":{"type":["number","null"],"description":"1-based page of a document."},"x":{"type":["number","null"],"description":"Where its pin (or markup) sits on the page, 0–1 from the left; null without one."},"y":{"type":["number","null"],"description":"Where its pin (or markup) sits on the page, 0–1 from the top; null without one."},"timeMs":{"type":["number","null"],"description":"Video and audio: the moment it's about, in ms from the start."},"timeEndMs":{"type":["number","null"],"description":"The end of a time range, in ms; null for a single moment."},"author":{"type":"object","properties":{"type":{"type":"string","enum":["member","reviewer","integration","ai"]},"name":{"type":["string","null"]},"email":{"type":["string","null"]}},"required":["type","name","email"]},"attachments":{"type":"array","items":{"$ref":"#/components/schemas/Attachment"},"description":"Download with GET /v1/attachments/{id}."},"createdAt":{"type":"string","format":"date-time","example":"2026-11-15T09:30:00.000Z"},"editedAt":{"type":["string","null"],"format":"date-time","example":"2026-11-15T09:30:00.000Z"}},"required":["id","versionId","parentId","number","body","internal","status","page","x","y","timeMs","timeEndMs","author","attachments","createdAt","editedAt"]},"Attachment":{"type":"object","properties":{"id":{"type":"string"},"filename":{"type":"string"},"mime":{"type":"string"},"byteSize":{"type":"number"}},"required":["id","filename","mime","byteSize"]},"Template":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"description":{"type":["string","null"]},"stages":{"$ref":"#/components/schemas/StagesInput"},"projects":{"type":"number","description":"Live projects set up from it."},"createdAt":{"type":"string","format":"date-time","example":"2026-11-15T09:30:00.000Z"}},"required":["id","name","description","stages","projects","createdAt"]},"Webhook":{"type":"object","properties":{"id":{"type":"string"},"url":{"type":"string"},"events":{"type":["array","null"],"items":{"type":"string"},"description":"null: every event."},"secret":{"type":["string","null"],"description":"Verifies the TrulyFinal-Signature header. null for chat apps, which get a plain message."},"createdAt":{"type":"string","format":"date-time","example":"2026-11-15T09:30:00.000Z"}},"required":["id","url","events","secret","createdAt"]},"PreproofResult":{"type":"object","properties":{"findings":{"type":"array","items":{"$ref":"#/components/schemas/PreproofFinding"}},"checks":{"type":"array","items":{"type":"string","enum":["spelling","terms","house"]},"description":"The checks that ran, from the studio's AI settings."},"truncated":{"type":"boolean","description":"A long document: only its beginning was checked."}},"required":["findings","checks","truncated"]},"PreproofFinding":{"type":"object","properties":{"kind":{"type":"string","enum":["spelling","grammar","term","house","reference","code","clp"]},"page":{"type":["integer","null"],"description":"The page it's on (1-based); null for a picture."},"problem":{"type":"string","description":"What's wrong, in the studio's language."},"quote":{"type":"string","description":"The words as they are in the file; empty for a picture."},"fix":{"type":"string","description":"The words as they should be; empty when there's no single fix."},"sure":{"type":"boolean","description":"false: it may be a problem; worth a look before sending."}},"required":["kind","page","problem","quote","fix","sure"]}},"parameters":{}},"paths":{"/v1/me":{"get":{"security":[{"apiKey":[]}],"tags":["Studio"],"summary":"The key and its studio","description":"Check a key works and see which studio it belongs to. A plugin's key also names the person who connected it (`user`).","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"studio":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"plan":{"type":"string"}},"required":["id","name","plan"]},"key":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"}},"required":["id","name"]},"user":{"type":["object","null"],"properties":{"id":{"type":"string"},"name":{"type":"string"},"email":{"type":"string"}},"required":["id","name","email"]}},"required":["studio","key","user"]}}}},"400":{"description":"The request isn't valid (`invalid_request`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing or revoked API key (`unauthorized`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"The studio is on Free and past its limits; reads still work (`plan_required`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Not allowed (`forbidden`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found (`not_found`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with the current state (`conflict`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 120 requests a minute with this key (`rate_limited`); wait for Retry-After.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/members":{"get":{"security":[{"apiKey":[]}],"tags":["Members"],"summary":"List members","parameters":[{"schema":{"type":"integer","minimum":1,"maximum":100,"default":50,"description":"Items per page, up to 100."},"required":false,"description":"Items per page, up to 100.","name":"limit","in":"query"},{"schema":{"type":"string","description":"`nextCursor` from the previous page."},"required":false,"description":"`nextCursor` from the previous page.","name":"cursor","in":"query"}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MemberPage"}}}},"400":{"description":"The request isn't valid (`invalid_request`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing or revoked API key (`unauthorized`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"The studio is on Free and past its limits; reads still work (`plan_required`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Not allowed (`forbidden`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found (`not_found`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with the current state (`conflict`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 120 requests a minute with this key (`rate_limited`); wait for Retry-After.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/members/{id}":{"patch":{"security":[{"apiKey":[]}],"tags":["Members"],"summary":"Change a member's role","description":"Owners can only be made or unmade by an owner, so a key can switch people between admin and member.","parameters":[{"schema":{"type":"string"},"required":true,"name":"id","in":"path"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"role":{"type":"string","enum":["admin","member"]}},"required":["role"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean"}},"required":["ok"]}}}},"400":{"description":"The request isn't valid (`invalid_request`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing or revoked API key (`unauthorized`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"The studio is on Free and past its limits; reads still work (`plan_required`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Not allowed (`forbidden`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found (`not_found`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with the current state (`conflict`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 120 requests a minute with this key (`rate_limited`); wait for Retry-After.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"delete":{"security":[{"apiKey":[]}],"tags":["Members"],"summary":"Remove a member","description":"Their projects go to `transferTo` (a member's id), or to the studio's first owner.","parameters":[{"schema":{"type":"string"},"required":true,"name":"id","in":"path"},{"schema":{"type":"string"},"required":false,"name":"transferTo","in":"query"}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean"}},"required":["ok"]}}}},"400":{"description":"The request isn't valid (`invalid_request`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing or revoked API key (`unauthorized`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"The studio is on Free and past its limits; reads still work (`plan_required`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Not allowed (`forbidden`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found (`not_found`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with the current state (`conflict`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 120 requests a minute with this key (`rate_limited`); wait for Retry-After.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/members/invitations":{"get":{"security":[{"apiKey":[]}],"tags":["Members"],"summary":"List pending invitations","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/Invitation"}}},"required":["data"]}}}},"400":{"description":"The request isn't valid (`invalid_request`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing or revoked API key (`unauthorized`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"The studio is on Free and past its limits; reads still work (`plan_required`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Not allowed (`forbidden`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found (`not_found`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with the current state (`conflict`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 120 requests a minute with this key (`rate_limited`); wait for Retry-After.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"post":{"security":[{"apiKey":[]}],"tags":["Members"],"summary":"Invite people to the studio","description":"Each gets an email with a link to join, valid for 7 days. Someone already on the team, or over the plan's seats, is listed in `skipped` with the reason. The email comes from the key's name (or, for an app someone connected, from them).","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"emails":{"type":"array","items":{"type":"string","format":"email"},"minItems":1,"maxItems":20},"role":{"type":"string","enum":["admin","member"],"default":"member"}},"required":["emails"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"invited":{"type":"array","items":{"type":"string"}},"skipped":{"type":"array","items":{"type":"object","properties":{"email":{"type":"string"},"reason":{"type":"string"}},"required":["email","reason"]}}},"required":["invited","skipped"]}}}},"400":{"description":"The request isn't valid (`invalid_request`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing or revoked API key (`unauthorized`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"The studio is on Free and past its limits; reads still work (`plan_required`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Not allowed (`forbidden`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found (`not_found`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with the current state (`conflict`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 120 requests a minute with this key (`rate_limited`); wait for Retry-After.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/members/invitations/{id}":{"delete":{"security":[{"apiKey":[]}],"tags":["Members"],"summary":"Cancel an invitation","parameters":[{"schema":{"type":"string"},"required":true,"name":"id","in":"path"}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean"}},"required":["ok"]}}}},"400":{"description":"The request isn't valid (`invalid_request`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing or revoked API key (`unauthorized`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"The studio is on Free and past its limits; reads still work (`plan_required`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Not allowed (`forbidden`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found (`not_found`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with the current state (`conflict`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 120 requests a minute with this key (`rate_limited`); wait for Retry-After.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/clients":{"get":{"security":[{"apiKey":[]}],"tags":["Projects"],"summary":"List clients","parameters":[{"schema":{"type":"integer","minimum":1,"maximum":100,"default":50,"description":"Items per page, up to 100."},"required":false,"description":"Items per page, up to 100.","name":"limit","in":"query"},{"schema":{"type":"string","description":"`nextCursor` from the previous page."},"required":false,"description":"`nextCursor` from the previous page.","name":"cursor","in":"query"}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ClientPage"}}}},"400":{"description":"The request isn't valid (`invalid_request`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing or revoked API key (`unauthorized`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"The studio is on Free and past its limits; reads still work (`plan_required`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Not allowed (`forbidden`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found (`not_found`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with the current state (`conflict`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 120 requests a minute with this key (`rate_limited`); wait for Retry-After.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"post":{"security":[{"apiKey":[]}],"tags":["Projects"],"summary":"Add a client","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":120}},"required":["name"]}}}},"responses":{"201":{"description":"Created","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Client"}}}},"400":{"description":"The request isn't valid (`invalid_request`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing or revoked API key (`unauthorized`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"The studio is on Free and past its limits; reads still work (`plan_required`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Not allowed (`forbidden`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found (`not_found`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with the current state (`conflict`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 120 requests a minute with this key (`rate_limited`); wait for Retry-After.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/projects":{"get":{"security":[{"apiKey":[]}],"tags":["Projects"],"summary":"List projects","description":"Newest first. `updatedSince` returns only projects changed after a time, for syncing.","parameters":[{"schema":{"type":"integer","minimum":1,"maximum":100,"default":50,"description":"Items per page, up to 100."},"required":false,"description":"Items per page, up to 100.","name":"limit","in":"query"},{"schema":{"type":"string","description":"`nextCursor` from the previous page."},"required":false,"description":"`nextCursor` from the previous page.","name":"cursor","in":"query"},{"schema":{"type":"string","enum":["active","completed","archived"]},"required":false,"name":"status","in":"query"},{"schema":{"type":"string"},"required":false,"name":"clientId","in":"query"},{"schema":{"type":"string","format":"date-time","example":"2026-11-15T09:30:00.000Z"},"required":false,"name":"updatedSince","in":"query"}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProjectPage"}}}},"400":{"description":"The request isn't valid (`invalid_request`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing or revoked API key (`unauthorized`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"The studio is on Free and past its limits; reads still work (`plan_required`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Not allowed (`forbidden`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found (`not_found`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with the current state (`conflict`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 120 requests a minute with this key (`rate_limited`); wait for Retry-After.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"post":{"security":[{"apiKey":[]}],"tags":["Projects"],"summary":"Create a project","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":120},"clientId":{"type":"string"},"reference":{"type":"string","maxLength":60,"description":"PO or job number."},"dueAt":{"type":"string","format":"date-time","example":"2026-11-15T09:30:00.000Z"},"templateId":{"type":"string","description":"Set the review stages up from a saved template (GET /v1/templates)."}},"required":["name"]}}}},"responses":{"201":{"description":"Created","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Project"}}}},"400":{"description":"The request isn't valid (`invalid_request`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing or revoked API key (`unauthorized`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"The studio is on Free and past its limits; reads still work (`plan_required`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Not allowed (`forbidden`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found (`not_found`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with the current state (`conflict`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 120 requests a minute with this key (`rate_limited`); wait for Retry-After.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/projects/{id}":{"get":{"security":[{"apiKey":[]}],"tags":["Projects"],"summary":"Get a project","parameters":[{"schema":{"type":"string"},"required":true,"name":"id","in":"path"}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Project"}}}},"400":{"description":"The request isn't valid (`invalid_request`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing or revoked API key (`unauthorized`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"The studio is on Free and past its limits; reads still work (`plan_required`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Not allowed (`forbidden`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found (`not_found`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with the current state (`conflict`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 120 requests a minute with this key (`rate_limited`); wait for Retry-After.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"patch":{"security":[{"apiKey":[]}],"tags":["Projects"],"summary":"Update a project","description":"Rename, change the client, reference or due date, complete, archive or reopen (`status`).","parameters":[{"schema":{"type":"string"},"required":true,"name":"id","in":"path"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":120},"clientId":{"type":"string"},"reference":{"type":["string","null"],"maxLength":60},"dueAt":{"type":["string","null"],"format":"date-time","example":"2026-11-15T09:30:00.000Z"},"status":{"type":"string","enum":["active","completed","archived"]}}}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Project"}}}},"400":{"description":"The request isn't valid (`invalid_request`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing or revoked API key (`unauthorized`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"The studio is on Free and past its limits; reads still work (`plan_required`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Not allowed (`forbidden`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found (`not_found`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with the current state (`conflict`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 120 requests a minute with this key (`rate_limited`); wait for Retry-After.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"delete":{"security":[{"apiKey":[]}],"tags":["Projects"],"summary":"Delete a project","description":"It goes to Recently deleted and can be restored in the app for 30 days.","parameters":[{"schema":{"type":"string"},"required":true,"name":"id","in":"path"}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean"}},"required":["ok"]}}}},"400":{"description":"The request isn't valid (`invalid_request`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing or revoked API key (`unauthorized`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"The studio is on Free and past its limits; reads still work (`plan_required`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Not allowed (`forbidden`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found (`not_found`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with the current state (`conflict`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 120 requests a minute with this key (`rate_limited`); wait for Retry-After.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/projects/{id}/sections":{"get":{"security":[{"apiKey":[]}],"tags":["Projects"],"summary":"List a project's sections","description":"Files are grouped into sections (a file's `section`).","parameters":[{"schema":{"type":"string"},"required":true,"name":"id","in":"path"}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Sections"}}}},"400":{"description":"The request isn't valid (`invalid_request`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing or revoked API key (`unauthorized`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"The studio is on Free and past its limits; reads still work (`plan_required`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Not allowed (`forbidden`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found (`not_found`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with the current state (`conflict`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 120 requests a minute with this key (`rate_limited`); wait for Retry-After.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"put":{"security":[{"apiKey":[]}],"tags":["Projects"],"summary":"Set a project's sections","description":"The whole list, in order. `rename` renames one and keeps its files in it; a section left out of the list leaves its files unsorted.","parameters":[{"schema":{"type":"string"},"required":true,"name":"id","in":"path"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"sections":{"type":"array","items":{"type":"string","minLength":1,"maxLength":200},"maxItems":100},"rename":{"type":"object","properties":{"from":{"type":"string"},"to":{"type":"string","minLength":1,"maxLength":200}},"required":["from","to"]}},"required":["sections"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Sections"}}}},"400":{"description":"The request isn't valid (`invalid_request`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing or revoked API key (`unauthorized`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"The studio is on Free and past its limits; reads still work (`plan_required`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Not allowed (`forbidden`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found (`not_found`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with the current state (`conflict`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 120 requests a minute with this key (`rate_limited`); wait for Retry-After.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/projects/{id}/link":{"patch":{"security":[{"apiKey":[]}],"tags":["Review steps"],"summary":"Change the review link's settings","description":"Downloads, who the open link lets in, a password and when it stops working. The link exists once the project has been shared (POST /v1/projects/{id}/reviewers). A new password, or `invitedOnly`, signs out everyone who came in through the open link without a personal invitation.","parameters":[{"schema":{"type":"string"},"required":true,"name":"id","in":"path"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"allowDownload":{"type":"boolean","description":"Reviewers may download the files."},"downloadApprovedOnly":{"type":"boolean","description":"…only once a file is approved."},"invitedOnly":{"type":"boolean","description":"Only people with a personal invitation get in; the open link stops working."},"password":{"type":["string","null"],"minLength":6,"maxLength":100,"description":"The open link asks for it; null takes it off."},"expiresAt":{"type":["string","null"],"format":"date-time","example":"2026-11-15T09:30:00.000Z","description":"When the link stops working; null for never."}}}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean"}},"required":["ok"]}}}},"400":{"description":"The request isn't valid (`invalid_request`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing or revoked API key (`unauthorized`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"The studio is on Free and past its limits; reads still work (`plan_required`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Not allowed (`forbidden`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found (`not_found`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with the current state (`conflict`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 120 requests a minute with this key (`rate_limited`); wait for Retry-After.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/projects/{id}/steps":{"get":{"security":[{"apiKey":[]}],"tags":["Review steps"],"summary":"List a project's review stages","description":"Team stages first, the client stage last.","parameters":[{"schema":{"type":"string"},"required":true,"name":"id","in":"path"}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/Step"}}},"required":["data"]}}}},"400":{"description":"The request isn't valid (`invalid_request`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing or revoked API key (`unauthorized`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"The studio is on Free and past its limits; reads still work (`plan_required`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Not allowed (`forbidden`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found (`not_found`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with the current state (`conflict`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 120 requests a minute with this key (`rate_limited`); wait for Retry-After.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"put":{"security":[{"apiKey":[]}],"tags":["Review steps"],"summary":"Set a project's review stages","description":"Up to three team stages before the client's. Only before any review has started.","parameters":[{"schema":{"type":"string"},"required":true,"name":"id","in":"path"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/StagesInput"}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/Step"}}},"required":["data"]}}}},"400":{"description":"The request isn't valid (`invalid_request`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing or revoked API key (`unauthorized`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"The studio is on Free and past its limits; reads still work (`plan_required`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Not allowed (`forbidden`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found (`not_found`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with the current state (`conflict`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 120 requests a minute with this key (`rate_limited`); wait for Retry-After.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/projects/{id}/reviewers":{"post":{"security":[{"apiKey":[]}],"tags":["Review steps"],"summary":"Invite reviewers and send files for review","description":"Adds people to the client stage and emails each their own link (unless `notify` is false). With `fileIds`, those files go out for review at the same time.","parameters":[{"schema":{"type":"string"},"required":true,"name":"id","in":"path"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"reviewers":{"type":"array","items":{"type":"object","properties":{"email":{"type":"string","format":"email"},"name":{"type":"string","maxLength":80},"role":{"type":"string","enum":["approver","reviewer","viewer"],"default":"approver"},"notify":{"type":"boolean","default":true}},"required":["email"]},"maxItems":50,"default":[]},"fileIds":{"type":"array","items":{"type":"string"},"maxItems":200,"default":[]},"message":{"type":"string","maxLength":1000},"dueAt":{"type":["string","null"],"format":"date-time","example":"2026-11-15T09:30:00.000Z"}}}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"invited":{"type":"array","items":{"type":"string"}},"started":{"type":"number","description":"Files that went out for review now."},"queued":{"type":"number","description":"Files still being prepared; they go out once ready."},"reviewers":{"type":"array","items":{"$ref":"#/components/schemas/Reviewer"}},"link":{"type":["string","null"],"description":"The project's review link, to send the client yourself; null when only personal invitations get in."}},"required":["invited","started","queued","reviewers","link"]}}}},"400":{"description":"The request isn't valid (`invalid_request`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing or revoked API key (`unauthorized`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"The studio is on Free and past its limits; reads still work (`plan_required`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Not allowed (`forbidden`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found (`not_found`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with the current state (`conflict`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 120 requests a minute with this key (`rate_limited`); wait for Retry-After.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/projects/{id}/reviewers/{reviewerId}":{"delete":{"security":[{"apiKey":[]}],"tags":["Review steps"],"summary":"Remove a reviewer","parameters":[{"schema":{"type":"string"},"required":true,"name":"id","in":"path"},{"schema":{"type":"string"},"required":true,"name":"reviewerId","in":"path"}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean"}},"required":["ok"]}}}},"400":{"description":"The request isn't valid (`invalid_request`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing or revoked API key (`unauthorized`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"The studio is on Free and past its limits; reads still work (`plan_required`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Not allowed (`forbidden`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found (`not_found`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with the current state (`conflict`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 120 requests a minute with this key (`rate_limited`); wait for Retry-After.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/projects/{id}/files":{"get":{"security":[{"apiKey":[]}],"tags":["Files"],"summary":"List a project's files","parameters":[{"schema":{"type":"string"},"required":true,"name":"id","in":"path"},{"schema":{"type":"integer","minimum":1,"maximum":100,"default":50,"description":"Items per page, up to 100."},"required":false,"description":"Items per page, up to 100.","name":"limit","in":"query"},{"schema":{"type":"string","description":"`nextCursor` from the previous page."},"required":false,"description":"`nextCursor` from the previous page.","name":"cursor","in":"query"}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FilePage"}}}},"400":{"description":"The request isn't valid (`invalid_request`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing or revoked API key (`unauthorized`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"The studio is on Free and past its limits; reads still work (`plan_required`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Not allowed (`forbidden`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found (`not_found`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with the current state (`conflict`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 120 requests a minute with this key (`rate_limited`); wait for Retry-After.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"post":{"security":[{"apiKey":[]}],"tags":["Files"],"summary":"Upload a file (or a new version)","description":"Two ways, both answered once the file is stored and being prepared (`version.status` = processing; the `version.ready` webhook says when it's ready):\n\n- **The bytes as the body** (up to 100 MB): send the file with its `Content-Type` and `Content-Length`, and the details as query parameters: `?filename=brochure.pdf&externalId=…`.\n- **From a URL**: send JSON `{ \"url\": \"https://…\", \"filename\": \"…\" }`; TrulyFinal downloads it (useful from Zapier, Make and Power Automate).\n\nLarger files: POST /v1/projects/{id}/uploads.\n\n**A new version** (`fileId`) of a file that is already in review waits for someone to press Send in TrulyFinal: the reviewers keep the last version and get no email until then. Pass `send=true` to start its review as soon as it's ready, as before.","parameters":[{"schema":{"type":"string"},"required":true,"name":"id","in":"path"},{"schema":{"type":"string","minLength":1,"maxLength":255},"required":false,"name":"filename","in":"query"},{"schema":{"type":"string","description":"Upload a new version of this file instead of a new file."},"required":false,"description":"Upload a new version of this file instead of a new file.","name":"fileId","in":"query"},{"schema":{"type":"string","maxLength":200},"required":false,"name":"externalId","in":"query"},{"schema":{"type":"string","maxLength":500,"description":"What changed, shown with the version."},"required":false,"description":"What changed, shown with the version.","name":"note","in":"query"},{"schema":{"anyOf":[{"type":"boolean"},{"type":"string","enum":["true","false"]}],"description":"A new version of a file that is already in review waits for someone to press Send in TrulyFinal; until then reviewers keep the last version and get no email. `send: true` (`?send=true` with the bytes as the body) starts its review as soon as it's ready, as before. Off by default. Ignored for a new file, which starts with Send for review."},"required":false,"description":"A new version of a file that is already in review waits for someone to press Send in TrulyFinal; until then reviewers keep the last version and get no email. `send: true` (`?send=true` with the bytes as the body) starts its review as soon as it's ready, as before. Off by default. Ignored for a new file, which starts with Send for review.","name":"send","in":"query"}],"responses":{"201":{"description":"Created","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Uploaded"}}}},"400":{"description":"The request isn't valid (`invalid_request`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing or revoked API key (`unauthorized`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"The studio is on Free and past its limits; reads still work (`plan_required`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Not allowed (`forbidden`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found (`not_found`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with the current state (`conflict`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"Too big for its kind, or for the plan's storage (`too_large`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"415":{"description":"Not a format TrulyFinal reviews (`unsupported_file`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 120 requests a minute with this key (`rate_limited`); wait for Retry-After.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/files":{"get":{"security":[{"apiKey":[]}],"tags":["Files"],"summary":"Find files by your own id","description":"Every file whose `externalId` matches, across all projects. `externalIdPrefix` finds every file whose id starts with it (e.g. all the pages one WordPress site sent), for showing their status in one call.","parameters":[{"schema":{"type":"integer","minimum":1,"maximum":100,"default":50,"description":"Items per page, up to 100."},"required":false,"description":"Items per page, up to 100.","name":"limit","in":"query"},{"schema":{"type":"string","description":"`nextCursor` from the previous page."},"required":false,"description":"`nextCursor` from the previous page.","name":"cursor","in":"query"},{"schema":{"type":"string","minLength":1,"maxLength":200},"required":false,"name":"externalId","in":"query"},{"schema":{"type":"string","minLength":3,"maxLength":200},"required":false,"name":"externalIdPrefix","in":"query"}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FileSearchPage"}}}},"400":{"description":"The request isn't valid (`invalid_request`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing or revoked API key (`unauthorized`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"The studio is on Free and past its limits; reads still work (`plan_required`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Not allowed (`forbidden`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found (`not_found`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with the current state (`conflict`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 120 requests a minute with this key (`rate_limited`); wait for Retry-After.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/files/{id}":{"get":{"security":[{"apiKey":[]}],"tags":["Files"],"summary":"Get a file and its versions","parameters":[{"schema":{"type":"string"},"required":true,"name":"id","in":"path"}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FileDetail"}}}},"400":{"description":"The request isn't valid (`invalid_request`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing or revoked API key (`unauthorized`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"The studio is on Free and past its limits; reads still work (`plan_required`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Not allowed (`forbidden`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found (`not_found`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with the current state (`conflict`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 120 requests a minute with this key (`rate_limited`); wait for Retry-After.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"patch":{"security":[{"apiKey":[]}],"tags":["Files"],"summary":"Rename a file, set its external id or move it to a section","description":"A `section` that doesn't exist yet is added at the end of the project's sections; null takes the file out of its section.","parameters":[{"schema":{"type":"string"},"required":true,"name":"id","in":"path"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":160},"externalId":{"type":["string","null"],"maxLength":200},"section":{"type":["string","null"],"maxLength":200}}}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FileDetail"}}}},"400":{"description":"The request isn't valid (`invalid_request`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing or revoked API key (`unauthorized`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"The studio is on Free and past its limits; reads still work (`plan_required`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Not allowed (`forbidden`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found (`not_found`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with the current state (`conflict`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 120 requests a minute with this key (`rate_limited`); wait for Retry-After.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"delete":{"security":[{"apiKey":[]}],"tags":["Files"],"summary":"Delete a file","description":"It goes to Recently deleted for 30 days.","parameters":[{"schema":{"type":"string"},"required":true,"name":"id","in":"path"}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean"}},"required":["ok"]}}}},"400":{"description":"The request isn't valid (`invalid_request`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing or revoked API key (`unauthorized`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"The studio is on Free and past its limits; reads still work (`plan_required`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Not allowed (`forbidden`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found (`not_found`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with the current state (`conflict`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 120 requests a minute with this key (`rate_limited`); wait for Retry-After.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/projects/{id}/uploads":{"post":{"security":[{"apiKey":[]}],"tags":["Files"],"summary":"Start a large upload in parts","description":"For files over 100 MB. Then PUT each part (`partSize` bytes, the last one shorter) to /v1/uploads/{versionId}/parts/{n}?uploadId=…, and finish with POST /v1/uploads/{versionId}/complete.","parameters":[{"schema":{"type":"string"},"required":true,"name":"id","in":"path"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"filename":{"type":"string","minLength":1,"maxLength":255},"fileId":{"type":"string","description":"Upload a new version of this file instead of a new file."},"externalId":{"type":"string","maxLength":200},"note":{"type":"string","maxLength":500,"description":"What changed, shown with the version."},"send":{"anyOf":[{"type":"boolean"},{"type":"string","enum":["true","false"]}],"description":"A new version of a file that is already in review waits for someone to press Send in TrulyFinal; until then reviewers keep the last version and get no email. `send: true` (`?send=true` with the bytes as the body) starts its review as soon as it's ready, as before. Off by default. Ignored for a new file, which starts with Send for review."},"size":{"type":"integer","exclusiveMinimum":0},"mime":{"type":"string"}},"required":["filename","size"]}}}},"responses":{"201":{"description":"Created","content":{"application/json":{"schema":{"type":"object","properties":{"fileId":{"type":"string"},"versionId":{"type":"string"},"uploadId":{"type":"string"},"partSize":{"type":"number"},"parts":{"type":"number"}},"required":["fileId","versionId","uploadId","partSize","parts"]}}}},"400":{"description":"The request isn't valid (`invalid_request`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing or revoked API key (`unauthorized`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"The studio is on Free and past its limits; reads still work (`plan_required`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Not allowed (`forbidden`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found (`not_found`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with the current state (`conflict`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 120 requests a minute with this key (`rate_limited`); wait for Retry-After.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/uploads/{versionId}/parts/{part}":{"put":{"security":[{"apiKey":[]}],"tags":["Files"],"summary":"Upload one part","description":"The part's bytes as the body.","parameters":[{"schema":{"type":"string"},"required":true,"name":"versionId","in":"path"},{"schema":{"type":"integer","minimum":1,"maximum":10000},"required":true,"name":"part","in":"path"},{"schema":{"type":"string"},"required":true,"name":"uploadId","in":"query"}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"partNumber":{"type":"number"},"etag":{"type":"string"}},"required":["partNumber","etag"]}}}},"400":{"description":"The request isn't valid (`invalid_request`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing or revoked API key (`unauthorized`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"The studio is on Free and past its limits; reads still work (`plan_required`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Not allowed (`forbidden`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found (`not_found`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with the current state (`conflict`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 120 requests a minute with this key (`rate_limited`); wait for Retry-After.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/uploads/{versionId}/complete":{"post":{"security":[{"apiKey":[]}],"tags":["Files"],"summary":"Finish a large upload","parameters":[{"schema":{"type":"string"},"required":true,"name":"versionId","in":"path"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"uploadId":{"type":"string"},"parts":{"type":"array","items":{"type":"object","properties":{"partNumber":{"type":"integer"},"etag":{"type":"string"}},"required":["partNumber","etag"]},"minItems":1}},"required":["uploadId","parts"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Uploaded"}}}},"400":{"description":"The request isn't valid (`invalid_request`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing or revoked API key (`unauthorized`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"The studio is on Free and past its limits; reads still work (`plan_required`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Not allowed (`forbidden`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found (`not_found`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with the current state (`conflict`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 120 requests a minute with this key (`rate_limited`); wait for Retry-After.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/projects/{id}/websites":{"post":{"security":[{"apiKey":[]}],"tags":["Files"],"summary":"Review a web page (or capture it again)","description":"TrulyFinal captures the page at each width as a snapshot to comment on. Answered while it captures (`version.status` = processing). With `fileId`, or an `externalId` a file in this project already has, the page is captured again as that file's next version (`newVersion`), at its address unless `url` changes it.","parameters":[{"schema":{"type":"string"},"required":true,"name":"id","in":"path"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"url":{"type":"string","minLength":1,"maxLength":2048,"description":"The page's address, e.g. a staging site (`https://my-site.webflow.io/pricing`, `https://my-site.framer.website`)."},"widths":{"type":"array","items":{"type":"integer"},"minItems":1,"maxItems":3,"description":"Widths to capture at: 1440, 768, 390 (all three by default)."},"fileId":{"type":"string","description":"Capture it again as the next version of this website file."},"externalId":{"type":"string","maxLength":200,"description":"Your own id for the page, e.g. `webflow:<site>:<page>`. A file in this project with the same id is captured again, as its next version."},"name":{"type":"string","minLength":1,"maxLength":160,"description":"The file's name (e.g. the page's title); else its address."},"send":{"type":"boolean","description":"A capture again (new version) of a page already in review waits for someone to press Send in TrulyFinal. `true` starts its review as soon as it's ready. Off by default."}},"required":["url"]}}}},"responses":{"201":{"description":"Created","content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/Uploaded"},{"type":"object","properties":{"newVersion":{"type":"boolean"}},"required":["newVersion"]}]}}}},"400":{"description":"The request isn't valid (`invalid_request`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing or revoked API key (`unauthorized`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"The studio is on Free and past its limits; reads still work (`plan_required`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Not allowed (`forbidden`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found (`not_found`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with the current state (`conflict`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 120 requests a minute with this key (`rate_limited`); wait for Retry-After.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/versions/{id}/download":{"get":{"security":[{"apiKey":[]}],"tags":["Files"],"summary":"Download a version's original file","parameters":[{"schema":{"type":"string"},"required":true,"name":"id","in":"path"}],"responses":{"200":{"description":"The file as uploaded.","content":{"application/octet-stream":{"schema":{"type":"string","format":"binary"}}}},"400":{"description":"The request isn't valid (`invalid_request`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing or revoked API key (`unauthorized`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"The studio is on Free and past its limits; reads still work (`plan_required`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Not allowed (`forbidden`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found (`not_found`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with the current state (`conflict`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 120 requests a minute with this key (`rate_limited`); wait for Retry-After.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/versions/{id}/reviews":{"get":{"security":[{"apiKey":[]}],"tags":["Reviews"],"summary":"A version's reviews, stage by stage","parameters":[{"schema":{"type":"string"},"required":true,"name":"id","in":"path"}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/Review"}}},"required":["data"]}}}},"400":{"description":"The request isn't valid (`invalid_request`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing or revoked API key (`unauthorized`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"The studio is on Free and past its limits; reads still work (`plan_required`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Not allowed (`forbidden`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found (`not_found`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with the current state (`conflict`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 120 requests a minute with this key (`rate_limited`); wait for Retry-After.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"post":{"security":[{"apiKey":[]}],"tags":["Reviews"],"summary":"Send a version for review","description":"Without `stepId` it goes to the first stage and its reviewers. With `stepId` it starts at that stage, skipping the ones before. Only the latest, ready version. For a new version waiting to be sent (see `send` on uploads), this is Send: its review continues with the same reviewers.","parameters":[{"schema":{"type":"string"},"required":true,"name":"id","in":"path"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"stepId":{"type":"string"},"dueAt":{"type":["string","null"],"format":"date-time","example":"2026-11-15T09:30:00.000Z"},"message":{"type":"string","maxLength":1000}}}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/Review"}}},"required":["data"]}}}},"400":{"description":"The request isn't valid (`invalid_request`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing or revoked API key (`unauthorized`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"The studio is on Free and past its limits; reads still work (`plan_required`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Not allowed (`forbidden`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found (`not_found`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with the current state (`conflict`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 120 requests a minute with this key (`rate_limited`); wait for Retry-After.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/reviews/{id}":{"patch":{"security":[{"apiKey":[]}],"tags":["Reviews"],"summary":"Change a review's due date","parameters":[{"schema":{"type":"string"},"required":true,"name":"id","in":"path"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"dueAt":{"type":["string","null"],"format":"date-time","example":"2026-11-15T09:30:00.000Z"}},"required":["dueAt"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean"},"dueAt":{"type":["string","null"],"format":"date-time","example":"2026-11-15T09:30:00.000Z"}},"required":["ok","dueAt"]}}}},"400":{"description":"The request isn't valid (`invalid_request`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing or revoked API key (`unauthorized`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"The studio is on Free and past its limits; reads still work (`plan_required`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Not allowed (`forbidden`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found (`not_found`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with the current state (`conflict`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 120 requests a minute with this key (`rate_limited`); wait for Retry-After.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/reviews/{id}/decision":{"post":{"security":[{"apiKey":[]}],"tags":["Reviews"],"summary":"Record a decision on the client's behalf","description":"When a client approved or asked for changes outside TrulyFinal (by email, by phone). The approval record says who recorded it, how the client decided (`basis`) and why (`reason`). `in_review` reopens the review.","parameters":[{"schema":{"type":"string"},"required":true,"name":"id","in":"path"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","enum":["approved","changes_requested","in_review"]},"basis":{"type":"string","enum":["email","phone","in_person","other"],"description":"How the client approved; needed with `approved`."},"reason":{"type":"string","minLength":3,"maxLength":500},"reviewerId":{"type":"string","description":"The reviewer it was decided for; else the review as a whole."}},"required":["status","reason"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/Review"}}},"required":["data"]}}}},"400":{"description":"The request isn't valid (`invalid_request`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing or revoked API key (`unauthorized`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"The studio is on Free and past its limits; reads still work (`plan_required`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Not allowed (`forbidden`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found (`not_found`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with the current state (`conflict`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 120 requests a minute with this key (`rate_limited`); wait for Retry-After.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/versions/{id}/comments":{"get":{"security":[{"apiKey":[]}],"tags":["Comments"],"summary":"List a version's comments","description":"Newest first; replies carry `parentId`.","parameters":[{"schema":{"type":"string"},"required":true,"name":"id","in":"path"},{"schema":{"type":"integer","minimum":1,"maximum":100,"default":50,"description":"Items per page, up to 100."},"required":false,"description":"Items per page, up to 100.","name":"limit","in":"query"},{"schema":{"type":"string","description":"`nextCursor` from the previous page."},"required":false,"description":"`nextCursor` from the previous page.","name":"cursor","in":"query"}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CommentPage"}}}},"400":{"description":"The request isn't valid (`invalid_request`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing or revoked API key (`unauthorized`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"The studio is on Free and past its limits; reads still work (`plan_required`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Not allowed (`forbidden`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found (`not_found`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with the current state (`conflict`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 120 requests a minute with this key (`rate_limited`); wait for Retry-After.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"post":{"security":[{"apiKey":[]}],"tags":["Comments"],"summary":"Comment on a version","description":"Internal by default (the team only); `internal: false` shares it with the client. A pin needs `page` and `x`/`y` (0–1 from the top left). On a video, `timeMs` (and `timeEndMs` for a range). Attach files by uploading them first (POST /v1/versions/{id}/attachments) and listing their ids.","parameters":[{"schema":{"type":"string"},"required":true,"name":"id","in":"path"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"body":{"type":"string","minLength":1,"maxLength":5000},"internal":{"type":"boolean","default":true},"parentId":{"type":"string"},"page":{"type":"integer","minimum":1},"x":{"type":"number","minimum":0,"maximum":1},"y":{"type":"number","minimum":0,"maximum":1},"timeMs":{"type":"integer","minimum":0},"timeEndMs":{"type":"integer","minimum":0},"attachmentIds":{"type":"array","items":{"type":"string"},"maxItems":10}},"required":["body"]}}}},"responses":{"201":{"description":"Created","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Comment"}}}},"400":{"description":"The request isn't valid (`invalid_request`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing or revoked API key (`unauthorized`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"The studio is on Free and past its limits; reads still work (`plan_required`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Not allowed (`forbidden`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found (`not_found`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with the current state (`conflict`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 120 requests a minute with this key (`rate_limited`); wait for Retry-After.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/versions/{id}/attachments":{"post":{"security":[{"apiKey":[]}],"tags":["Comments"],"summary":"Upload a comment attachment","description":"The file's bytes as the body (up to 25 MB) with its `Content-Type`, and `?filename=`. Then pass the returned id in `attachmentIds` when you post the comment.","parameters":[{"schema":{"type":"string"},"required":true,"name":"id","in":"path"},{"schema":{"type":"string","minLength":1,"maxLength":200},"required":true,"name":"filename","in":"query"}],"responses":{"201":{"description":"Created","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"},"filename":{"type":"string"},"mime":{"type":"string"},"byteSize":{"type":"number"}},"required":["id","filename","mime","byteSize"]}}}},"400":{"description":"The request isn't valid (`invalid_request`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing or revoked API key (`unauthorized`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"The studio is on Free and past its limits; reads still work (`plan_required`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Not allowed (`forbidden`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found (`not_found`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with the current state (`conflict`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"Over 25 MB (`too_large`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 120 requests a minute with this key (`rate_limited`); wait for Retry-After.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/attachments/{id}":{"get":{"security":[{"apiKey":[]}],"tags":["Comments"],"summary":"Download a comment attachment","parameters":[{"schema":{"type":"string"},"required":true,"name":"id","in":"path"}],"responses":{"200":{"description":"The attached file.","content":{"application/octet-stream":{"schema":{"type":"string","format":"binary"}}}},"400":{"description":"The request isn't valid (`invalid_request`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing or revoked API key (`unauthorized`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"The studio is on Free and past its limits; reads still work (`plan_required`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Not allowed (`forbidden`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found (`not_found`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with the current state (`conflict`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 120 requests a minute with this key (`rate_limited`); wait for Retry-After.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/versions/{id}/comments/copy":{"post":{"security":[{"apiKey":[]}],"tags":["Comments"],"summary":"Share team comments with the client","description":"Copies team comments (internal ones, or a team stage's) to the client's review of the same version, as you. Each is copied once, with its markup and attachments; AI findings aren't copied.","parameters":[{"schema":{"type":"string"},"required":true,"name":"id","in":"path"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"commentIds":{"type":"array","items":{"type":"string"},"minItems":1,"maxItems":100}},"required":["commentIds"]}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"copied":{"type":"number"},"numbers":{"type":"array","items":{"type":"number"},"description":"The copies' comment numbers."}},"required":["copied","numbers"]}}}},"400":{"description":"The request isn't valid (`invalid_request`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing or revoked API key (`unauthorized`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"The studio is on Free and past its limits; reads still work (`plan_required`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Not allowed (`forbidden`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found (`not_found`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with the current state (`conflict`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 120 requests a minute with this key (`rate_limited`); wait for Retry-After.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/comments/{id}":{"patch":{"security":[{"apiKey":[]}],"tags":["Comments"],"summary":"Edit, resolve or reopen a comment","description":"A key can edit only its own comments; any top-level comment can be resolved.","parameters":[{"schema":{"type":"string"},"required":true,"name":"id","in":"path"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"body":{"type":"string","minLength":1,"maxLength":5000},"status":{"type":"string","enum":["open","resolved"]}}}}}},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Comment"}}}},"400":{"description":"The request isn't valid (`invalid_request`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing or revoked API key (`unauthorized`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"The studio is on Free and past its limits; reads still work (`plan_required`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Not allowed (`forbidden`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found (`not_found`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with the current state (`conflict`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 120 requests a minute with this key (`rate_limited`); wait for Retry-After.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"delete":{"security":[{"apiKey":[]}],"tags":["Comments"],"summary":"Delete a comment","description":"A key can delete only its own comments (and AI findings).","parameters":[{"schema":{"type":"string"},"required":true,"name":"id","in":"path"}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean"}},"required":["ok"]}}}},"400":{"description":"The request isn't valid (`invalid_request`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing or revoked API key (`unauthorized`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"The studio is on Free and past its limits; reads still work (`plan_required`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Not allowed (`forbidden`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found (`not_found`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with the current state (`conflict`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 120 requests a minute with this key (`rate_limited`); wait for Retry-After.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/templates":{"get":{"security":[{"apiKey":[]}],"tags":["Templates"],"summary":"List workflow templates","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/Template"}}},"required":["data"]}}}},"400":{"description":"The request isn't valid (`invalid_request`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing or revoked API key (`unauthorized`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"The studio is on Free and past its limits; reads still work (`plan_required`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Not allowed (`forbidden`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found (`not_found`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with the current state (`conflict`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 120 requests a minute with this key (`rate_limited`); wait for Retry-After.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"post":{"security":[{"apiKey":[]}],"tags":["Templates"],"summary":"Save a workflow template","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":60},"description":{"type":"string","maxLength":200},"stages":{"$ref":"#/components/schemas/StagesInput"}},"required":["name","stages"]}}}},"responses":{"201":{"description":"Created","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Template"}}}},"400":{"description":"The request isn't valid (`invalid_request`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing or revoked API key (`unauthorized`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"The studio is on Free and past its limits; reads still work (`plan_required`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Not allowed (`forbidden`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found (`not_found`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with the current state (`conflict`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 120 requests a minute with this key (`rate_limited`); wait for Retry-After.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/templates/{id}":{"delete":{"security":[{"apiKey":[]}],"tags":["Templates"],"summary":"Delete a workflow template","parameters":[{"schema":{"type":"string"},"required":true,"name":"id","in":"path"}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean"}},"required":["ok"]}}}},"400":{"description":"The request isn't valid (`invalid_request`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing or revoked API key (`unauthorized`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"The studio is on Free and past its limits; reads still work (`plan_required`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Not allowed (`forbidden`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found (`not_found`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with the current state (`conflict`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 120 requests a minute with this key (`rate_limited`); wait for Retry-After.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/events":{"get":{"security":[{"apiKey":[]}],"tags":["Webhooks"],"summary":"The events a webhook can receive","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string"},"group":{"type":"string"},"label":{"type":"string"}},"required":["type","group","label"]}}},"required":["data"]}}}},"400":{"description":"The request isn't valid (`invalid_request`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing or revoked API key (`unauthorized`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"The studio is on Free and past its limits; reads still work (`plan_required`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Not allowed (`forbidden`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found (`not_found`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with the current state (`conflict`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 120 requests a minute with this key (`rate_limited`); wait for Retry-After.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/webhooks":{"get":{"security":[{"apiKey":[]}],"tags":["Webhooks"],"summary":"List webhooks","responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/Webhook"}}},"required":["data"]}}}},"400":{"description":"The request isn't valid (`invalid_request`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing or revoked API key (`unauthorized`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"The studio is on Free and past its limits; reads still work (`plan_required`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Not allowed (`forbidden`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found (`not_found`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with the current state (`conflict`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 120 requests a minute with this key (`rate_limited`); wait for Retry-After.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"post":{"security":[{"apiKey":[]}],"tags":["Webhooks"],"summary":"Subscribe a URL to events","description":"Every event is POSTed as JSON, signed with `TrulyFinal-Signature: t=<unix time>,v1=<hex HMAC-SHA256 of \"t.body\" with the secret>`. Failed deliveries are retried over about two days. A webhook a key adds is removed when the key is revoked.","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"url":{"type":"string","minLength":1,"maxLength":2000},"events":{"type":["array","null"],"items":{"type":"string","enum":["project.created","project.completed","project.archived","project.deleted","version.uploaded","version.ready","version.processing_failed","round.started","stage.advanced","reviewer.invited","decision.made","decision.withdrawn","round.overridden","round.overdue","approval.sealed","approval.revoked","comment.created","comment.replied","comment.resolved","delivery.sent","delivery.downloaded"]},"maxItems":21}},"required":["url"]}}}},"responses":{"201":{"description":"Created","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Webhook"}}}},"400":{"description":"The request isn't valid (`invalid_request`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing or revoked API key (`unauthorized`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"The studio is on Free and past its limits; reads still work (`plan_required`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Not allowed (`forbidden`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found (`not_found`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with the current state (`conflict`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 120 requests a minute with this key (`rate_limited`); wait for Retry-After.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/webhooks/{id}":{"delete":{"security":[{"apiKey":[]}],"tags":["Webhooks"],"summary":"Unsubscribe","parameters":[{"schema":{"type":"string"},"required":true,"name":"id","in":"path"}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean"}},"required":["ok"]}}}},"400":{"description":"The request isn't valid (`invalid_request`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing or revoked API key (`unauthorized`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"The studio is on Free and past its limits; reads still work (`plan_required`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Not allowed (`forbidden`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found (`not_found`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Conflicts with the current state (`conflict`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"More than 120 requests a minute with this key (`rate_limited`); wait for Retry-After.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/projects/{id}/preproof":{"post":{"tags":["Files"],"security":[{"apiKey":[]}],"summary":"Check a file before sending it (PreProof)","description":"Runs the studio's AI check (spelling and grammar, the word list, house rules and reviewers) on a PDF or image without uploading it. Send the file as the body with its Content-Type. Nothing is kept but the run itself, which counts as one AI check.","parameters":[{"schema":{"type":"string"},"required":true,"name":"id","in":"path"}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PreproofResult"}}}},"409":{"description":"AI check is off, or this month's allowance is used (`conflict`).","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["code","message"]}},"required":["error"]}}}},"413":{"description":"Over 50 MB (`too_large`).","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["code","message"]}},"required":["error"]}}}},"415":{"description":"Not a PDF or image (`unsupported_file`).","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["code","message"]}},"required":["error"]}}}}}}}},"webhooks":{}}