{"openapi":"3.1.0","info":{"title":"Vaultko API","version":"v1","description":"Everything in the Vaultko app, over HTTP. Authenticate with a workspace API key (`Authorization: Bearer vk_…`); a key can only do what its scopes allow."},"tags":[{"name":"Workspace","description":"The workspace the key belongs to: its settings, subdomain, and usage."},{"name":"Members","description":"Who belongs to the workspace. Admins change membership in the app."},{"name":"Invitations","description":"Pending invitations. They're sent from the app."},{"name":"Library folders","description":"Folders in the library."},{"name":"Files","description":"Library files and their versions, uploaded with presigned URLs."},{"name":"Vaults","description":"Data rooms: their folders, items, and who can open what."},{"name":"Visitor uploads","description":"Files visitors sent to a vault's file requests, after their malware scan. List them from a vault."},{"name":"Agreements","description":"Agreement templates, their versions, and signing fields."},{"name":"Signings","description":"Signed and in-progress agreements, and their executed PDFs."},{"name":"Closings","description":"Round closings: a bulk send tracked to signatures and wires, and the sealed closing statement."},{"name":"Links","description":"Links to files, vaults, and agreements, with their rules and grants."},{"name":"Entities","description":"Companies and funds you share with, matched by email domain."},{"name":"Contacts","description":"People who have visited or signed, and their entities."},{"name":"Updates","description":"Investor updates: drafts and their letters, sending, who read them, and control after sending."},{"name":"Update lists","description":"Who gets the workspace's investor updates. Members are contacts; adding someone sends nothing."},{"name":"Metrics","description":"The numbers the workspace reports, like MRR and runway, with a value per month or quarter."},{"name":"Analytics","description":"Visits, time on page, downloads, and engagement."},{"name":"Alerts","description":"Notable activity: first visits, new domains, signings."},{"name":"Audit log","description":"Every change, access decision, and download, hash-chained. Exports and per-object history."},{"name":"Webhooks","description":"Endpoints that receive signed events, and their deliveries."},{"name":"Evidence","description":"Sealed certificates about a vault: what a party could open and did, that their access ended, and closing archives. Start one from a vault."},{"name":"Data exports","description":"ZIPs of what's held about a contact, for access requests. Start one from a contact, then download it."},{"name":"Erasures","description":"Erasing a contact runs in the background; this is where it's up to and what it kept as evidence."}],"servers":[{"url":"https://api.vaultko.com/api/v1"}],"security":[{"apiKey":[]}],"paths":{"/workspace":{"get":{"operationId":"workspace.get","tags":["Workspace"],"summary":"Get the API key's workspace","responses":{"200":{"description":"Success","content":{"application/json":{}}},"default":{"$ref":"#/components/responses/Error"}}},"patch":{"operationId":"workspace.update","tags":["Workspace"],"summary":"Update the workspace's name, branding, or default recipient language","requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":80},"accentColor":{"anyOf":[{"type":"string","pattern":"^#[0-9a-fA-F]{6}$"},{"type":"null"}]},"hideBadge":{"description":"Hide the Vaultko badge from visitors. Needs a plan with `remove_badge`.","type":"boolean"},"recipientLocale":{"description":"The default recipient language, for recipients and sends with none of their own; null is automatic (each recipient's browser)","anyOf":[{"type":"string","enum":["en","es","pt"]},{"type":"null"}]}}}}}},"x-idempotency":"Send an Idempotency-Key header to make retries safe. Keys are kept for 24 hours.","responses":{"200":{"description":"Success","content":{"application/json":{}}},"default":{"$ref":"#/components/responses/Error"}}}},"/workspace/usage":{"get":{"operationId":"workspace.usage","tags":["Workspace"],"summary":"Plan limits and current usage","responses":{"200":{"description":"Success","content":{"application/json":{}}},"default":{"$ref":"#/components/responses/Error"}}}},"/workspace/subdomain-availability":{"get":{"operationId":"workspace.checkSubdomain","tags":["Workspace"],"summary":"Check whether a subdomain can be used","parameters":[{"name":"subdomain","in":"query","required":true,"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"string"}}],"responses":{"200":{"description":"Success","content":{"application/json":{}}},"default":{"$ref":"#/components/responses/Error"}}}},"/workspace/subdomain":{"post":{"operationId":"workspace.changeSubdomain","tags":["Workspace"],"summary":"Change the visitor subdomain","requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"subdomain":{"type":"string"}},"required":["subdomain"]}}}},"x-idempotency":"Send an Idempotency-Key header to make retries safe. Keys are kept for 24 hours.","responses":{"200":{"description":"Success","content":{"application/json":{}}},"default":{"$ref":"#/components/responses/Error"}}}},"/workspace/domains":{"get":{"operationId":"domains.list","tags":["Workspace"],"summary":"The workspace's link domain and sending domain, and its vaults' link domains, with the DNS records to add","responses":{"200":{"description":"Success","content":{"application/json":{}}},"default":{"$ref":"#/components/responses/Error"}}},"post":{"operationId":"domains.add","tags":["Workspace"],"summary":"Add a link domain (the workspace's or a vault's) or a sending domain. It's checked until its DNS records are right","requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"kind":{"type":"string","enum":["link","sending"],"description":"`link` for visitor links (dataroom.acme.com), `sending` for the From address (acme.com)"},"domain":{"type":"string","maxLength":300,"description":"The hostname. A URL works too: the scheme and path are dropped"},"vaultId":{"description":"A link domain for this vault's links only (DOMAINS §2.6), instead of the workspace's","type":"string"},"www":{"description":"An apex link domain also answers on www., redirecting to it (default true). Ignored for a subdomain","type":"boolean"}},"required":["kind","domain"]}}}},"x-idempotency":"Send an Idempotency-Key header to make retries safe. Keys are kept for 24 hours.","responses":{"200":{"description":"Success","content":{"application/json":{}}},"default":{"$ref":"#/components/responses/Error"}}}},"/workspace/domains/{domainId}/check":{"post":{"operationId":"domains.check","tags":["Workspace"],"summary":"Check the domain's DNS records now, at most every 30 seconds","parameters":[{"name":"domainId","in":"path","required":true,"schema":{"type":"string"}}],"x-idempotency":"Send an Idempotency-Key header to make retries safe. Keys are kept for 24 hours.","responses":{"200":{"description":"Success","content":{"application/json":{}}},"default":{"$ref":"#/components/responses/Error"}}}},"/workspace/domains/{domainId}":{"patch":{"operationId":"domains.update","tags":["Workspace"],"summary":"Change a sending domain's address, what a link domain's root opens, or an apex's www. redirect","parameters":[{"name":"domainId","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"localPart":{"description":"A sending domain's address: what goes before the @, e.g. `notifications`","type":"string","maxLength":64},"root":{"description":"What a link domain's bare root opens: its parent domain, the updates portal, `rootUrl`, or a neutral page","type":"string","enum":["parent","portal","url","none"]},"rootUrl":{"description":"The https:// page for `root: \"url\"`","type":"string","maxLength":2000},"www":{"description":"An apex link domain also answers on www., redirecting to it","type":"boolean"}}}}}},"x-idempotency":"Send an Idempotency-Key header to make retries safe. Keys are kept for 24 hours.","responses":{"200":{"description":"Success","content":{"application/json":{}}},"default":{"$ref":"#/components/responses/Error"}}},"delete":{"operationId":"domains.remove","tags":["Workspace"],"summary":"Remove a domain. Links on a link domain stop opening; email goes from Vaultko's domains","parameters":[{"name":"domainId","in":"path","required":true,"schema":{"type":"string"}}],"x-idempotency":"Send an Idempotency-Key header to make retries safe. Keys are kept for 24 hours.","responses":{"200":{"description":"Success","content":{"application/json":{}}},"default":{"$ref":"#/components/responses/Error"}}}},"/workspace/privacy":{"get":{"operationId":"workspace.privacy.get","tags":["Workspace"],"summary":"Retention windows, what retention has removed so far, and the visitor notice settings","responses":{"200":{"description":"Success","content":{"application/json":{}}},"default":{"$ref":"#/components/responses/Error"}}},"patch":{"operationId":"workspace.privacy.update","tags":["Workspace"],"summary":"Change retention windows or the visitor notice","requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"retention":{"type":"object","properties":{"visitsMonths":{"description":"Visit activity, in months (3–36, default 13)","type":"integer","minimum":3,"maximum":36},"ipDays":{"description":"IP addresses, in days (7–90, default 30)","type":"integer","minimum":7,"maximum":90},"alertsMonths":{"description":"Alerts and email history, in months (3–36, default 12)","type":"integer","minimum":3,"maximum":36},"auditYears":{"description":"Audit log, in years (1–10, default 7)","type":"integer","minimum":1,"maximum":10}},"additionalProperties":false},"privacyPolicyUrl":{"description":"Your own privacy policy, linked from the notice visitors see; null for Vaultko's","anyOf":[{"type":"string","maxLength":500,"format":"uri"},{"type":"null"}]},"visitorNoticeExtra":{"description":"A line shown under the notice; null to remove it","anyOf":[{"type":"string","maxLength":300},{"type":"null"}]}}}}}},"x-idempotency":"Send an Idempotency-Key header to make retries safe. Keys are kept for 24 hours.","responses":{"200":{"description":"Success","content":{"application/json":{}}},"default":{"$ref":"#/components/responses/Error"}}}},"/archives":{"get":{"operationId":"archives.list","tags":["Data exports"],"summary":"Contact data exports, newest first. Files can be downloaded for a day","parameters":[{"name":"cursor","in":"query","required":false,"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","description":"Opaque cursor from a previous page's `nextCursor`","type":"string"},"description":"Opaque cursor from a previous page's `nextCursor`"},{"name":"limit","in":"query","required":false,"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","description":"Page size, 1–100 (default 50)","type":"integer","minimum":1,"maximum":100},"description":"Page size, 1–100 (default 50)"},{"name":"contactId","in":"query","required":false,"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","description":"Only this contact's","type":"string"},"description":"Only this contact's"}],"responses":{"200":{"description":"Success","content":{"application/json":{}}},"default":{"$ref":"#/components/responses/Error"}}}},"/archives/{archiveId}":{"get":{"operationId":"archives.get","tags":["Data exports"],"summary":"An export's status: building, zipping, ready, failed, or expired","parameters":[{"name":"archiveId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Success","content":{"application/json":{}}},"default":{"$ref":"#/components/responses/Error"}}}},"/archives/{archiveId}/download":{"post":{"operationId":"archives.downloadUrl","tags":["Data exports"],"summary":"A short-lived URL to download a ready export","parameters":[{"name":"archiveId","in":"path","required":true,"schema":{"type":"string"}}],"x-idempotency":"Send an Idempotency-Key header to make retries safe. Keys are kept for 24 hours.","responses":{"200":{"description":"Success","content":{"application/json":{}}},"default":{"$ref":"#/components/responses/Error"}}}},"/erasures/{erasureId}":{"get":{"operationId":"erasures.get","tags":["Erasures"],"summary":"Where an erasure is up to, and the signings it kept as evidence","parameters":[{"name":"erasureId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Success","content":{"application/json":{}}},"default":{"$ref":"#/components/responses/Error"}}}},"/members":{"get":{"operationId":"members.list","tags":["Members"],"summary":"List workspace members","responses":{"200":{"description":"Success","content":{"application/json":{}}},"default":{"$ref":"#/components/responses/Error"}}}},"/invitations":{"get":{"operationId":"invitations.list","tags":["Invitations"],"summary":"List pending invitations","responses":{"200":{"description":"Success","content":{"application/json":{}}},"default":{"$ref":"#/components/responses/Error"}}}},"/audit-logs":{"get":{"operationId":"audit.list","tags":["Audit log"],"summary":"List audit log entries, newest first","parameters":[{"name":"cursor","in":"query","required":false,"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","description":"Opaque cursor from a previous page's `nextCursor`","type":"string"},"description":"Opaque cursor from a previous page's `nextCursor`"},{"name":"limit","in":"query","required":false,"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","description":"Page size, 1–100 (default 50)","type":"integer","minimum":1,"maximum":100},"description":"Page size, 1–100 (default 50)"},{"name":"action","in":"query","required":false,"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","description":"Exact action, or a prefix ending in `.`, e.g. `link.`","type":"string"},"description":"Exact action, or a prefix ending in `.`, e.g. `link.`"},{"name":"actorType","in":"query","required":false,"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"string","enum":["user","apiKey","system","visitor","staff"]}},{"name":"actorId","in":"query","required":false,"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"string"}},{"name":"targetType","in":"query","required":false,"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"string"}},{"name":"targetId","in":"query","required":false,"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"string"}},{"name":"vaultId","in":"query","required":false,"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"string"}},{"name":"from","in":"query","required":false,"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","description":"Inclusive start, ms since epoch","type":"number"},"description":"Inclusive start, ms since epoch"},{"name":"to","in":"query","required":false,"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","description":"Exclusive end, ms since epoch","type":"number"},"description":"Exclusive end, ms since epoch"}],"responses":{"200":{"description":"Success","content":{"application/json":{}}},"default":{"$ref":"#/components/responses/Error"}}}},"/audit-logs/chain":{"get":{"operationId":"audit.chain","tags":["Audit log"],"summary":"The audit log's hash chain: its newest entry and hash, and the last verification","responses":{"200":{"description":"Success","content":{"application/json":{}}},"default":{"$ref":"#/components/responses/Error"}}}},"/audit-logs/chain/verify":{"post":{"operationId":"audit.verifyChain","tags":["Audit log"],"summary":"Check the whole hash chain now. It runs in the background; poll /audit-logs/chain for the result","x-idempotency":"Send an Idempotency-Key header to make retries safe. Keys are kept for 24 hours.","responses":{"202":{"description":"Success","content":{"application/json":{}}},"default":{"$ref":"#/components/responses/Error"}}}},"/audit-logs/exports":{"get":{"operationId":"audit.listExports","tags":["Audit log"],"summary":"The 20 most recent audit log exports","responses":{"200":{"description":"Success","content":{"application/json":{}}},"default":{"$ref":"#/components/responses/Error"}}},"post":{"operationId":"audit.createExport","tags":["Audit log"],"summary":"Export the audit log, oldest first, as CSV or JSON Lines. Built in the background; the file is kept a day","requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"format":{"type":"string","enum":["csv","jsonl"],"description":"`csv` for spreadsheets; `jsonl` (JSON Lines) keeps every field exactly, for checking the hash chain"},"from":{"description":"Inclusive start, ms since epoch","type":"number"},"to":{"description":"Exclusive end, ms since epoch","type":"number"},"action":{"description":"Exact action, or a prefix ending in `.`","type":"string"},"actorType":{"type":"string","enum":["user","apiKey","system","visitor","staff"]}},"required":["format"]}}}},"x-idempotency":"Send an Idempotency-Key header to make retries safe. Keys are kept for 24 hours.","responses":{"202":{"description":"Success","content":{"application/json":{}}},"default":{"$ref":"#/components/responses/Error"}}}},"/audit-logs/exports/{exportId}":{"get":{"operationId":"audit.getExport","tags":["Audit log"],"summary":"An audit log export's status","parameters":[{"name":"exportId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Success","content":{"application/json":{}}},"default":{"$ref":"#/components/responses/Error"}}}},"/audit-logs/exports/{exportId}/download":{"post":{"operationId":"audit.exportDownloadUrl","tags":["Audit log"],"summary":"A presigned URL (5 minutes) for a finished export","parameters":[{"name":"exportId","in":"path","required":true,"schema":{"type":"string"}}],"x-idempotency":"Send an Idempotency-Key header to make retries safe. Keys are kept for 24 hours.","responses":{"200":{"description":"Success","content":{"application/json":{}}},"default":{"$ref":"#/components/responses/Error"}}}},"/audit-logs/objects/{objectType}/{objectId}":{"get":{"operationId":"audit.history","tags":["Audit log"],"summary":"An object's history, newest first: its own entries, plus those of what it contains (a link's grants and visits, a vault's items, an entity's contacts, a signing's parties)","parameters":[{"name":"objectType","in":"path","required":true,"schema":{"type":"string"}},{"name":"objectId","in":"path","required":true,"schema":{"type":"string"}},{"name":"cursor","in":"query","required":false,"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","description":"Opaque cursor from a previous page's `nextCursor`","type":"string"},"description":"Opaque cursor from a previous page's `nextCursor`"},{"name":"limit","in":"query","required":false,"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","description":"Page size, 1–100 (default 50)","type":"integer","minimum":1,"maximum":100},"description":"Page size, 1–100 (default 50)"}],"responses":{"200":{"description":"Success","content":{"application/json":{}}},"default":{"$ref":"#/components/responses/Error"}}}},"/webhooks/event-types":{"get":{"operationId":"webhooks.eventTypes","tags":["Webhooks"],"summary":"The event types an endpoint can subscribe to","responses":{"200":{"description":"Success","content":{"application/json":{}}},"default":{"$ref":"#/components/responses/Error"}}}},"/webhooks":{"get":{"operationId":"webhooks.list","tags":["Webhooks"],"summary":"List webhook endpoints","responses":{"200":{"description":"Success","content":{"application/json":{}}},"default":{"$ref":"#/components/responses/Error"}}},"post":{"operationId":"webhooks.create","tags":["Webhooks"],"summary":"Add an endpoint. The response has its signing secret, the only time it's shown","requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"url":{"type":"string","maxLength":2000,"description":"Where events are POSTed: a public https:// URL"},"description":{"type":"string","maxLength":200},"events":{"minItems":1,"type":"array","items":{"type":"string"},"description":"Event types to send, or [\"*\"] for all of them (including ones added later)"}},"required":["url","events"]}}}},"x-idempotency":"Send an Idempotency-Key header to make retries safe. Keys are kept for 24 hours.","responses":{"201":{"description":"Success","content":{"application/json":{}}},"default":{"$ref":"#/components/responses/Error"}}}},"/webhooks/{webhookId}":{"get":{"operationId":"webhooks.get","tags":["Webhooks"],"summary":"Get an endpoint","parameters":[{"name":"webhookId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Success","content":{"application/json":{}}},"default":{"$ref":"#/components/responses/Error"}}},"patch":{"operationId":"webhooks.update","tags":["Webhooks"],"summary":"Change an endpoint's URL, events, or whether it's enabled","parameters":[{"name":"webhookId","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"url":{"type":"string","maxLength":2000,"description":"Where events are POSTed: a public https:// URL"},"description":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}]},"events":{"minItems":1,"type":"array","items":{"type":"string"},"description":"Event types to send, or [\"*\"] for all of them (including ones added later)"},"enabled":{"description":"false pauses deliveries; true resumes an endpoint that was disabled","type":"boolean"}}}}}},"x-idempotency":"Send an Idempotency-Key header to make retries safe. Keys are kept for 24 hours.","responses":{"200":{"description":"Success","content":{"application/json":{}}},"default":{"$ref":"#/components/responses/Error"}}},"delete":{"operationId":"webhooks.delete","tags":["Webhooks"],"summary":"Delete an endpoint. Deliveries still pending are dropped","parameters":[{"name":"webhookId","in":"path","required":true,"schema":{"type":"string"}}],"x-idempotency":"Send an Idempotency-Key header to make retries safe. Keys are kept for 24 hours.","responses":{"200":{"description":"Success","content":{"application/json":{}}},"default":{"$ref":"#/components/responses/Error"}}}},"/webhooks/{webhookId}/rotate-secret":{"post":{"operationId":"webhooks.rotateSecret","tags":["Webhooks"],"summary":"Replace the signing secret. The old one also signs for 24 hours, so receivers can switch over","parameters":[{"name":"webhookId","in":"path","required":true,"schema":{"type":"string"}}],"x-idempotency":"Send an Idempotency-Key header to make retries safe. Keys are kept for 24 hours.","responses":{"200":{"description":"Success","content":{"application/json":{}}},"default":{"$ref":"#/components/responses/Error"}}}},"/webhooks/{webhookId}/test":{"post":{"operationId":"webhooks.test","tags":["Webhooks"],"summary":"Send a `webhook.test` event to an endpoint","parameters":[{"name":"webhookId","in":"path","required":true,"schema":{"type":"string"}}],"x-idempotency":"Send an Idempotency-Key header to make retries safe. Keys are kept for 24 hours.","responses":{"200":{"description":"Success","content":{"application/json":{}}},"default":{"$ref":"#/components/responses/Error"}}}},"/webhooks/{webhookId}/deliveries":{"get":{"operationId":"webhooks.deliveries","tags":["Webhooks"],"summary":"An endpoint's deliveries, newest first (kept 30 days)","parameters":[{"name":"webhookId","in":"path","required":true,"schema":{"type":"string"}},{"name":"status","in":"query","required":false,"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"string","enum":["pending","succeeded","failed"]}},{"name":"cursor","in":"query","required":false,"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","description":"Opaque cursor from a previous page's `nextCursor`","type":"string"},"description":"Opaque cursor from a previous page's `nextCursor`"},{"name":"limit","in":"query","required":false,"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","description":"Page size, 1–100 (default 50)","type":"integer","minimum":1,"maximum":100},"description":"Page size, 1–100 (default 50)"}],"responses":{"200":{"description":"Success","content":{"application/json":{}}},"default":{"$ref":"#/components/responses/Error"}}}},"/webhooks/{webhookId}/deliveries/{deliveryId}":{"get":{"operationId":"webhooks.getDelivery","tags":["Webhooks"],"summary":"A delivery with its payload and every attempt","parameters":[{"name":"webhookId","in":"path","required":true,"schema":{"type":"string"}},{"name":"deliveryId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Success","content":{"application/json":{}}},"default":{"$ref":"#/components/responses/Error"}}}},"/webhooks/{webhookId}/deliveries/{deliveryId}/redeliver":{"post":{"operationId":"webhooks.redeliver","tags":["Webhooks"],"summary":"Send a delivery's event again, with the same id and payload","parameters":[{"name":"webhookId","in":"path","required":true,"schema":{"type":"string"}},{"name":"deliveryId","in":"path","required":true,"schema":{"type":"string"}}],"x-idempotency":"Send an Idempotency-Key header to make retries safe. Keys are kept for 24 hours.","responses":{"200":{"description":"Success","content":{"application/json":{}}},"default":{"$ref":"#/components/responses/Error"}}}},"/folders":{"get":{"operationId":"folders.list","tags":["Library folders"],"summary":"List every library folder (a flat tree)","responses":{"200":{"description":"Success","content":{"application/json":{}}},"default":{"$ref":"#/components/responses/Error"}}},"post":{"operationId":"folders.create","tags":["Library folders"],"summary":"Create a library folder","requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":200},"parentId":{"type":["string","null"]}},"required":["name"]}}}},"x-idempotency":"Send an Idempotency-Key header to make retries safe. Keys are kept for 24 hours.","responses":{"201":{"description":"Success","content":{"application/json":{}}},"default":{"$ref":"#/components/responses/Error"}}}},"/folders/ensure-path":{"post":{"operationId":"folders.ensurePath","tags":["Library folders"],"summary":"Find or create a nested folder path, returning the deepest folder","requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"path":{"minItems":1,"maxItems":32,"type":"array","items":{"type":"string","minLength":1,"maxLength":200}},"parentId":{"type":["string","null"]}},"required":["path"]}}}},"x-idempotency":"Send an Idempotency-Key header to make retries safe. Keys are kept for 24 hours.","responses":{"200":{"description":"Success","content":{"application/json":{}}},"default":{"$ref":"#/components/responses/Error"}}}},"/folders/{folderId}":{"patch":{"operationId":"folders.update","tags":["Library folders"],"summary":"Rename or move a library folder","parameters":[{"name":"folderId","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":200},"parentId":{"description":"Move under this folder; null moves to the root","type":["string","null"]}}}}}},"x-idempotency":"Send an Idempotency-Key header to make retries safe. Keys are kept for 24 hours.","responses":{"200":{"description":"Success","content":{"application/json":{}}},"default":{"$ref":"#/components/responses/Error"}}},"delete":{"operationId":"folders.delete","tags":["Library folders"],"summary":"Delete an empty library folder","parameters":[{"name":"folderId","in":"path","required":true,"schema":{"type":"string"}}],"x-idempotency":"Send an Idempotency-Key header to make retries safe. Keys are kept for 24 hours.","responses":{"200":{"description":"Success","content":{"application/json":{}}},"default":{"$ref":"#/components/responses/Error"}}}},"/files/search":{"get":{"operationId":"files.search","tags":["Files"],"summary":"Search file names and document text","parameters":[{"name":"q","in":"query","required":true,"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"string","minLength":1,"maxLength":200}}],"responses":{"200":{"description":"Success","content":{"application/json":{}}},"default":{"$ref":"#/components/responses/Error"}}}},"/files/trash":{"get":{"operationId":"files.trash","tags":["Files"],"summary":"List deleted files that can still be restored","parameters":[{"name":"cursor","in":"query","required":false,"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","description":"Opaque cursor from a previous page's `nextCursor`","type":"string"},"description":"Opaque cursor from a previous page's `nextCursor`"},{"name":"limit","in":"query","required":false,"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","description":"Page size, 1–100 (default 50)","type":"integer","minimum":1,"maximum":100},"description":"Page size, 1–100 (default 50)"}],"responses":{"200":{"description":"Success","content":{"application/json":{}}},"default":{"$ref":"#/components/responses/Error"}}}},"/files":{"get":{"operationId":"files.list","tags":["Files"],"summary":"List library files: by name within a folder, or oldest first across the whole library","parameters":[{"name":"cursor","in":"query","required":false,"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","description":"Opaque cursor from a previous page's `nextCursor`","type":"string"},"description":"Opaque cursor from a previous page's `nextCursor`"},{"name":"limit","in":"query","required":false,"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","description":"Page size, 1–100 (default 50)","type":"integer","minimum":1,"maximum":100},"description":"Page size, 1–100 (default 50)"},{"name":"folderId","in":"query","required":false,"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","description":"A folder id, or \"root\" for top-level files. Omit to list every file in the library","type":"string"},"description":"A folder id, or \"root\" for top-level files. Omit to list every file in the library"}],"responses":{"200":{"description":"Success","content":{"application/json":{}}},"default":{"$ref":"#/components/responses/Error"}}},"post":{"operationId":"files.create","tags":["Files"],"summary":"Create a file and get a presigned PUT for its first version. Then PUT the bytes and confirm","requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":255},"mime":{"description":"Content type; the PUT must send exactly this. Defaults to application/octet-stream","type":"string","maxLength":200,"pattern":"^[\\w.+-]+\\/[\\w.+-]+$"},"size":{"type":"integer","minimum":1,"maximum":2147483648,"description":"Exact size in bytes; it's part of the upload signature"},"folderId":{"type":["string","null"]},"description":{"type":"string","maxLength":2000},"tags":{"maxItems":30,"type":"array","items":{"type":"string","minLength":1,"maxLength":50}}},"required":["name","size"]}}}},"x-idempotency":"Send an Idempotency-Key header to make retries safe. Keys are kept for 24 hours.","responses":{"201":{"description":"Success","content":{"application/json":{}}},"default":{"$ref":"#/components/responses/Error"}}}},"/files/{fileId}":{"get":{"operationId":"files.get","tags":["Files"],"summary":"Get a file with its versions and where it's used","parameters":[{"name":"fileId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Success","content":{"application/json":{}}},"default":{"$ref":"#/components/responses/Error"}}},"patch":{"operationId":"files.update","tags":["Files"],"summary":"Rename, describe, tag, or move a file","parameters":[{"name":"fileId","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":255},"description":{"anyOf":[{"type":"string","maxLength":2000},{"type":"null"}]},"tags":{"maxItems":30,"type":"array","items":{"type":"string","minLength":1,"maxLength":50}},"folderId":{"description":"Move into this folder; null moves to the root","type":["string","null"]}}}}}},"x-idempotency":"Send an Idempotency-Key header to make retries safe. Keys are kept for 24 hours.","responses":{"200":{"description":"Success","content":{"application/json":{}}},"default":{"$ref":"#/components/responses/Error"}}},"delete":{"operationId":"files.delete","tags":["Files"],"summary":"Move a file to the trash. Its links stop working until it's restored; it's purged after 30 days","parameters":[{"name":"fileId","in":"path","required":true,"schema":{"type":"string"}}],"x-idempotency":"Send an Idempotency-Key header to make retries safe. Keys are kept for 24 hours.","responses":{"200":{"description":"Success","content":{"application/json":{}}},"default":{"$ref":"#/components/responses/Error"}}}},"/files/{fileId}/exposure":{"get":{"operationId":"files.exposure","tags":["Files"],"summary":"Every link that reaches a file: its file links, links to vault documents that show it, and vault links whose grants show it. For each, how, what its visitors can do, the agreement in front of it, who it's for, and who has opened the file through it","parameters":[{"name":"fileId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Success","content":{"application/json":{}}},"default":{"$ref":"#/components/responses/Error"}}}},"/files/{fileId}/restore":{"post":{"operationId":"files.restore","tags":["Files"],"summary":"Restore a file from the trash","parameters":[{"name":"fileId","in":"path","required":true,"schema":{"type":"string"}}],"x-idempotency":"Send an Idempotency-Key header to make retries safe. Keys are kept for 24 hours.","responses":{"200":{"description":"Success","content":{"application/json":{}}},"default":{"$ref":"#/components/responses/Error"}}}},"/files/{fileId}/versions":{"get":{"operationId":"files.versions.list","tags":["Files"],"summary":"List a file's versions, newest first","parameters":[{"name":"fileId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Success","content":{"application/json":{}}},"default":{"$ref":"#/components/responses/Error"}}},"post":{"operationId":"files.versions.create","tags":["Files"],"summary":"Start uploading a new version: returns a presigned PUT. Then PUT the bytes and confirm","parameters":[{"name":"fileId","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"name":{"description":"The uploaded file's own name. Defaults to the library file's name","type":"string","minLength":1,"maxLength":255},"mime":{"description":"Content type; the PUT must send exactly this. Defaults to application/octet-stream","type":"string","maxLength":200,"pattern":"^[\\w.+-]+\\/[\\w.+-]+$"},"size":{"type":"integer","minimum":1,"maximum":2147483648}},"required":["size"]}}}},"x-idempotency":"Send an Idempotency-Key header to make retries safe. Keys are kept for 24 hours.","responses":{"201":{"description":"Success","content":{"application/json":{}}},"default":{"$ref":"#/components/responses/Error"}}}},"/files/{fileId}/versions/{versionId}":{"get":{"operationId":"files.versions.get","tags":["Files"],"summary":"Get a version (or a redacted copy), with page dimensions once rendered","parameters":[{"name":"fileId","in":"path","required":true,"schema":{"type":"string"}},{"name":"versionId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Success","content":{"application/json":{}}},"default":{"$ref":"#/components/responses/Error"}}}},"/files/{fileId}/versions/{versionId}/confirm":{"post":{"operationId":"files.versions.confirm","tags":["Files"],"summary":"Confirm an upload finished; rendering starts","parameters":[{"name":"fileId","in":"path","required":true,"schema":{"type":"string"}},{"name":"versionId","in":"path","required":true,"schema":{"type":"string"}}],"x-idempotency":"Send an Idempotency-Key header to make retries safe. Keys are kept for 24 hours.","responses":{"200":{"description":"Success","content":{"application/json":{}}},"default":{"$ref":"#/components/responses/Error"}}}},"/files/{fileId}/versions/{versionId}/retry":{"post":{"operationId":"files.versions.retry","tags":["Files"],"summary":"Retry processing a version that failed","parameters":[{"name":"fileId","in":"path","required":true,"schema":{"type":"string"}},{"name":"versionId","in":"path","required":true,"schema":{"type":"string"}}],"x-idempotency":"Send an Idempotency-Key header to make retries safe. Keys are kept for 24 hours.","responses":{"200":{"description":"Success","content":{"application/json":{}}},"default":{"$ref":"#/components/responses/Error"}}}},"/files/{fileId}/versions/{versionId}/make-current":{"post":{"operationId":"files.versions.makeCurrent","tags":["Files"],"summary":"Make an older version the one visitors see","parameters":[{"name":"fileId","in":"path","required":true,"schema":{"type":"string"}},{"name":"versionId","in":"path","required":true,"schema":{"type":"string"}}],"x-idempotency":"Send an Idempotency-Key header to make retries safe. Keys are kept for 24 hours.","responses":{"200":{"description":"Success","content":{"application/json":{}}},"default":{"$ref":"#/components/responses/Error"}}}},"/files/{fileId}/page-urls":{"post":{"operationId":"files.pageUrls","tags":["Files"],"summary":"Presigned URLs (60s) for rendered page images","parameters":[{"name":"fileId","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"versionId":{"description":"Defaults to the current version. A redacted copy's id works too","type":"string"},"pages":{"minItems":1,"maxItems":100,"type":"array","items":{"type":"integer","minimum":1,"maximum":9007199254740991}},"size":{"default":"md","type":"string","enum":["sm","md","lg"]}},"required":["pages"]}}}},"x-idempotency":"Send an Idempotency-Key header to make retries safe. Keys are kept for 24 hours.","responses":{"200":{"description":"Success","content":{"application/json":{}}},"default":{"$ref":"#/components/responses/Error"}}}},"/files/{fileId}/sheet-urls":{"post":{"operationId":"files.sheetUrls","tags":["Files"],"summary":"Presigned URLs (60s) for a spreadsheet's sheets, as JSON","parameters":[{"name":"fileId","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"versionId":{"description":"Defaults to the current version","type":"string"},"sheets":{"minItems":1,"maxItems":100,"type":"array","items":{"type":"integer","minimum":1,"maximum":9007199254740991}}},"required":["sheets"]}}}},"x-idempotency":"Send an Idempotency-Key header to make retries safe. Keys are kept for 24 hours.","responses":{"200":{"description":"Success","content":{"application/json":{}}},"default":{"$ref":"#/components/responses/Error"}}}},"/files/{fileId}/download-url":{"post":{"operationId":"files.downloadUrl","tags":["Files"],"summary":"A presigned URL (60s) to download a version, as uploaded or as its rendered PDF","parameters":[{"name":"fileId","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"versionId":{"description":"Defaults to the current version. A redacted copy's id works too","type":"string"},"format":{"default":"original","type":"string","enum":["original","pdf"]}}}}}},"x-idempotency":"Send an Idempotency-Key header to make retries safe. Keys are kept for 24 hours.","responses":{"200":{"description":"Success","content":{"application/json":{}}},"default":{"$ref":"#/components/responses/Error"}}}},"/files/{fileId}/versions/{versionId}/redaction":{"get":{"operationId":"redactions.get","tags":["Files"],"summary":"A version's redaction: detection settings, where it stands, counts, and its redacted copy. Null if it has none","parameters":[{"name":"fileId","in":"path","required":true,"schema":{"type":"string"}},{"name":"versionId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Success","content":{"application/json":{}}},"default":{"$ref":"#/components/responses/Error"}}},"delete":{"operationId":"redactions.delete","tags":["Files"],"summary":"Remove a version's redaction and its marks. Copies already made stay as history; redacted links stop using them","parameters":[{"name":"fileId","in":"path","required":true,"schema":{"type":"string"}},{"name":"versionId","in":"path","required":true,"schema":{"type":"string"}}],"x-idempotency":"Send an Idempotency-Key header to make retries safe. Keys are kept for 24 hours.","responses":{"200":{"description":"Success","content":{"application/json":{}}},"default":{"$ref":"#/components/responses/Error"}}}},"/files/{fileId}/versions/{versionId}/redaction/detect":{"post":{"operationId":"redactions.detect","tags":["Files"],"summary":"Find personal data, prices, and terms. Replaces detected marks; drawn marks and rejections stay","parameters":[{"name":"fileId","in":"path","required":true,"schema":{"type":"string"}},{"name":"versionId","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"personal":{"description":"Emails, phone numbers, IBANs, card numbers, US SSNs","type":"boolean"},"prices":{"description":"Amounts with a currency","type":"boolean"},"terms":{"description":"Words to find, whole word and ignoring case: customer names, code names, people","maxItems":200,"type":"array","items":{"type":"string","maxLength":100}}}}}}},"x-idempotency":"Send an Idempotency-Key header to make retries safe. Keys are kept for 24 hours.","responses":{"202":{"description":"Success","content":{"application/json":{}}},"default":{"$ref":"#/components/responses/Error"}}}},"/files/{fileId}/versions/{versionId}/redaction/marks":{"get":{"operationId":"redactions.marks.list","tags":["Files"],"summary":"Every mark of a version's redaction, by page. Boxes are fractions of the displayed page, origin top-left","parameters":[{"name":"fileId","in":"path","required":true,"schema":{"type":"string"}},{"name":"versionId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Success","content":{"application/json":{}}},"default":{"$ref":"#/components/responses/Error"}}},"post":{"operationId":"redactions.marks.create","tags":["Files"],"summary":"Draw a box to redact. It's applied with the next apply","parameters":[{"name":"fileId","in":"path","required":true,"schema":{"type":"string"}},{"name":"versionId","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"page":{"type":"integer","minimum":1,"maximum":9007199254740991},"x":{"type":"number","minimum":0,"maximum":1},"y":{"type":"number","minimum":0,"maximum":1},"width":{"type":"number","minimum":0,"maximum":1},"height":{"type":"number","minimum":0,"maximum":1}},"required":["page","x","y","width","height"]}}}},"x-idempotency":"Send an Idempotency-Key header to make retries safe. Keys are kept for 24 hours.","responses":{"201":{"description":"Success","content":{"application/json":{}}},"default":{"$ref":"#/components/responses/Error"}}},"patch":{"operationId":"redactions.marks.update","tags":["Files"],"summary":"Accept or reject marks","parameters":[{"name":"fileId","in":"path","required":true,"schema":{"type":"string"}},{"name":"versionId","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"markIds":{"minItems":1,"maxItems":5500,"type":"array","items":{"type":"string"}},"accepted":{"type":"boolean","description":"false rejects them: they aren't applied"}},"required":["markIds","accepted"]}}}},"x-idempotency":"Send an Idempotency-Key header to make retries safe. Keys are kept for 24 hours.","responses":{"200":{"description":"Success","content":{"application/json":{}}},"default":{"$ref":"#/components/responses/Error"}}}},"/files/{fileId}/versions/{versionId}/redaction/marks/{markId}":{"delete":{"operationId":"redactions.marks.delete","tags":["Files"],"summary":"Remove a drawn box. Detected marks are rejected instead","parameters":[{"name":"fileId","in":"path","required":true,"schema":{"type":"string"}},{"name":"versionId","in":"path","required":true,"schema":{"type":"string"}},{"name":"markId","in":"path","required":true,"schema":{"type":"string"}}],"x-idempotency":"Send an Idempotency-Key header to make retries safe. Keys are kept for 24 hours.","responses":{"200":{"description":"Success","content":{"application/json":{}}},"default":{"$ref":"#/components/responses/Error"}}}},"/files/{fileId}/versions/{versionId}/redaction/apply":{"post":{"operationId":"redactions.apply","tags":["Files"],"summary":"Make the redacted copy from every accepted mark. Redacted links switch to it once it's ready","parameters":[{"name":"fileId","in":"path","required":true,"schema":{"type":"string"}},{"name":"versionId","in":"path","required":true,"schema":{"type":"string"}}],"x-idempotency":"Send an Idempotency-Key header to make retries safe. Keys are kept for 24 hours.","responses":{"202":{"description":"Success","content":{"application/json":{}}},"default":{"$ref":"#/components/responses/Error"}}}},"/files/{fileId}/leak-traces":{"get":{"operationId":"files.leakTraces.list","tags":["Files"],"summary":"The file's leak traces, newest first (up to 50)","parameters":[{"name":"fileId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Success","content":{"application/json":{}}},"default":{"$ref":"#/components/responses/Error"}}},"post":{"operationId":"files.leakTraces.create","tags":["Files"],"summary":"Start tracing a leaked copy of a file: returns a presigned PUT. PUT the image or PDF, then confirm","parameters":[{"name":"fileId","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"filename":{"type":"string","minLength":1,"maxLength":255},"mime":{"type":"string","enum":["image/png","image/jpeg","image/webp","application/pdf"],"description":"PNG, JPEG, WebP, or PDF; the PUT must send exactly this"},"size":{"type":"integer","minimum":1,"maximum":52428800}},"required":["filename","mime","size"]}}}},"x-idempotency":"Send an Idempotency-Key header to make retries safe. Keys are kept for 24 hours.","responses":{"201":{"description":"Success","content":{"application/json":{}}},"default":{"$ref":"#/components/responses/Error"}}}},"/files/{fileId}/leak-traces/{traceId}":{"get":{"operationId":"files.leakTraces.get","tags":["Files"],"summary":"One leak trace and what it found. Poll until `status` is done or failed","parameters":[{"name":"fileId","in":"path","required":true,"schema":{"type":"string"}},{"name":"traceId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Success","content":{"application/json":{}}},"default":{"$ref":"#/components/responses/Error"}}}},"/files/{fileId}/leak-traces/{traceId}/confirm":{"post":{"operationId":"files.leakTraces.confirm","tags":["Files"],"summary":"Confirm the leaked copy was uploaded; tracing starts. Poll the trace for its result","parameters":[{"name":"fileId","in":"path","required":true,"schema":{"type":"string"}},{"name":"traceId","in":"path","required":true,"schema":{"type":"string"}}],"x-idempotency":"Send an Idempotency-Key header to make retries safe. Keys are kept for 24 hours.","responses":{"200":{"description":"Success","content":{"application/json":{}}},"default":{"$ref":"#/components/responses/Error"}}}},"/links":{"get":{"operationId":"links.list","tags":["Links"],"summary":"List links, newest first","parameters":[{"name":"cursor","in":"query","required":false,"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","description":"Opaque cursor from a previous page's `nextCursor`","type":"string"},"description":"Opaque cursor from a previous page's `nextCursor`"},{"name":"limit","in":"query","required":false,"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","description":"Page size, 1–100 (default 50)","type":"integer","minimum":1,"maximum":100},"description":"Page size, 1–100 (default 50)"},{"name":"fileId","in":"query","required":false,"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","description":"Only links to this file (vault item links to it included)","type":"string"},"description":"Only links to this file (vault item links to it included)"},{"name":"agreementId","in":"query","required":false,"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","description":"Only links to this agreement","type":"string"},"description":"Only links to this agreement"},{"name":"vaultId","in":"query","required":false,"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","description":"Only links to this vault and its items","type":"string"},"description":"Only links to this vault and its items"},{"name":"entityId","in":"query","required":false,"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","description":"Only links for this entity","type":"string"},"description":"Only links for this entity"},{"name":"status","in":"query","required":false,"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","description":"`pending`: waiting for approval (LINK_POLICIES §4)","type":"string","enum":["active","revoked","disabled_by_staff","pending"]},"description":"`pending`: waiting for approval (LINK_POLICIES §4)"},{"name":"outOfPolicy","in":"query","required":false,"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","description":"Only links that break the link policy without an exception (LINK_POLICIES §3.1)","type":"boolean"},"description":"Only links that break the link policy without an exception (LINK_POLICIES §3.1)"},{"name":"templateId","in":"query","required":false,"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","description":"Only links made from this link template (LINK_TEMPLATES §3), including after it's deleted","type":"string"},"description":"Only links made from this link template (LINK_TEMPLATES §3), including after it's deleted"},{"name":"q","in":"query","required":false,"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","description":"Only links whose name matches, best matches first (up to `limit`, no cursor). Across the workspace: not with `fileId`, `agreementId`, `vaultId`, `entityId`, or `templateId`","type":"string","maxLength":200},"description":"Only links whose name matches, best matches first (up to `limit`, no cursor). Across the workspace: not with `fileId`, `agreementId`, `vaultId`, `entityId`, or `templateId`"}],"responses":{"200":{"description":"Success","content":{"application/json":{}}},"default":{"$ref":"#/components/responses/Error"}}},"post":{"operationId":"links.create","tags":["Links"],"summary":"Create a link to a library file, an agreement, a vault, or a vault item. A link that breaks the link policy needs `policyReason`; unless you're an owner or admin, it's `pending` until approved","requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"fileId":{"description":"The library file to share","type":"string"},"agreementId":{"description":"The agreement to collect signatures for","type":"string"},"vaultId":{"description":"The vault to share as a data room","type":"string"},"vaultItemId":{"description":"One document of a vault, shown with the vault's branding","type":"string"},"name":{"description":"Internal name, never shown to visitors","type":"string","minLength":1,"maxLength":120},"entityId":{"description":"The entity the link is for (§4.2). Visitors without one of its domains are attributed to it","type":"string"},"settings":{"description":"Vault links start from the vault's default link settings","type":"object","properties":{"expiresAt":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}],"description":"Absolute expiry, ms since epoch; null for none"},"requireEmail":{"type":"boolean"},"verifyEmail":{"type":"boolean","description":"Send a one-time code to the visitor's email (implies requireEmail)"},"verificationTtlDays":{"type":"integer","minimum":0,"maximum":365,"description":"How long a verification is remembered on a device; 0 asks every visit"},"maxDevices":{"anyOf":[{"type":"integer","minimum":1,"maximum":20},{"type":"null"}],"description":"The most devices one verified email can have the link open on at once; a device holds its place for 7 days after it passes the gate (implies verifyEmail; not on agreement links). null for no limit"},"replaceOldestDevice":{"type":"boolean","description":"When maxDevices is full, sign out the email's oldest device to let the new one in, instead of turning the new one away"},"accessDays":{"anyOf":[{"type":"integer","minimum":1,"maximum":365},{"type":"null"}],"description":"Each verified email's access ends this many days after its first visit (implies verifyEmail; not on agreement links). null for no end"},"maxVisitors":{"anyOf":[{"type":"integer","minimum":1,"maximum":10000},{"type":"null"}],"description":"The most people who can open the link: once this many verified emails have visited it or been let in, nobody new gets in, and those already in can come back (implies verifyEmail; not on agreement links). null for no limit"},"countries":{"anyOf":[{"type":"object","properties":{"mode":{"type":"string","enum":["allow","block"]},"list":{"minItems":1,"maxItems":250,"type":"array","items":{"type":"string"},"description":"ISO 3166-1 alpha-2 codes, such as `ES` or `US`"}},"required":["mode","list"]},{"type":"null"}],"description":"Open the link only in these countries (`allow`, which also turns away visitors whose country is unknown) or anywhere but them (`block`), by the country of the visitor's IP. Best effort: a VPN gets around it. null for anywhere"},"allowList":{"maxItems":500,"type":"array","items":{"type":"string"},"description":"Emails or domains (`jane@fund.com`, `@fund.com`). If set, only these may open the link, and the gate verifies the visitor's email (implies verifyEmail)"},"blockList":{"maxItems":500,"type":"array","items":{"type":"string"},"description":"Emails or domains that are always denied. Block wins over allow"},"download":{"type":"string","enum":["off","original","pdf"],"description":"`pdf` is the rendered PDF, watermarked when the watermark is on"},"print":{"type":"boolean"},"deterScreenshots":{"type":"boolean","description":"Blur the document when the visitor's window loses focus, and alert when they try a screenshot shortcut. Best effort"},"watermark":{"type":"object","properties":{"enabled":{"type":"boolean"},"text":{"type":"string","minLength":1,"maxLength":200},"position":{"type":"string","enum":["tiled","diagonal","footer"]},"opacity":{"type":"number","minimum":0.05,"maximum":0.6},"fontSize":{"type":"integer","minimum":8,"maximum":72},"color":{"type":"string","pattern":"^#[0-9a-fA-F]{6}$"}}},"notify":{"type":"string","enum":["never","first_open","every_open"],"description":"Email the link's owner when someone opens it for the first time (and downloads or returns), on every visit, or never"},"redact":{"type":"boolean","description":"Show redacted copies of documents that have one (file, vault, and vault item links). Files being redacted are withheld until applied"},"meeting":{"anyOf":[{"type":"object","properties":{"url":{"type":"string","maxLength":500},"label":{"description":"The button's text; defaults to “Book a meeting”","type":"string","minLength":1,"maxLength":40}},"required":["url"]},{"type":"null"}],"description":"A booking page (Calendly, Cal.com, any https URL) behind a “Book a meeting” button in the viewer (vault, file, and vault item links); null for none"}}},"signing":{"description":"Agreement links only","type":"object","properties":{"maxSignings":{"anyOf":[{"type":"integer","minimum":1,"maximum":100000},{"type":"null"}],"description":"Total signings allowed; null for unlimited. 1 is single-use"},"allowSignerInvites":{"type":"boolean","description":"Let the first signer invite co-signers for roles that aren't pre-assigned"},"preassigned":{"maxItems":10,"type":"array","items":{"type":"object","properties":{"roleKey":{"type":"string"},"email":{"type":"string","format":"email","pattern":"^(?:[A-Za-z0-9_'+\\-]+\\.)*[A-Za-z0-9_'+\\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"},"name":{"type":"string","maxLength":120}},"required":["roleKey","email"]},"description":"A signer per recipient role; each gets a personal invitation when the signing starts"},"reminderDays":{"type":"integer","minimum":0,"maximum":30,"description":"Days between reminders to pending co-signers; 0 for none"},"expiresInDays":{"type":"integer","minimum":1,"maximum":365,"description":"In-progress signings expire this many days after they start"},"notifyOwner":{"type":"boolean","description":"Email the link owner when someone signs and when a signing completes"},"observers":{"maxItems":10,"type":"array","items":{"type":"object","properties":{"email":{"type":"string","format":"email","pattern":"^(?:[A-Za-z0-9_'+\\-]+\\.)*[A-Za-z0-9_'+\\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"},"name":{"type":"string","maxLength":120},"notify":{"default":"completion","description":"`completion`: one email once it's signed. `all`: every update","type":"string","enum":["completion","all"]}},"required":["email"]},"description":"People who get updates and the executed PDF of every signing, without signing. Defaults to the agreement's"},"steps":{"anyOf":[{"maxItems":10,"type":"array","items":{"type":"object","properties":{"roleKey":{"type":"string","maxLength":40},"step":{"type":"integer","minimum":1,"maximum":10}},"required":["roleKey","step"]}},{"type":"null"}],"description":"Sign in order (SIGNATURE_REQUESTS §4.3): each role's step, from 1. Whoever opens the link signs first, so roles that aren't pre-assigned must be at step 1. null: parallel"},"variables":{"anyOf":[{"type":"object","propertyNames":{"type":"string","maxLength":40},"additionalProperties":{"type":"string","maxLength":2000}},{"type":"null"}],"description":"Values for the agreement's sender variables, by key (SIGNATURE_REQUESTS §5.2); every signing from the link gets them. Merged into the link's; an empty string clears one, null clears them all. Required ones must be filled"}}},"password":{"type":"string","minLength":4,"maxLength":200},"scope":{"description":"Vault links: the whole vault (default), only the granted folders and items, or what the phase of the link's entity opens (DEAL_PHASES §3.1)","type":"string","enum":["full","selected","phase"]},"grants":{"description":"Vault links: what `selected` shows, and per-folder capabilities","maxItems":2000,"type":"array","items":{"type":"object","properties":{"kind":{"type":"string","enum":["folder","item"]},"id":{"type":"string","description":"A folder or item of the link's vault"},"download":{"description":"Tighten downloads here; unset uses the link's setting","anyOf":[{"type":"string","enum":["off","original","pdf"]},{"type":"null"}]},"print":{"description":"false blocks printing here; unset uses the link's setting","type":["boolean","null"]},"exclude":{"description":"Hide this folder or item instead, even when a folder above it or the whole vault is shared. Takes no download or print","type":"boolean"},"redact":{"description":"true shows redacted copies here even on a link that shows full ones (REDACTION §4.1)","type":["boolean","null"]}},"required":["kind","id"]}},"requirement":{"anyOf":[{"type":"string","const":"inherit"},{"type":"string","const":"none"},{"type":"object","properties":{"agreementId":{"type":"string","description":"The agreement visitors must have signed"},"versionPolicy":{"description":"`current` asks for a new signature when the agreement gets a new version","type":"string","enum":["any","current"]},"reuseScope":{"description":"`any` accepts a signing made anywhere, e.g. a master NDA","type":"string","enum":["this_resource","any"]},"coverage":{"description":"Who a signing covers: only the signer (`individual`), everyone at their entity once an authorized signatory signs (`entity_authorized`), or once anyone there signs (`entity_any`)","type":"string","enum":["individual","entity_authorized","entity_any"]},"accessOn":{"description":"When access opens: once the visitor signs, once every required signer has, or once countersigned","type":"string","enum":["party_signed","recipients_signed","completed"]},"allowSignerInvites":{"description":"Let the first signer at the gate invite co-signers for roles that aren't pre-assigned. Off unless set","type":"boolean"}},"required":["agreementId"]}],"description":"The agreement visitors sign first (§5.6): `inherit` the vault's, `none`, or a requirement of the link's own"},"policyReason":{"type":"string","minLength":1,"maxLength":500,"description":"Why the link may break the workspace's link policy (LINK_POLICIES §3). An owner or admin makes an exception with it; anyone else asks them to approve"},"locale":{"description":"The language its visitors get when they have none of their own (`en`, `es`, `pt`); null follows the workspace's default","anyOf":[{"type":"string","enum":["en","es","pt"]},{"type":"null"}]},"templateId":{"description":"Start from this link template (LINK_TEMPLATES §3) instead of the defaults: its settings, required agreement, language, and for its vault's links its scope and grants. Anything else passed is applied over it","type":"string"}}}}}},"x-idempotency":"Send an Idempotency-Key header to make retries safe. Keys are kept for 24 hours.","responses":{"201":{"description":"Success","content":{"application/json":{}}},"default":{"$ref":"#/components/responses/Error"}}}},"/links/policy":{"get":{"operationId":"links.policy.get","tags":["Links"],"summary":"The workspace's link policy: the rules links meet, and how many don't","responses":{"200":{"description":"Success","content":{"application/json":{}}},"default":{"$ref":"#/components/responses/Error"}}},"put":{"operationId":"links.policy.set","tags":["Links"],"summary":"Replace the link policy's rules. Existing links keep working; those that break a rule are flagged as out of policy","requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"rules":{"maxItems":8,"type":"array","items":{"type":"object","properties":{"kind":{"type":"string","enum":["verify_email","max_download","no_print","watermark","max_expiry","named_recipient","require_agreement","max_devices"]},"vaultIds":{"description":"Only links to these vaults: vault links, their documents' links, and links to files filed in them. Unset or empty: every link","maxItems":100,"type":"array","items":{"type":"string"}},"download":{"description":"`max_download` only: the most a link may allow","type":"string","enum":["off","pdf"]},"maxDays":{"description":"`max_expiry` only: days from when a link is created or changed","type":"integer","minimum":1,"maximum":365},"maxDevices":{"description":"`max_devices` only: the most devices one verified email may open a link on (its `maxDevices`). Agreement links aren't checked","type":"integer","minimum":1,"maximum":20}},"required":["kind"]},"description":"Every rule, at most one of each kind (LINK_POLICIES §2). An empty list turns the policy off"}},"required":["rules"]}}}},"x-idempotency":"Send an Idempotency-Key header to make retries safe. Keys are kept for 24 hours.","responses":{"200":{"description":"Success","content":{"application/json":{}}},"default":{"$ref":"#/components/responses/Error"}}}},"/links/approvals":{"get":{"operationId":"links.approvals.list","tags":["Links"],"summary":"Requests to break the link policy (LINK_POLICIES §4), newest first","parameters":[{"name":"cursor","in":"query","required":false,"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","description":"Opaque cursor from a previous page's `nextCursor`","type":"string"},"description":"Opaque cursor from a previous page's `nextCursor`"},{"name":"limit","in":"query","required":false,"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","description":"Page size, 1–100 (default 50)","type":"integer","minimum":1,"maximum":100},"description":"Page size, 1–100 (default 50)"},{"name":"status","in":"query","required":false,"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","description":"Defaults to `pending`","type":"string","enum":["pending","approved","rejected","withdrawn"]},"description":"Defaults to `pending`"}],"responses":{"200":{"description":"Success","content":{"application/json":{}}},"default":{"$ref":"#/components/responses/Error"}}}},"/links/templates":{"get":{"operationId":"links.templates.list","tags":["Links"],"summary":"List the workspace's link templates, by name","parameters":[{"name":"vaultId","in":"query","required":false,"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","description":"Only templates that apply to links to this vault: those for any link, and those for it","type":"string"},"description":"Only templates that apply to links to this vault: those for any link, and those for it"}],"responses":{"200":{"description":"Success","content":{"application/json":{}}},"default":{"$ref":"#/components/responses/Error"}}},"post":{"operationId":"links.templates.create","tags":["Links"],"summary":"Save a link template: rules a new link starts from (`templateId` on `POST /links`), and for one vault what it shows","requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":80,"description":"What members pick it by"},"vaultId":{"description":"Make it for this vault's links only, so it can hold a scope and grants. Can't change later. Unset: for any link","type":"string"},"description":{"description":"What it's for, for whoever picks it; null removes it","anyOf":[{"type":"string","maxLength":200},{"type":"null"}]},"settings":{"description":"The link rules a new link starts with. On create they start from the built-in defaults (a vault template: the vault's defaults); on update they're merged over the template's","type":"object","properties":{"requireEmail":{"type":"boolean"},"verifyEmail":{"type":"boolean","description":"Send a one-time code to the visitor's email (implies requireEmail)"},"verificationTtlDays":{"type":"integer","minimum":0,"maximum":365,"description":"How long a verification is remembered on a device; 0 asks every visit"},"maxDevices":{"anyOf":[{"type":"integer","minimum":1,"maximum":20},{"type":"null"}],"description":"The most devices one verified email can have the link open on at once; a device holds its place for 7 days after it passes the gate (implies verifyEmail; not on agreement links). null for no limit"},"replaceOldestDevice":{"type":"boolean","description":"When maxDevices is full, sign out the email's oldest device to let the new one in, instead of turning the new one away"},"accessDays":{"anyOf":[{"type":"integer","minimum":1,"maximum":365},{"type":"null"}],"description":"Each verified email's access ends this many days after its first visit (implies verifyEmail; not on agreement links). null for no end"},"maxVisitors":{"anyOf":[{"type":"integer","minimum":1,"maximum":10000},{"type":"null"}],"description":"The most people who can open the link: once this many verified emails have visited it or been let in, nobody new gets in, and those already in can come back (implies verifyEmail; not on agreement links). null for no limit"},"countries":{"anyOf":[{"type":"object","properties":{"mode":{"type":"string","enum":["allow","block"]},"list":{"minItems":1,"maxItems":250,"type":"array","items":{"type":"string"},"description":"ISO 3166-1 alpha-2 codes, such as `ES` or `US`"}},"required":["mode","list"]},{"type":"null"}],"description":"Open the link only in these countries (`allow`, which also turns away visitors whose country is unknown) or anywhere but them (`block`), by the country of the visitor's IP. Best effort: a VPN gets around it. null for anywhere"},"allowList":{"maxItems":500,"type":"array","items":{"type":"string"},"description":"Emails or domains (`jane@fund.com`, `@fund.com`). If set, only these may open the link, and the gate verifies the visitor's email (implies verifyEmail)"},"blockList":{"maxItems":500,"type":"array","items":{"type":"string"},"description":"Emails or domains that are always denied. Block wins over allow"},"download":{"type":"string","enum":["off","original","pdf"],"description":"`pdf` is the rendered PDF, watermarked when the watermark is on"},"print":{"type":"boolean"},"deterScreenshots":{"type":"boolean","description":"Blur the document when the visitor's window loses focus, and alert when they try a screenshot shortcut. Best effort"},"watermark":{"type":"object","properties":{"enabled":{"type":"boolean"},"text":{"type":"string","minLength":1,"maxLength":200},"position":{"type":"string","enum":["tiled","diagonal","footer"]},"opacity":{"type":"number","minimum":0.05,"maximum":0.6},"fontSize":{"type":"integer","minimum":8,"maximum":72},"color":{"type":"string","pattern":"^#[0-9a-fA-F]{6}$"}}},"notify":{"type":"string","enum":["never","first_open","every_open"],"description":"Email the link's owner when someone opens it for the first time (and downloads or returns), on every visit, or never"},"redact":{"type":"boolean","description":"Show redacted copies of documents that have one (file, vault, and vault item links). Files being redacted are withheld until applied"},"meeting":{"anyOf":[{"type":"object","properties":{"url":{"type":"string","maxLength":500},"label":{"description":"The button's text; defaults to “Book a meeting”","type":"string","minLength":1,"maxLength":40}},"required":["url"]},{"type":"null"}],"description":"A booking page (Calendly, Cal.com, any https URL) behind a “Book a meeting” button in the viewer (vault, file, and vault item links); null for none"}}},"expiresInDays":{"description":"A link made from it expires this many days after it's created; null for never","anyOf":[{"type":"integer","minimum":1,"maximum":365},{"type":"null"}]},"requirement":{"description":"The agreement visitors sign first (SPEC §5.6): `inherit` the vault's (none on links outside a vault), `none`, or the template's own. Defaults to `inherit`","anyOf":[{"type":"string","const":"inherit"},{"type":"string","const":"none"},{"type":"object","properties":{"agreementId":{"type":"string","description":"The agreement visitors must have signed"},"versionPolicy":{"description":"`current` asks for a new signature when the agreement gets a new version","type":"string","enum":["any","current"]},"reuseScope":{"description":"`any` accepts a signing made anywhere, e.g. a master NDA","type":"string","enum":["this_resource","any"]},"coverage":{"description":"Who a signing covers: only the signer (`individual`), everyone at their entity once an authorized signatory signs (`entity_authorized`), or once anyone there signs (`entity_any`)","type":"string","enum":["individual","entity_authorized","entity_any"]},"accessOn":{"description":"When access opens: once the visitor signs, once every required signer has, or once countersigned","type":"string","enum":["party_signed","recipients_signed","completed"]},"allowSignerInvites":{"description":"Let the first signer at the gate invite co-signers for roles that aren't pre-assigned. Off unless set","type":"boolean"}},"required":["agreementId"]}]},"locale":{"description":"Its links' visitors' language when they have none of their own (`en`, `es`, `pt`); null follows the workspace's default","anyOf":[{"type":"string","enum":["en","es","pt"]},{"type":"null"}]},"scope":{"description":"A vault template only: what its vault links show. Defaults to the whole vault","type":"string","enum":["full","selected","phase"]},"grants":{"description":"A vault template only: the folders and items its vault links show or hide, and their capabilities (SPEC §4.3). Replaces the template's","maxItems":2000,"type":"array","items":{"type":"object","properties":{"kind":{"type":"string","enum":["folder","item"]},"id":{"type":"string","description":"A folder or item of the link's vault"},"download":{"description":"Tighten downloads here; unset uses the link's setting","anyOf":[{"type":"string","enum":["off","original","pdf"]},{"type":"null"}]},"print":{"description":"false blocks printing here; unset uses the link's setting","type":["boolean","null"]},"exclude":{"description":"Hide this folder or item instead, even when a folder above it or the whole vault is shared. Takes no download or print","type":"boolean"},"redact":{"description":"true shows redacted copies here even on a link that shows full ones (REDACTION §4.1)","type":["boolean","null"]}},"required":["kind","id"]}}},"required":["name"]}}}},"x-idempotency":"Send an Idempotency-Key header to make retries safe. Keys are kept for 24 hours.","responses":{"201":{"description":"Success","content":{"application/json":{}}},"default":{"$ref":"#/components/responses/Error"}}}},"/links/lifecycle":{"get":{"operationId":"links.lifecycle.get","tags":["Links"],"summary":"Whether link owners are reminded before links expire, how long a link may go unopened before it's revoked, and how often access is reviewed","responses":{"200":{"description":"Success","content":{"application/json":{}}},"default":{"$ref":"#/components/responses/Error"}}},"put":{"operationId":"links.lifecycle.set","tags":["Links"],"summary":"Change expiry reminders, revoking idle links, and access reviews. Fields left out stay as they are","requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"expiryReminders":{"description":"Email a link's owner a few days before it expires, with a one-click extend","type":"boolean"},"idleDays":{"description":"Revoke links nobody has opened in this many days, after warning their owner a week before; null turns it off","anyOf":[{"type":"integer","minimum":14,"maximum":365},{"type":"null"}]},"reviewMonths":{"description":"Open an access review of each vault's links, and of the library's file links, every 3, 6, or 12 months (docs/EXPOSURE.md §5); null turns it off","anyOf":[{"anyOf":[{"type":"number","const":3},{"type":"number","const":6},{"type":"number","const":12}]},{"type":"null"}]}}}}}},"x-idempotency":"Send an Idempotency-Key header to make retries safe. Keys are kept for 24 hours.","responses":{"200":{"description":"Success","content":{"application/json":{}}},"default":{"$ref":"#/components/responses/Error"}}}},"/links/reviews":{"get":{"operationId":"links.reviews.list","tags":["Links"],"summary":"Access reviews of the vaults you can see and of the library's file links: open ones, or all of them, newest first","parameters":[{"name":"status","in":"query","required":false,"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","description":"`open`: only those still to finish. Default: all, newest first","type":"string","enum":["open","all"]},"description":"`open`: only those still to finish. Default: all, newest first"}],"responses":{"200":{"description":"Success","content":{"application/json":{}}},"default":{"$ref":"#/components/responses/Error"}}},"post":{"operationId":"links.reviews.start","tags":["Links"],"summary":"Start an access review now: a vault's live links, or the library's file links. A review of it still open lapses","requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"vaultId":{"description":"The vault to review; left out, the library's file links","type":"string"}}}}}},"x-idempotency":"Send an Idempotency-Key header to make retries safe. Keys are kept for 24 hours.","responses":{"201":{"description":"Success","content":{"application/json":{}}},"default":{"$ref":"#/components/responses/Error"}}}},"/links/reviews/{reviewId}":{"get":{"operationId":"links.reviews.get","tags":["Links"],"summary":"An access review, and each of its links: what it shares, for whom, when it was last opened, when it expires, and whether it was kept or revoked","parameters":[{"name":"reviewId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Success","content":{"application/json":{}}},"default":{"$ref":"#/components/responses/Error"}}}},"/links/reviews/{reviewId}/decide":{"post":{"operationId":"links.reviews.decide","tags":["Links"],"summary":"Keep or revoke links of an open access review. The review completes once every link still open is decided","parameters":[{"name":"reviewId","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"linkIds":{"description":"The review's links to decide","maxItems":2000,"type":"array","items":{"type":"string"}},"rest":{"description":"Every link not decided yet. Only with `keep`","type":"boolean"},"decision":{"type":"string","enum":["keep","revoke"],"description":"`revoke` revokes the link at once, cutting off anyone viewing"}},"required":["decision"]}}}},"x-idempotency":"Send an Idempotency-Key header to make retries safe. Keys are kept for 24 hours.","responses":{"200":{"description":"Success","content":{"application/json":{}}},"default":{"$ref":"#/components/responses/Error"}}}},"/links/preview/draft":{"post":{"operationId":"links.preview.draft","tags":["Links"],"summary":"What a recipient would see through a link with these rules, before they're saved: a new link's, or a change to one. Takes what links.create and links.update take; nothing is written","requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"linkId":{"description":"The link being changed: the rules are its change, and `changes` says what it changes for the recipient","type":"string"},"fileId":{"description":"A new link to this library file","type":"string"},"vaultId":{"description":"A new link to this vault","type":"string"},"vaultItemId":{"description":"A new link to this vault document","type":"string"},"entityId":{"description":"The entity it's for; null for none. Left out: the link's","type":["string","null"]},"settings":{"description":"Its rules, as links.create and links.update take them","type":"object","properties":{"expiresAt":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}],"description":"Absolute expiry, ms since epoch; null for none"},"requireEmail":{"type":"boolean"},"verifyEmail":{"type":"boolean","description":"Send a one-time code to the visitor's email (implies requireEmail)"},"verificationTtlDays":{"type":"integer","minimum":0,"maximum":365,"description":"How long a verification is remembered on a device; 0 asks every visit"},"maxDevices":{"anyOf":[{"type":"integer","minimum":1,"maximum":20},{"type":"null"}],"description":"The most devices one verified email can have the link open on at once; a device holds its place for 7 days after it passes the gate (implies verifyEmail; not on agreement links). null for no limit"},"replaceOldestDevice":{"type":"boolean","description":"When maxDevices is full, sign out the email's oldest device to let the new one in, instead of turning the new one away"},"accessDays":{"anyOf":[{"type":"integer","minimum":1,"maximum":365},{"type":"null"}],"description":"Each verified email's access ends this many days after its first visit (implies verifyEmail; not on agreement links). null for no end"},"maxVisitors":{"anyOf":[{"type":"integer","minimum":1,"maximum":10000},{"type":"null"}],"description":"The most people who can open the link: once this many verified emails have visited it or been let in, nobody new gets in, and those already in can come back (implies verifyEmail; not on agreement links). null for no limit"},"countries":{"anyOf":[{"type":"object","properties":{"mode":{"type":"string","enum":["allow","block"]},"list":{"minItems":1,"maxItems":250,"type":"array","items":{"type":"string"},"description":"ISO 3166-1 alpha-2 codes, such as `ES` or `US`"}},"required":["mode","list"]},{"type":"null"}],"description":"Open the link only in these countries (`allow`, which also turns away visitors whose country is unknown) or anywhere but them (`block`), by the country of the visitor's IP. Best effort: a VPN gets around it. null for anywhere"},"allowList":{"maxItems":500,"type":"array","items":{"type":"string"},"description":"Emails or domains (`jane@fund.com`, `@fund.com`). If set, only these may open the link, and the gate verifies the visitor's email (implies verifyEmail)"},"blockList":{"maxItems":500,"type":"array","items":{"type":"string"},"description":"Emails or domains that are always denied. Block wins over allow"},"download":{"type":"string","enum":["off","original","pdf"],"description":"`pdf` is the rendered PDF, watermarked when the watermark is on"},"print":{"type":"boolean"},"deterScreenshots":{"type":"boolean","description":"Blur the document when the visitor's window loses focus, and alert when they try a screenshot shortcut. Best effort"},"watermark":{"type":"object","properties":{"enabled":{"type":"boolean"},"text":{"type":"string","minLength":1,"maxLength":200},"position":{"type":"string","enum":["tiled","diagonal","footer"]},"opacity":{"type":"number","minimum":0.05,"maximum":0.6},"fontSize":{"type":"integer","minimum":8,"maximum":72},"color":{"type":"string","pattern":"^#[0-9a-fA-F]{6}$"}}},"notify":{"type":"string","enum":["never","first_open","every_open"],"description":"Email the link's owner when someone opens it for the first time (and downloads or returns), on every visit, or never"},"redact":{"type":"boolean","description":"Show redacted copies of documents that have one (file, vault, and vault item links). Files being redacted are withheld until applied"},"meeting":{"anyOf":[{"type":"object","properties":{"url":{"type":"string","maxLength":500},"label":{"description":"The button's text; defaults to “Book a meeting”","type":"string","minLength":1,"maxLength":40}},"required":["url"]},{"type":"null"}],"description":"A booking page (Calendly, Cal.com, any https URL) behind a “Book a meeting” button in the viewer (vault, file, and vault item links); null for none"}}},"password":{"description":"Whether it has a password. Left out: the link's","type":"boolean"},"scope":{"type":"string","enum":["full","selected","phase"]},"grants":{"description":"Vault links: its grants. Left out: the link's, or none for a new link","maxItems":2000,"type":"array","items":{"type":"object","properties":{"kind":{"type":"string","enum":["folder","item"]},"id":{"type":"string","description":"A folder or item of the link's vault"},"download":{"description":"Tighten downloads here; unset uses the link's setting","anyOf":[{"type":"string","enum":["off","original","pdf"]},{"type":"null"}]},"print":{"description":"false blocks printing here; unset uses the link's setting","type":["boolean","null"]},"exclude":{"description":"Hide this folder or item instead, even when a folder above it or the whole vault is shared. Takes no download or print","type":"boolean"},"redact":{"description":"true shows redacted copies here even on a link that shows full ones (REDACTION §4.1)","type":["boolean","null"]}},"required":["kind","id"]}},"requirement":{"anyOf":[{"type":"string","const":"inherit"},{"type":"string","const":"none"},{"type":"object","properties":{"agreementId":{"type":"string","description":"The agreement visitors must have signed"},"versionPolicy":{"description":"`current` asks for a new signature when the agreement gets a new version","type":"string","enum":["any","current"]},"reuseScope":{"description":"`any` accepts a signing made anywhere, e.g. a master NDA","type":"string","enum":["this_resource","any"]},"coverage":{"description":"Who a signing covers: only the signer (`individual`), everyone at their entity once an authorized signatory signs (`entity_authorized`), or once anyone there signs (`entity_any`)","type":"string","enum":["individual","entity_authorized","entity_any"]},"accessOn":{"description":"When access opens: once the visitor signs, once every required signer has, or once countersigned","type":"string","enum":["party_signed","recipients_signed","completed"]},"allowSignerInvites":{"description":"Let the first signer at the gate invite co-signers for roles that aren't pre-assigned. Off unless set","type":"boolean"}},"required":["agreementId"]}],"description":"The agreement visitors sign first (§5.6): `inherit` the vault's, `none`, or a requirement of the link's own"},"email":{"description":"The recipient to preview as. Left out on a link that asks for no email: its visitors are anonymous","type":"string","format":"email","pattern":"^(?:[A-Za-z0-9_'+\\-]+\\.)*[A-Za-z0-9_'+\\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"}}}}}},"x-idempotency":"Send an Idempotency-Key header to make retries safe. Keys are kept for 24 hours.","responses":{"200":{"description":"Success","content":{"application/json":{}}},"default":{"$ref":"#/components/responses/Error"}}}},"/links/{linkId}":{"get":{"operationId":"links.get","tags":["Links"],"summary":"Get a link with its settings, grants, and totals","parameters":[{"name":"linkId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Success","content":{"application/json":{}}},"default":{"$ref":"#/components/responses/Error"}}},"patch":{"operationId":"links.update","tags":["Links"],"summary":"Rename a link or change its rules, grants, or required agreement. A change that breaks the link policy needs `policyReason`; unless you're an owner or admin, it waits for approval and the link is unchanged (`approval` is set)","parameters":[{"name":"linkId","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":120},"entityId":{"description":"The entity the link is for; null for none","type":["string","null"]},"settings":{"type":"object","properties":{"expiresAt":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}],"description":"Absolute expiry, ms since epoch; null for none"},"requireEmail":{"type":"boolean"},"verifyEmail":{"type":"boolean","description":"Send a one-time code to the visitor's email (implies requireEmail)"},"verificationTtlDays":{"type":"integer","minimum":0,"maximum":365,"description":"How long a verification is remembered on a device; 0 asks every visit"},"maxDevices":{"anyOf":[{"type":"integer","minimum":1,"maximum":20},{"type":"null"}],"description":"The most devices one verified email can have the link open on at once; a device holds its place for 7 days after it passes the gate (implies verifyEmail; not on agreement links). null for no limit"},"replaceOldestDevice":{"type":"boolean","description":"When maxDevices is full, sign out the email's oldest device to let the new one in, instead of turning the new one away"},"accessDays":{"anyOf":[{"type":"integer","minimum":1,"maximum":365},{"type":"null"}],"description":"Each verified email's access ends this many days after its first visit (implies verifyEmail; not on agreement links). null for no end"},"maxVisitors":{"anyOf":[{"type":"integer","minimum":1,"maximum":10000},{"type":"null"}],"description":"The most people who can open the link: once this many verified emails have visited it or been let in, nobody new gets in, and those already in can come back (implies verifyEmail; not on agreement links). null for no limit"},"countries":{"anyOf":[{"type":"object","properties":{"mode":{"type":"string","enum":["allow","block"]},"list":{"minItems":1,"maxItems":250,"type":"array","items":{"type":"string"},"description":"ISO 3166-1 alpha-2 codes, such as `ES` or `US`"}},"required":["mode","list"]},{"type":"null"}],"description":"Open the link only in these countries (`allow`, which also turns away visitors whose country is unknown) or anywhere but them (`block`), by the country of the visitor's IP. Best effort: a VPN gets around it. null for anywhere"},"allowList":{"maxItems":500,"type":"array","items":{"type":"string"},"description":"Emails or domains (`jane@fund.com`, `@fund.com`). If set, only these may open the link, and the gate verifies the visitor's email (implies verifyEmail)"},"blockList":{"maxItems":500,"type":"array","items":{"type":"string"},"description":"Emails or domains that are always denied. Block wins over allow"},"download":{"type":"string","enum":["off","original","pdf"],"description":"`pdf` is the rendered PDF, watermarked when the watermark is on"},"print":{"type":"boolean"},"deterScreenshots":{"type":"boolean","description":"Blur the document when the visitor's window loses focus, and alert when they try a screenshot shortcut. Best effort"},"watermark":{"type":"object","properties":{"enabled":{"type":"boolean"},"text":{"type":"string","minLength":1,"maxLength":200},"position":{"type":"string","enum":["tiled","diagonal","footer"]},"opacity":{"type":"number","minimum":0.05,"maximum":0.6},"fontSize":{"type":"integer","minimum":8,"maximum":72},"color":{"type":"string","pattern":"^#[0-9a-fA-F]{6}$"}}},"notify":{"type":"string","enum":["never","first_open","every_open"],"description":"Email the link's owner when someone opens it for the first time (and downloads or returns), on every visit, or never"},"redact":{"type":"boolean","description":"Show redacted copies of documents that have one (file, vault, and vault item links). Files being redacted are withheld until applied"},"meeting":{"anyOf":[{"type":"object","properties":{"url":{"type":"string","maxLength":500},"label":{"description":"The button's text; defaults to “Book a meeting”","type":"string","minLength":1,"maxLength":40}},"required":["url"]},{"type":"null"}],"description":"A booking page (Calendly, Cal.com, any https URL) behind a “Book a meeting” button in the viewer (vault, file, and vault item links); null for none"}}},"signing":{"description":"Agreement links only","type":"object","properties":{"maxSignings":{"anyOf":[{"type":"integer","minimum":1,"maximum":100000},{"type":"null"}],"description":"Total signings allowed; null for unlimited. 1 is single-use"},"allowSignerInvites":{"type":"boolean","description":"Let the first signer invite co-signers for roles that aren't pre-assigned"},"preassigned":{"maxItems":10,"type":"array","items":{"type":"object","properties":{"roleKey":{"type":"string"},"email":{"type":"string","format":"email","pattern":"^(?:[A-Za-z0-9_'+\\-]+\\.)*[A-Za-z0-9_'+\\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"},"name":{"type":"string","maxLength":120}},"required":["roleKey","email"]},"description":"A signer per recipient role; each gets a personal invitation when the signing starts"},"reminderDays":{"type":"integer","minimum":0,"maximum":30,"description":"Days between reminders to pending co-signers; 0 for none"},"expiresInDays":{"type":"integer","minimum":1,"maximum":365,"description":"In-progress signings expire this many days after they start"},"notifyOwner":{"type":"boolean","description":"Email the link owner when someone signs and when a signing completes"},"observers":{"maxItems":10,"type":"array","items":{"type":"object","properties":{"email":{"type":"string","format":"email","pattern":"^(?:[A-Za-z0-9_'+\\-]+\\.)*[A-Za-z0-9_'+\\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"},"name":{"type":"string","maxLength":120},"notify":{"default":"completion","description":"`completion`: one email once it's signed. `all`: every update","type":"string","enum":["completion","all"]}},"required":["email"]},"description":"People who get updates and the executed PDF of every signing, without signing. Defaults to the agreement's"},"steps":{"anyOf":[{"maxItems":10,"type":"array","items":{"type":"object","properties":{"roleKey":{"type":"string","maxLength":40},"step":{"type":"integer","minimum":1,"maximum":10}},"required":["roleKey","step"]}},{"type":"null"}],"description":"Sign in order (SIGNATURE_REQUESTS §4.3): each role's step, from 1. Whoever opens the link signs first, so roles that aren't pre-assigned must be at step 1. null: parallel"},"variables":{"anyOf":[{"type":"object","propertyNames":{"type":"string","maxLength":40},"additionalProperties":{"type":"string","maxLength":2000}},{"type":"null"}],"description":"Values for the agreement's sender variables, by key (SIGNATURE_REQUESTS §5.2); every signing from the link gets them. Merged into the link's; an empty string clears one, null clears them all. Required ones must be filled"}}},"password":{"description":"Set or change the password; null removes it","anyOf":[{"type":"string","minLength":4,"maxLength":200},{"type":"null"}]},"scope":{"description":"Vault links only. `phase` follows the phase of the link's entity (DEAL_PHASES §3.1)","type":"string","enum":["full","selected","phase"]},"grants":{"description":"Vault links only: replaces every grant","maxItems":2000,"type":"array","items":{"type":"object","properties":{"kind":{"type":"string","enum":["folder","item"]},"id":{"type":"string","description":"A folder or item of the link's vault"},"download":{"description":"Tighten downloads here; unset uses the link's setting","anyOf":[{"type":"string","enum":["off","original","pdf"]},{"type":"null"}]},"print":{"description":"false blocks printing here; unset uses the link's setting","type":["boolean","null"]},"exclude":{"description":"Hide this folder or item instead, even when a folder above it or the whole vault is shared. Takes no download or print","type":"boolean"},"redact":{"description":"true shows redacted copies here even on a link that shows full ones (REDACTION §4.1)","type":["boolean","null"]}},"required":["kind","id"]}},"requirement":{"anyOf":[{"type":"string","const":"inherit"},{"type":"string","const":"none"},{"type":"object","properties":{"agreementId":{"type":"string","description":"The agreement visitors must have signed"},"versionPolicy":{"description":"`current` asks for a new signature when the agreement gets a new version","type":"string","enum":["any","current"]},"reuseScope":{"description":"`any` accepts a signing made anywhere, e.g. a master NDA","type":"string","enum":["this_resource","any"]},"coverage":{"description":"Who a signing covers: only the signer (`individual`), everyone at their entity once an authorized signatory signs (`entity_authorized`), or once anyone there signs (`entity_any`)","type":"string","enum":["individual","entity_authorized","entity_any"]},"accessOn":{"description":"When access opens: once the visitor signs, once every required signer has, or once countersigned","type":"string","enum":["party_signed","recipients_signed","completed"]},"allowSignerInvites":{"description":"Let the first signer at the gate invite co-signers for roles that aren't pre-assigned. Off unless set","type":"boolean"}},"required":["agreementId"]}],"description":"The agreement visitors sign first (§5.6): `inherit` the vault's, `none`, or a requirement of the link's own"},"policyReason":{"type":"string","minLength":1,"maxLength":500,"description":"Why the link may break the workspace's link policy (LINK_POLICIES §3). An owner or admin makes an exception with it; anyone else asks them to approve"},"locale":{"description":"The language its visitors get when they have none of their own; null follows the workspace's default","anyOf":[{"type":"string","enum":["en","es","pt"]},{"type":"null"}]}}}}}},"x-idempotency":"Send an Idempotency-Key header to make retries safe. Keys are kept for 24 hours.","responses":{"200":{"description":"Success","content":{"application/json":{}}},"default":{"$ref":"#/components/responses/Error"}}}},"/links/{linkId}/revoke":{"post":{"operationId":"links.revoke","tags":["Links"],"summary":"Revoke a link. Visitors who are viewing are cut off immediately","parameters":[{"name":"linkId","in":"path","required":true,"schema":{"type":"string"}}],"x-idempotency":"Send an Idempotency-Key header to make retries safe. Keys are kept for 24 hours.","responses":{"200":{"description":"Success","content":{"application/json":{}}},"default":{"$ref":"#/components/responses/Error"}}}},"/links/{linkId}/restore":{"post":{"operationId":"links.restore","tags":["Links"],"summary":"Re-enable a revoked link. One that breaks the link policy takes an owner or admin, with `policyReason`","parameters":[{"name":"linkId","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"policyReason":{"type":"string","minLength":1,"maxLength":500,"description":"Why the link may break the workspace's link policy (LINK_POLICIES §3). An owner or admin makes an exception with it; anyone else asks them to approve"}}}}}},"x-idempotency":"Send an Idempotency-Key header to make retries safe. Keys are kept for 24 hours.","responses":{"200":{"description":"Success","content":{"application/json":{}}},"default":{"$ref":"#/components/responses/Error"}}}},"/links/{linkId}/allow":{"post":{"operationId":"links.allow","tags":["Links"],"summary":"Add an email to a link's allow list, such as one a `link.access_denied` alert says was turned away. A change that breaks the link policy waits for approval unless you're an owner or admin","parameters":[{"name":"linkId","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"email":{"description":"The address to add to the link's allow list","type":"string"}},"required":["email"]}}}},"x-idempotency":"Send an Idempotency-Key header to make retries safe. Keys are kept for 24 hours.","responses":{"200":{"description":"Success","content":{"application/json":{}}},"default":{"$ref":"#/components/responses/Error"}}}},"/links/{linkId}/grants":{"put":{"operationId":"links.grants.set","tags":["Links"],"summary":"Replace a vault link's grants (and optionally its scope)","parameters":[{"name":"linkId","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"scope":{"type":"string","enum":["full","selected"]},"grants":{"maxItems":2000,"type":"array","items":{"type":"object","properties":{"kind":{"type":"string","enum":["folder","item"]},"id":{"type":"string","description":"A folder or item of the link's vault"},"download":{"description":"Tighten downloads here; unset uses the link's setting","anyOf":[{"type":"string","enum":["off","original","pdf"]},{"type":"null"}]},"print":{"description":"false blocks printing here; unset uses the link's setting","type":["boolean","null"]},"exclude":{"description":"Hide this folder or item instead, even when a folder above it or the whole vault is shared. Takes no download or print","type":"boolean"},"redact":{"description":"true shows redacted copies here even on a link that shows full ones (REDACTION §4.1)","type":["boolean","null"]}},"required":["kind","id"]},"description":"Folders (with everything below them, including what's added later) and items the link shows or, with `exclude`, hides (§4.3). The most specific one wins"}},"required":["grants"]}}}},"x-idempotency":"Send an Idempotency-Key header to make retries safe. Keys are kept for 24 hours.","responses":{"200":{"description":"Success","content":{"application/json":{}}},"default":{"$ref":"#/components/responses/Error"}}}},"/links/{linkId}/conform":{"post":{"operationId":"links.conform","tags":["Links"],"summary":"Change a link's settings to meet the link policy where settings can: verification, downloads, printing, watermark, expiry, device limit","parameters":[{"name":"linkId","in":"path","required":true,"schema":{"type":"string"}}],"x-idempotency":"Send an Idempotency-Key header to make retries safe. Keys are kept for 24 hours.","responses":{"200":{"description":"Success","content":{"application/json":{}}},"default":{"$ref":"#/components/responses/Error"}}}},"/links/{linkId}/exclude":{"post":{"operationId":"links.exclude","tags":["Links"],"summary":"Hide one document from a vault link (EXPOSURE §2.3): an exclusion grant for it, replacing any grant of its own. Not for links that follow a buyer's phase","parameters":[{"name":"linkId","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"itemId":{"type":"string","description":"An item of the link's vault"}},"required":["itemId"]}}}},"x-idempotency":"Send an Idempotency-Key header to make retries safe. Keys are kept for 24 hours.","responses":{"200":{"description":"Success","content":{"application/json":{}}},"default":{"$ref":"#/components/responses/Error"}}}},"/links/{linkId}/keep":{"post":{"operationId":"links.keep","tags":["Links"],"summary":"Keep a link the workspace would revoke for nobody opening it: once, restarting its idle clock, or always","parameters":[{"name":"linkId","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"always":{"description":"true: never revoke this link for nobody opening it. false: let it be revoked again. Left out: restart its idle clock once","type":"boolean"}}}}}},"x-idempotency":"Send an Idempotency-Key header to make retries safe. Keys are kept for 24 hours.","responses":{"200":{"description":"Success","content":{"application/json":{}}},"default":{"$ref":"#/components/responses/Error"}}}},"/links/{linkId}/send":{"post":{"operationId":"links.send","tags":["Links"],"summary":"Email a link from the workspace's own sending domain, one personal link per person. Addresses the link's allow or block list would turn away are refused, and returned with why","parameters":[{"name":"linkId","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"to":{"minItems":1,"maxItems":50,"type":"array","items":{"type":"string","maxLength":320},"description":"Up to 50 email addresses; each gets their own personal link"},"subject":{"description":"Left out: “{Sender} shared {name} with you”, in each person's language","type":"string","maxLength":200},"message":{"description":"Plain text, shown above the button as written","type":"string","maxLength":2000}},"required":["to"]}}}},"x-idempotency":"Send an Idempotency-Key header to make retries safe. Keys are kept for 24 hours.","responses":{"200":{"description":"Success","content":{"application/json":{}}},"default":{"$ref":"#/components/responses/Error"}}}},"/links/{linkId}/sends":{"get":{"operationId":"links.sends.list","tags":["Links"],"summary":"Who a link was emailed to from Vaultko, newest first, and whether each was delivered and opened. `from` is null without an active sending domain","parameters":[{"name":"linkId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Success","content":{"application/json":{}}},"default":{"$ref":"#/components/responses/Error"}}}},"/links/{linkId}/sends/remind":{"post":{"operationId":"links.sends.remind","tags":["Links"],"summary":"Remind people a link was emailed to who haven't opened it, with a fresh personal link. Each at most once a day and 3 times","parameters":[{"name":"linkId","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"sendIds":{"description":"The sends to remind; left out, everyone who hasn't opened the link","maxItems":200,"type":"array","items":{"type":"string"}}}}}}},"x-idempotency":"Send an Idempotency-Key header to make retries safe. Keys are kept for 24 hours.","responses":{"200":{"description":"Success","content":{"application/json":{}}},"default":{"$ref":"#/components/responses/Error"}}}},"/links/{linkId}/preview":{"get":{"operationId":"links.preview.get","tags":["Links"],"summary":"What a recipient would see through a link: what the door asks, the agreement and whether they've signed it, the phase, every document with what they can do with it, and the watermark","parameters":[{"name":"linkId","in":"path","required":true,"schema":{"type":"string"}},{"name":"email","in":"query","required":false,"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","description":"The recipient to preview as. Left out on a link that asks for no email: its visitors are anonymous","type":"string","format":"email","pattern":"^(?:[A-Za-z0-9_'+\\-]+\\.)*[A-Za-z0-9_'+\\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"},"description":"The recipient to preview as. Left out on a link that asks for no email: its visitors are anonymous"}],"responses":{"200":{"description":"Success","content":{"application/json":{}}},"default":{"$ref":"#/components/responses/Error"}}},"post":{"operationId":"links.preview.open","tags":["Links"],"summary":"Open a link as its recipient would see it, in a browser: an address that works once, for two minutes, and opens a read-only preview for an hour. Nothing in it is recorded","parameters":[{"name":"linkId","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"email":{"description":"The recipient to preview as. Left out on a link that asks for no email: its visitors are anonymous","type":"string","format":"email","pattern":"^(?:[A-Za-z0-9_'+\\-]+\\.)*[A-Za-z0-9_'+\\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"},"assumeSigned":{"description":"Show what's behind the required agreement, as if they had signed it","type":"boolean"}}}}}},"x-idempotency":"Send an Idempotency-Key header to make retries safe. Keys are kept for 24 hours.","responses":{"200":{"description":"Success","content":{"application/json":{}}},"default":{"$ref":"#/components/responses/Error"}}}},"/links/{linkId}/devices":{"get":{"operationId":"links.devices.list","tags":["Links"],"summary":"The devices each verified email has a link open on, against its device limit (`maxDevices`), most devices first","parameters":[{"name":"linkId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Success","content":{"application/json":{}}},"default":{"$ref":"#/components/responses/Error"}}}},"/links/{linkId}/devices/reset":{"post":{"operationId":"links.devices.reset","tags":["Links"],"summary":"Sign a visitor out of every device they have a link open on, freeing their places under its device limit. Their next device verifies with a new code, since the workspace forgets the devices that remembered their email","parameters":[{"name":"linkId","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"email":{"type":"string","description":"The visitor's email"}},"required":["email"]}}}},"x-idempotency":"Send an Idempotency-Key header to make retries safe. Keys are kept for 24 hours.","responses":{"200":{"description":"Success","content":{"application/json":{}}},"default":{"$ref":"#/components/responses/Error"}}}},"/links/templates/{templateId}":{"get":{"operationId":"links.templates.get","tags":["Links"],"summary":"Get a link template with its rules and, for a vault, its grants","parameters":[{"name":"templateId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Success","content":{"application/json":{}}},"default":{"$ref":"#/components/responses/Error"}}},"patch":{"operationId":"links.templates.update","tags":["Links"],"summary":"Change a link template. Links already made from it don't change","parameters":[{"name":"templateId","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":80},"description":{"description":"What it's for, for whoever picks it; null removes it","anyOf":[{"type":"string","maxLength":200},{"type":"null"}]},"settings":{"description":"The link rules a new link starts with. On create they start from the built-in defaults (a vault template: the vault's defaults); on update they're merged over the template's","type":"object","properties":{"requireEmail":{"type":"boolean"},"verifyEmail":{"type":"boolean","description":"Send a one-time code to the visitor's email (implies requireEmail)"},"verificationTtlDays":{"type":"integer","minimum":0,"maximum":365,"description":"How long a verification is remembered on a device; 0 asks every visit"},"maxDevices":{"anyOf":[{"type":"integer","minimum":1,"maximum":20},{"type":"null"}],"description":"The most devices one verified email can have the link open on at once; a device holds its place for 7 days after it passes the gate (implies verifyEmail; not on agreement links). null for no limit"},"replaceOldestDevice":{"type":"boolean","description":"When maxDevices is full, sign out the email's oldest device to let the new one in, instead of turning the new one away"},"accessDays":{"anyOf":[{"type":"integer","minimum":1,"maximum":365},{"type":"null"}],"description":"Each verified email's access ends this many days after its first visit (implies verifyEmail; not on agreement links). null for no end"},"maxVisitors":{"anyOf":[{"type":"integer","minimum":1,"maximum":10000},{"type":"null"}],"description":"The most people who can open the link: once this many verified emails have visited it or been let in, nobody new gets in, and those already in can come back (implies verifyEmail; not on agreement links). null for no limit"},"countries":{"anyOf":[{"type":"object","properties":{"mode":{"type":"string","enum":["allow","block"]},"list":{"minItems":1,"maxItems":250,"type":"array","items":{"type":"string"},"description":"ISO 3166-1 alpha-2 codes, such as `ES` or `US`"}},"required":["mode","list"]},{"type":"null"}],"description":"Open the link only in these countries (`allow`, which also turns away visitors whose country is unknown) or anywhere but them (`block`), by the country of the visitor's IP. Best effort: a VPN gets around it. null for anywhere"},"allowList":{"maxItems":500,"type":"array","items":{"type":"string"},"description":"Emails or domains (`jane@fund.com`, `@fund.com`). If set, only these may open the link, and the gate verifies the visitor's email (implies verifyEmail)"},"blockList":{"maxItems":500,"type":"array","items":{"type":"string"},"description":"Emails or domains that are always denied. Block wins over allow"},"download":{"type":"string","enum":["off","original","pdf"],"description":"`pdf` is the rendered PDF, watermarked when the watermark is on"},"print":{"type":"boolean"},"deterScreenshots":{"type":"boolean","description":"Blur the document when the visitor's window loses focus, and alert when they try a screenshot shortcut. Best effort"},"watermark":{"type":"object","properties":{"enabled":{"type":"boolean"},"text":{"type":"string","minLength":1,"maxLength":200},"position":{"type":"string","enum":["tiled","diagonal","footer"]},"opacity":{"type":"number","minimum":0.05,"maximum":0.6},"fontSize":{"type":"integer","minimum":8,"maximum":72},"color":{"type":"string","pattern":"^#[0-9a-fA-F]{6}$"}}},"notify":{"type":"string","enum":["never","first_open","every_open"],"description":"Email the link's owner when someone opens it for the first time (and downloads or returns), on every visit, or never"},"redact":{"type":"boolean","description":"Show redacted copies of documents that have one (file, vault, and vault item links). Files being redacted are withheld until applied"},"meeting":{"anyOf":[{"type":"object","properties":{"url":{"type":"string","maxLength":500},"label":{"description":"The button's text; defaults to “Book a meeting”","type":"string","minLength":1,"maxLength":40}},"required":["url"]},{"type":"null"}],"description":"A booking page (Calendly, Cal.com, any https URL) behind a “Book a meeting” button in the viewer (vault, file, and vault item links); null for none"}}},"expiresInDays":{"description":"A link made from it expires this many days after it's created; null for never","anyOf":[{"type":"integer","minimum":1,"maximum":365},{"type":"null"}]},"requirement":{"description":"The agreement visitors sign first (SPEC §5.6): `inherit` the vault's (none on links outside a vault), `none`, or the template's own. Defaults to `inherit`","anyOf":[{"type":"string","const":"inherit"},{"type":"string","const":"none"},{"type":"object","properties":{"agreementId":{"type":"string","description":"The agreement visitors must have signed"},"versionPolicy":{"description":"`current` asks for a new signature when the agreement gets a new version","type":"string","enum":["any","current"]},"reuseScope":{"description":"`any` accepts a signing made anywhere, e.g. a master NDA","type":"string","enum":["this_resource","any"]},"coverage":{"description":"Who a signing covers: only the signer (`individual`), everyone at their entity once an authorized signatory signs (`entity_authorized`), or once anyone there signs (`entity_any`)","type":"string","enum":["individual","entity_authorized","entity_any"]},"accessOn":{"description":"When access opens: once the visitor signs, once every required signer has, or once countersigned","type":"string","enum":["party_signed","recipients_signed","completed"]},"allowSignerInvites":{"description":"Let the first signer at the gate invite co-signers for roles that aren't pre-assigned. Off unless set","type":"boolean"}},"required":["agreementId"]}]},"locale":{"description":"Its links' visitors' language when they have none of their own (`en`, `es`, `pt`); null follows the workspace's default","anyOf":[{"type":"string","enum":["en","es","pt"]},{"type":"null"}]},"scope":{"description":"A vault template only: what its vault links show. Defaults to the whole vault","type":"string","enum":["full","selected","phase"]},"grants":{"description":"A vault template only: the folders and items its vault links show or hide, and their capabilities (SPEC §4.3). Replaces the template's","maxItems":2000,"type":"array","items":{"type":"object","properties":{"kind":{"type":"string","enum":["folder","item"]},"id":{"type":"string","description":"A folder or item of the link's vault"},"download":{"description":"Tighten downloads here; unset uses the link's setting","anyOf":[{"type":"string","enum":["off","original","pdf"]},{"type":"null"}]},"print":{"description":"false blocks printing here; unset uses the link's setting","type":["boolean","null"]},"exclude":{"description":"Hide this folder or item instead, even when a folder above it or the whole vault is shared. Takes no download or print","type":"boolean"},"redact":{"description":"true shows redacted copies here even on a link that shows full ones (REDACTION §4.1)","type":["boolean","null"]}},"required":["kind","id"]}}}}}}},"x-idempotency":"Send an Idempotency-Key header to make retries safe. Keys are kept for 24 hours.","responses":{"200":{"description":"Success","content":{"application/json":{}}},"default":{"$ref":"#/components/responses/Error"}}},"delete":{"operationId":"links.templates.delete","tags":["Links"],"summary":"Delete a link template. Links made from it keep their settings","parameters":[{"name":"templateId","in":"path","required":true,"schema":{"type":"string"}}],"x-idempotency":"Send an Idempotency-Key header to make retries safe. Keys are kept for 24 hours.","responses":{"200":{"description":"Success","content":{"application/json":{}}},"default":{"$ref":"#/components/responses/Error"}}}},"/links/{linkId}/approval":{"delete":{"operationId":"links.approvals.withdraw","tags":["Links"],"summary":"Withdraw a link's request for approval. A new link that was waiting for it is deleted","parameters":[{"name":"linkId","in":"path","required":true,"schema":{"type":"string"}}],"x-idempotency":"Send an Idempotency-Key header to make retries safe. Keys are kept for 24 hours.","responses":{"200":{"description":"Success","content":{"application/json":{}}},"default":{"$ref":"#/components/responses/Error"}}}},"/vaults":{"get":{"operationId":"vaults.list","tags":["Vaults"],"summary":"List vaults, newest first","parameters":[{"name":"cursor","in":"query","required":false,"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","description":"Opaque cursor from a previous page's `nextCursor`","type":"string"},"description":"Opaque cursor from a previous page's `nextCursor`"},{"name":"limit","in":"query","required":false,"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","description":"Page size, 1–100 (default 50)","type":"integer","minimum":1,"maximum":100},"description":"Page size, 1–100 (default 50)"},{"name":"status","in":"query","required":false,"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"string","enum":["active","archived"]}},{"name":"q","in":"query","required":false,"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","description":"Only vaults whose name matches, best matches first (up to `limit`, no cursor)","type":"string","maxLength":200},"description":"Only vaults whose name matches, best matches first (up to `limit`, no cursor)"}],"responses":{"200":{"description":"Success","content":{"application/json":{}}},"default":{"$ref":"#/components/responses/Error"}}},"post":{"operationId":"vaults.create","tags":["Vaults"],"summary":"Create a vault, empty or from a data room template","requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":120},"description":{"type":"string","maxLength":2000},"defaultVersionMode":{"description":"Whether items added later are pinned (default) or follow the latest version","type":"string","enum":["pinned","latest"]},"template":{"description":"Start with a data room template's folders (`GET /vaults/templates`). Omitted: an empty vault","type":"string","enum":["seed","series_a","m_and_a_sell_side"]},"locale":{"description":"The language of the template's folder names (`en`, `es`, `pt`). Omitted: English","type":"string","enum":["en","es","pt"]}},"required":["name"]}}}},"x-idempotency":"Send an Idempotency-Key header to make retries safe. Keys are kept for 24 hours.","responses":{"201":{"description":"Success","content":{"application/json":{}}},"default":{"$ref":"#/components/responses/Error"}}}},"/vaults/templates":{"get":{"operationId":"vaults.templates","tags":["Vaults"],"summary":"The data room templates a vault can start from, with their folders in order","responses":{"200":{"description":"Success","content":{"application/json":{}}},"default":{"$ref":"#/components/responses/Error"}}}},"/vaults/{vaultId}":{"get":{"operationId":"vaults.get","tags":["Vaults"],"summary":"Get a vault with its settings and totals","parameters":[{"name":"vaultId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Success","content":{"application/json":{}}},"default":{"$ref":"#/components/responses/Error"}}},"patch":{"operationId":"vaults.update","tags":["Vaults"],"summary":"Rename a vault or change its settings","parameters":[{"name":"vaultId","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":120},"description":{"anyOf":[{"type":"string","maxLength":2000},{"type":"null"}]},"accentColor":{"description":"Visitor-facing accent color; null uses the workspace's","anyOf":[{"type":"string","pattern":"^#[0-9a-fA-F]{6}$"},{"type":"null"}]},"displayName":{"description":"The name visitors see instead of the workspace's, on the vault's pages and in its emails; null uses the workspace's. Needs a plan with `vault_branding`","anyOf":[{"type":"string","maxLength":80},{"type":"null"}]},"welcomeMessage":{"description":"Shown to visitors above the documents. Paragraphs, `## ` headings, `- ` lists, `**bold**`, and `[text](https://…)` or `mailto:` links","anyOf":[{"type":"string","maxLength":4000},{"type":"null"}]},"contactId":{"description":"A member who can see the vault, shown to visitors as their contact; null for none","type":["string","null"]},"digest":{"description":"Email verified visitors how many documents were added or updated since they last looked: daily, weekly (Mondays), or off","type":"string","enum":["off","daily","weekly"]},"defaultVersionMode":{"type":"string","enum":["pinned","latest"]},"defaultLinkSettings":{"description":"Settings new links on this vault start from; null for the global defaults","anyOf":[{"type":"object","properties":{"expiresAt":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}],"description":"Absolute expiry, ms since epoch; null for none"},"requireEmail":{"type":"boolean"},"verifyEmail":{"type":"boolean","description":"Send a one-time code to the visitor's email (implies requireEmail)"},"verificationTtlDays":{"type":"integer","minimum":0,"maximum":365,"description":"How long a verification is remembered on a device; 0 asks every visit"},"maxDevices":{"anyOf":[{"type":"integer","minimum":1,"maximum":20},{"type":"null"}],"description":"The most devices one verified email can have the link open on at once; a device holds its place for 7 days after it passes the gate (implies verifyEmail; not on agreement links). null for no limit"},"replaceOldestDevice":{"type":"boolean","description":"When maxDevices is full, sign out the email's oldest device to let the new one in, instead of turning the new one away"},"accessDays":{"anyOf":[{"type":"integer","minimum":1,"maximum":365},{"type":"null"}],"description":"Each verified email's access ends this many days after its first visit (implies verifyEmail; not on agreement links). null for no end"},"maxVisitors":{"anyOf":[{"type":"integer","minimum":1,"maximum":10000},{"type":"null"}],"description":"The most people who can open the link: once this many verified emails have visited it or been let in, nobody new gets in, and those already in can come back (implies verifyEmail; not on agreement links). null for no limit"},"countries":{"anyOf":[{"type":"object","properties":{"mode":{"type":"string","enum":["allow","block"]},"list":{"minItems":1,"maxItems":250,"type":"array","items":{"type":"string"},"description":"ISO 3166-1 alpha-2 codes, such as `ES` or `US`"}},"required":["mode","list"]},{"type":"null"}],"description":"Open the link only in these countries (`allow`, which also turns away visitors whose country is unknown) or anywhere but them (`block`), by the country of the visitor's IP. Best effort: a VPN gets around it. null for anywhere"},"allowList":{"maxItems":500,"type":"array","items":{"type":"string"},"description":"Emails or domains (`jane@fund.com`, `@fund.com`). If set, only these may open the link, and the gate verifies the visitor's email (implies verifyEmail)"},"blockList":{"maxItems":500,"type":"array","items":{"type":"string"},"description":"Emails or domains that are always denied. Block wins over allow"},"download":{"type":"string","enum":["off","original","pdf"],"description":"`pdf` is the rendered PDF, watermarked when the watermark is on"},"print":{"type":"boolean"},"deterScreenshots":{"type":"boolean","description":"Blur the document when the visitor's window loses focus, and alert when they try a screenshot shortcut. Best effort"},"watermark":{"type":"object","properties":{"enabled":{"type":"boolean"},"text":{"type":"string","minLength":1,"maxLength":200},"position":{"type":"string","enum":["tiled","diagonal","footer"]},"opacity":{"type":"number","minimum":0.05,"maximum":0.6},"fontSize":{"type":"integer","minimum":8,"maximum":72},"color":{"type":"string","pattern":"^#[0-9a-fA-F]{6}$"}}},"notify":{"type":"string","enum":["never","first_open","every_open"],"description":"Email the link's owner when someone opens it for the first time (and downloads or returns), on every visit, or never"},"redact":{"type":"boolean","description":"Show redacted copies of documents that have one (file, vault, and vault item links). Files being redacted are withheld until applied"},"meeting":{"anyOf":[{"type":"object","properties":{"url":{"type":"string","maxLength":500},"label":{"description":"The button's text; defaults to “Book a meeting”","type":"string","minLength":1,"maxLength":40}},"required":["url"]},{"type":"null"}],"description":"A booking page (Calendly, Cal.com, any https URL) behind a “Book a meeting” button in the viewer (vault, file, and vault item links); null for none"}}},{"type":"null"}]},"requirement":{"description":"The agreement visitors sign before the vault opens; null for none","anyOf":[{"type":"object","properties":{"agreementId":{"type":"string","description":"The agreement visitors must have signed"},"versionPolicy":{"description":"`current` asks for a new signature when the agreement gets a new version","type":"string","enum":["any","current"]},"reuseScope":{"description":"`any` accepts a signing made anywhere, e.g. a master NDA","type":"string","enum":["this_resource","any"]},"coverage":{"description":"Who a signing covers: only the signer (`individual`), everyone at their entity once an authorized signatory signs (`entity_authorized`), or once anyone there signs (`entity_any`)","type":"string","enum":["individual","entity_authorized","entity_any"]},"accessOn":{"description":"When access opens: once the visitor signs, once every required signer has, or once countersigned","type":"string","enum":["party_signed","recipients_signed","completed"]},"allowSignerInvites":{"description":"Let the first signer at the gate invite co-signers for roles that aren't pre-assigned. Off unless set","type":"boolean"}},"required":["agreementId"]},{"type":"null"}]},"requirementLocked":{"description":"Stop individual links from changing or turning off the requirement","type":"boolean"},"requirementAt":{"description":"Where the requirement asks: when visitors open the vault (`entry`), or only before folders and documents marked `behindAgreement` (`marked`)","type":"string","enum":["entry","marked"]},"hideLocked":{"description":"With `requirementAt: marked`, keep marked content out of sight until the visitor signs, instead of showing it with a lock","type":"boolean"}}}}}},"x-idempotency":"Send an Idempotency-Key header to make retries safe. Keys are kept for 24 hours.","responses":{"200":{"description":"Success","content":{"application/json":{}}},"default":{"$ref":"#/components/responses/Error"}}}},"/vaults/{vaultId}/archive":{"post":{"operationId":"vaults.archive","tags":["Vaults"],"summary":"Archive (close) a vault: every link to it is revoked. Its library files stay","parameters":[{"name":"vaultId","in":"path","required":true,"schema":{"type":"string"}}],"x-idempotency":"Send an Idempotency-Key header to make retries safe. Keys are kept for 24 hours.","responses":{"200":{"description":"Success","content":{"application/json":{}}},"default":{"$ref":"#/components/responses/Error"}}}},"/vaults/{vaultId}/restore":{"post":{"operationId":"vaults.restore","tags":["Vaults"],"summary":"Restore an archived vault. Its links stay revoked until restored one by one","parameters":[{"name":"vaultId","in":"path","required":true,"schema":{"type":"string"}}],"x-idempotency":"Send an Idempotency-Key header to make retries safe. Keys are kept for 24 hours.","responses":{"200":{"description":"Success","content":{"application/json":{}}},"default":{"$ref":"#/components/responses/Error"}}}},"/vaults/{vaultId}/duplicate":{"post":{"operationId":"vaults.duplicate","tags":["Vaults"],"summary":"Copy a vault's structure and settings into a new vault. The items reference the same library files; links aren't copied","parameters":[{"name":"vaultId","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":120}}}}}},"x-idempotency":"Send an Idempotency-Key header to make retries safe. Keys are kept for 24 hours.","responses":{"201":{"description":"Success","content":{"application/json":{}}},"default":{"$ref":"#/components/responses/Error"}}}},"/vaults/{vaultId}/access":{"get":{"operationId":"vaults.access","tags":["Vaults"],"summary":"Who sees a vault: everyone in the workspace, or a restricted vault's owners, admins, and listed members","parameters":[{"name":"vaultId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Success","content":{"application/json":{}}},"default":{"$ref":"#/components/responses/Error"}}}},"/vaults/{vaultId}/certificates":{"post":{"operationId":"certificates.create","tags":["Vaults"],"summary":"Start a sealed certificate: what an entity or contact could open and did open in the vault (disclosure), that their access ended and what they downloaded (end_of_access), or a ZIP of the vault with a certificate of every file's SHA-256 (archive). Poll it, then download it","parameters":[{"name":"vaultId","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"kind":{"type":"string","enum":["disclosure","end_of_access","archive"]},"entityId":{"description":"The entity it's about (disclosure and end_of_access)","type":"string"},"contactId":{"description":"Or the contact it's about","type":"string"},"revokeLinks":{"description":"end_of_access: revoke the subject's links that still work, instead of refusing the request","type":"boolean"}},"required":["kind"]}}}},"x-idempotency":"Send an Idempotency-Key header to make retries safe. Keys are kept for 24 hours.","responses":{"202":{"description":"Success","content":{"application/json":{}}},"default":{"$ref":"#/components/responses/Error"}}},"get":{"operationId":"certificates.list","tags":["Vaults"],"summary":"A vault's certificates and closing archives, newest first","parameters":[{"name":"vaultId","in":"path","required":true,"schema":{"type":"string"}},{"name":"cursor","in":"query","required":false,"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","description":"Opaque cursor from a previous page's `nextCursor`","type":"string"},"description":"Opaque cursor from a previous page's `nextCursor`"},{"name":"limit","in":"query","required":false,"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","description":"Page size, 1–100 (default 50)","type":"integer","minimum":1,"maximum":100},"description":"Page size, 1–100 (default 50)"}],"responses":{"200":{"description":"Success","content":{"application/json":{}}},"default":{"$ref":"#/components/responses/Error"}}}},"/vaults/{vaultId}/certificates/parties":{"get":{"operationId":"certificates.parties","tags":["Vaults"],"summary":"Who a certificate can be about: the entities and contacts that visited the vault, and entities a link to it was made for","parameters":[{"name":"vaultId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Success","content":{"application/json":{}}},"default":{"$ref":"#/components/responses/Error"}}}},"/certificates/{certificateId}":{"get":{"operationId":"certificates.get","tags":["Evidence"],"summary":"A certificate's status: building, sealing, ready, or failed","parameters":[{"name":"certificateId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Success","content":{"application/json":{}}},"default":{"$ref":"#/components/responses/Error"}}}},"/certificates/{certificateId}/download":{"post":{"operationId":"certificates.download","tags":["Evidence"],"summary":"A short-lived URL to download a certificate's sealed PDF, or a closing archive's ZIP","parameters":[{"name":"certificateId","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"file":{"description":"The sealed PDF (default), or a closing archive's ZIP while it's kept (a day)","type":"string","enum":["pdf","zip"]}}}}}},"x-idempotency":"Send an Idempotency-Key header to make retries safe. Keys are kept for 24 hours.","responses":{"200":{"description":"Success","content":{"application/json":{}}},"default":{"$ref":"#/components/responses/Error"}}}},"/vaults/{vaultId}/tree":{"get":{"operationId":"vaults.tree","tags":["Vaults"],"summary":"A vault's folders and items, with index numbers, the version each item shows, and updates available","parameters":[{"name":"vaultId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Success","content":{"application/json":{}}},"default":{"$ref":"#/components/responses/Error"}}}},"/vaults/{vaultId}/folders/exposure":{"get":{"operationId":"vaults.folders.exposure","tags":["Vaults"],"summary":"The vault's links that would show a document added to a folder (or the top level), with what their visitors could do with it","parameters":[{"name":"vaultId","in":"path","required":true,"schema":{"type":"string"}},{"name":"folderId","in":"query","required":false,"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","description":"A folder of the vault; null or omitted for the top level","type":["string","null"]},"description":"A folder of the vault; null or omitted for the top level"}],"responses":{"200":{"description":"Success","content":{"application/json":{}}},"default":{"$ref":"#/components/responses/Error"}}}},"/vaults/{vaultId}/move/impact":{"get":{"operationId":"vaults.move.impact","tags":["Vaults"],"summary":"What moving a folder or item would change: the vault's links that would start showing it, or stop, and its documents for each","parameters":[{"name":"vaultId","in":"path","required":true,"schema":{"type":"string"}},{"name":"kind","in":"query","required":true,"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"string","enum":["folder","item"]}},{"name":"id","in":"query","required":true,"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"string","description":"The folder or item to move"},"description":"The folder or item to move"},{"name":"parentId","in":"query","required":false,"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","description":"A folder of the vault; null or omitted for the top level","type":["string","null"]},"description":"A folder of the vault; null or omitted for the top level"}],"responses":{"200":{"description":"Success","content":{"application/json":{}}},"default":{"$ref":"#/components/responses/Error"}}}},"/vaults/{vaultId}/folders/ensure-path":{"post":{"operationId":"vaults.folders.ensurePath","tags":["Vaults"],"summary":"Find or create a nested folder path in a vault, returning the deepest folder (for folder uploads)","parameters":[{"name":"vaultId","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"path":{"minItems":1,"maxItems":32,"type":"array","items":{"type":"string","minLength":1,"maxLength":200}},"parentId":{"description":"A folder of the vault; null or omitted for the top level","type":["string","null"]}},"required":["path"]}}}},"x-idempotency":"Send an Idempotency-Key header to make retries safe. Keys are kept for 24 hours.","responses":{"200":{"description":"Success","content":{"application/json":{}}},"default":{"$ref":"#/components/responses/Error"}}}},"/vaults/{vaultId}/folders":{"post":{"operationId":"vaults.folders.create","tags":["Vaults"],"summary":"Create a folder in a vault","parameters":[{"name":"vaultId","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":200},"parentId":{"description":"A folder of the vault; null or omitted for the top level","type":["string","null"]}},"required":["name"]}}}},"x-idempotency":"Send an Idempotency-Key header to make retries safe. Keys are kept for 24 hours.","responses":{"201":{"description":"Success","content":{"application/json":{}}},"default":{"$ref":"#/components/responses/Error"}}}},"/vaults/{vaultId}/folders/{folderId}":{"patch":{"operationId":"vaults.folders.update","tags":["Vaults"],"summary":"Rename a vault folder, override its index number, make it clean team only, or put it behind the agreement","parameters":[{"name":"vaultId","in":"path","required":true,"schema":{"type":"string"}},{"name":"folderId","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":200},"indexOverride":{"description":"A custom index label, e.g. `A` or `2.10`; null for automatic","anyOf":[{"type":"string","maxLength":20,"pattern":"^[\\w.\\-]*$"},{"type":"null"}]},"cleanTeam":{"description":"Clean team only (DEAL_PHASES §5): the folder and everything below it show only to each buyer's verified clean team","type":"boolean"},"behindAgreement":{"description":"Behind the vault's required agreement (CONTENT_AGREEMENTS §2): with `requirementAt: marked`, visitors sign before opening the folder and everything below it","type":"boolean"}}}}}},"x-idempotency":"Send an Idempotency-Key header to make retries safe. Keys are kept for 24 hours.","responses":{"200":{"description":"Success","content":{"application/json":{}}},"default":{"$ref":"#/components/responses/Error"}}},"delete":{"operationId":"vaults.folders.delete","tags":["Vaults"],"summary":"Delete a vault folder and everything in it. The library files stay","parameters":[{"name":"vaultId","in":"path","required":true,"schema":{"type":"string"}},{"name":"folderId","in":"path","required":true,"schema":{"type":"string"}}],"x-idempotency":"Send an Idempotency-Key header to make retries safe. Keys are kept for 24 hours.","responses":{"200":{"description":"Success","content":{"application/json":{}}},"default":{"$ref":"#/components/responses/Error"}}}},"/vaults/{vaultId}/move":{"post":{"operationId":"vaults.move","tags":["Vaults"],"summary":"Move or reorder a folder or item within a vault (index numbers follow the order)","parameters":[{"name":"vaultId","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"kind":{"type":"string","enum":["folder","item"]},"id":{"type":"string","description":"The folder or item to move"},"parentId":{"description":"A folder of the vault; null or omitted for the top level","type":["string","null"]},"index":{"type":"integer","minimum":0,"maximum":9007199254740991,"description":"Position among the destination's folders and items, 0 first"}},"required":["kind","id","index"]}}}},"x-idempotency":"Send an Idempotency-Key header to make retries safe. Keys are kept for 24 hours.","responses":{"200":{"description":"Success","content":{"application/json":{}}},"default":{"$ref":"#/components/responses/Error"}}}},"/vaults/{vaultId}/items":{"post":{"operationId":"vaults.items.add","tags":["Vaults"],"summary":"Add library files to a vault folder. Pinned items show the file's current version until updated","parameters":[{"name":"vaultId","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"fileIds":{"minItems":1,"maxItems":200,"type":"array","items":{"type":"string"},"description":"Library files to add, in order"},"folderId":{"description":"A folder of the vault; null or omitted for the top level","type":["string","null"]},"versionMode":{"description":"Defaults to the vault's default (pinned unless changed)","type":"string","enum":["pinned","latest"]}},"required":["fileIds"]}}}},"x-idempotency":"Send an Idempotency-Key header to make retries safe. Keys are kept for 24 hours.","responses":{"201":{"description":"Success","content":{"application/json":{}}},"default":{"$ref":"#/components/responses/Error"}}}},"/vaults/{vaultId}/uploads":{"post":{"operationId":"vaults.items.upload","tags":["Vaults"],"summary":"Upload a file straight into a vault folder. It's created in the vault's library folder; PUT the bytes, then confirm with /files/:fileId/versions/:versionId/confirm","parameters":[{"name":"vaultId","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"folderId":{"description":"A folder of the vault; null or omitted for the top level","type":["string","null"]},"name":{"type":"string","minLength":1,"maxLength":255},"mime":{"description":"Content type; the PUT must send exactly this. Defaults to application/octet-stream","type":"string","maxLength":200,"pattern":"^[\\w.+-]+\\/[\\w.+-]+$"},"size":{"type":"integer","minimum":1,"maximum":2147483648,"description":"Exact size in bytes; it's part of the upload signature"},"versionMode":{"type":"string","enum":["pinned","latest"]}},"required":["name","size"]}}}},"x-idempotency":"Send an Idempotency-Key header to make retries safe. Keys are kept for 24 hours.","responses":{"201":{"description":"Success","content":{"application/json":{}}},"default":{"$ref":"#/components/responses/Error"}}}},"/vaults/{vaultId}/items/{itemId}/replace":{"post":{"operationId":"vaults.items.replace","tags":["Vaults"],"summary":"Upload a new version of an item's file. The item moves to it once it's processed. PUT, then confirm","parameters":[{"name":"vaultId","in":"path","required":true,"schema":{"type":"string"}},{"name":"itemId","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":255},"mime":{"description":"Content type; the PUT must send exactly this. Defaults to application/octet-stream","type":"string","maxLength":200,"pattern":"^[\\w.+-]+\\/[\\w.+-]+$"},"size":{"type":"integer","minimum":1,"maximum":2147483648}},"required":["size"]}}}},"x-idempotency":"Send an Idempotency-Key header to make retries safe. Keys are kept for 24 hours.","responses":{"201":{"description":"Success","content":{"application/json":{}}},"default":{"$ref":"#/components/responses/Error"}}}},"/vaults/{vaultId}/items/{itemId}":{"patch":{"operationId":"vaults.items.update","tags":["Vaults"],"summary":"Pin an item to a version, make it follow the latest, override its index number, or put it behind the agreement","parameters":[{"name":"vaultId","in":"path","required":true,"schema":{"type":"string"}},{"name":"itemId","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"versionMode":{"description":"Switching to pinned pins the file's current version","type":"string","enum":["pinned","latest"]},"versionId":{"description":"Pin to this version of the file (implies pinned)","type":"string"},"indexOverride":{"anyOf":[{"type":"string","maxLength":20,"pattern":"^[\\w.\\-]*$"},{"type":"null"}]},"behindAgreement":{"description":"Behind the vault's required agreement (CONTENT_AGREEMENTS §2): with `requirementAt: marked`, visitors sign before opening it","type":"boolean"}}}}}},"x-idempotency":"Send an Idempotency-Key header to make retries safe. Keys are kept for 24 hours.","responses":{"200":{"description":"Success","content":{"application/json":{}}},"default":{"$ref":"#/components/responses/Error"}}},"delete":{"operationId":"vaults.items.remove","tags":["Vaults"],"summary":"Remove an item from a vault. The library file stays; links to this item are revoked","parameters":[{"name":"vaultId","in":"path","required":true,"schema":{"type":"string"}},{"name":"itemId","in":"path","required":true,"schema":{"type":"string"}}],"x-idempotency":"Send an Idempotency-Key header to make retries safe. Keys are kept for 24 hours.","responses":{"200":{"description":"Success","content":{"application/json":{}}},"default":{"$ref":"#/components/responses/Error"}}}},"/vaults/{vaultId}/update-versions":{"post":{"operationId":"vaults.items.updateVersions","tags":["Vaults"],"summary":"Move pinned items to their file's current version (§3.3 \"update available\")","parameters":[{"name":"vaultId","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"itemIds":{"description":"These items; omit for a folder or the whole vault","maxItems":5000,"type":"array","items":{"type":"string"}},"folderId":{"description":"Everything in this folder and below; omit (with no itemIds) for the whole vault","type":["string","null"]}}}}}},"x-idempotency":"Send an Idempotency-Key header to make retries safe. Keys are kept for 24 hours.","responses":{"200":{"description":"Success","content":{"application/json":{}}},"default":{"$ref":"#/components/responses/Error"}}}},"/vaults/{vaultId}/permissions":{"get":{"operationId":"vaults.permissions","tags":["Vaults"],"summary":"The permission matrix: the vault's links, its folders, and every grant","parameters":[{"name":"vaultId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Success","content":{"application/json":{}}},"default":{"$ref":"#/components/responses/Error"}}},"post":{"operationId":"vaults.permissions.update","tags":["Vaults"],"summary":"Edit the permission matrix in bulk: set links' scope, and set or remove grants per link and folder or item","parameters":[{"name":"vaultId","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"changes":{"maxItems":500,"type":"array","items":{"type":"object","properties":{"linkId":{"type":"string"},"kind":{"type":"string","enum":["folder","item"]},"id":{"type":"string"},"access":{"type":"string","enum":["none","view","download","full","exclude"],"description":"`none` removes the grant; `view` blocks download and print; `download` blocks print; `full` uses the link's own settings, tightened by `download` and `print` when given; `exclude` hides the folder or item, even when a folder above it or the whole vault is shared"},"download":{"description":"With `full`: tighten downloads here; unset uses the link's setting","anyOf":[{"type":"string","enum":["off","pdf","original"]},{"type":"null"}]},"print":{"description":"With `full`: false blocks printing here; unset uses the link's setting","anyOf":[{"type":"boolean","const":false},{"type":"null"}]},"redact":{"description":"With `full`: true shows redacted copies here (REDACTION §4.1), null shows full ones; unset leaves the grant's as it is","anyOf":[{"type":"boolean","const":true},{"type":"null"}]}},"required":["linkId","kind","id","access"]}},"scopes":{"description":"Set links' scope first: `full` shows the whole vault, `selected` only what grants show","maxItems":500,"type":"array","items":{"type":"object","properties":{"linkId":{"type":"string"},"scope":{"type":"string","enum":["full","selected"]}},"required":["linkId","scope"]}}},"required":["changes"]}}}},"x-idempotency":"Send an Idempotency-Key header to make retries safe. Keys are kept for 24 hours.","responses":{"200":{"description":"Success","content":{"application/json":{}}},"default":{"$ref":"#/components/responses/Error"}}}},"/vaults/{vaultId}/phases":{"get":{"operationId":"vaults.phases.list","tags":["Vaults"],"summary":"A vault's deal phases, what each opens, and its buyers with their phases and clean teams","parameters":[{"name":"vaultId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Success","content":{"application/json":{}}},"default":{"$ref":"#/components/responses/Error"}}},"post":{"operationId":"vaults.phases.create","tags":["Vaults"],"summary":"Add a phase after the vault's last one","parameters":[{"name":"vaultId","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":60},"grants":{"maxItems":2000,"type":"array","items":{"type":"object","properties":{"kind":{"type":"string","enum":["folder","item"]},"id":{"type":"string","description":"A folder or item of the vault"},"download":{"description":"Tighten downloads here; unset uses the link's setting","anyOf":[{"type":"string","enum":["off","original","pdf"]},{"type":"null"}]},"print":{"description":"false blocks printing here; unset uses the link's setting","type":["boolean","null"]},"redact":{"description":"true shows redacted copies here (REDACTION §4.1)","type":["boolean","null"]}},"required":["kind","id"]},"description":"Folders (with everything below them, including what's added later) and items this phase opens. A later phase's choice wins (§2.1)"},"autoAgreementId":{"description":"Move buyers here when a signing of this agreement completes for them (§4.2)","type":["string","null"]},"autoRequestId":{"description":"Or: move buyers here when they send a file to this file request of the vault and it passes its checks (UPLOADS §6)","type":["string","null"]}},"required":["name"]}}}},"x-idempotency":"Send an Idempotency-Key header to make retries safe. Keys are kept for 24 hours.","responses":{"201":{"description":"Success","content":{"application/json":{}}},"default":{"$ref":"#/components/responses/Error"}}}},"/vaults/{vaultId}/phases/reorder":{"post":{"operationId":"vaults.phases.reorder","tags":["Vaults"],"summary":"Put the vault's phases in a new order. Buyers see what their phase now opens at once","parameters":[{"name":"vaultId","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"phaseIds":{"minItems":1,"maxItems":10,"type":"array","items":{"type":"string"},"description":"Every phase of the vault, first to last"}},"required":["phaseIds"]}}}},"x-idempotency":"Send an Idempotency-Key header to make retries safe. Keys are kept for 24 hours.","responses":{"200":{"description":"Success","content":{"application/json":{}}},"default":{"$ref":"#/components/responses/Error"}}}},"/vaults/{vaultId}/phases/{phaseId}":{"patch":{"operationId":"vaults.phases.update","tags":["Vaults"],"summary":"Rename a phase, change what it opens, or change its rule","parameters":[{"name":"vaultId","in":"path","required":true,"schema":{"type":"string"}},{"name":"phaseId","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":60},"grants":{"description":"Replaces everything the phase opens","maxItems":2000,"type":"array","items":{"type":"object","properties":{"kind":{"type":"string","enum":["folder","item"]},"id":{"type":"string","description":"A folder or item of the vault"},"download":{"description":"Tighten downloads here; unset uses the link's setting","anyOf":[{"type":"string","enum":["off","original","pdf"]},{"type":"null"}]},"print":{"description":"false blocks printing here; unset uses the link's setting","type":["boolean","null"]},"redact":{"description":"true shows redacted copies here (REDACTION §4.1)","type":["boolean","null"]}},"required":["kind","id"]}},"autoAgreementId":{"description":"The agreement whose signing moves buyers here; null for no rule","type":["string","null"]},"autoRequestId":{"description":"The file request whose uploads move buyers here (UPLOADS §6); null for no rule","type":["string","null"]}}}}}},"x-idempotency":"Send an Idempotency-Key header to make retries safe. Keys are kept for 24 hours.","responses":{"200":{"description":"Success","content":{"application/json":{}}},"default":{"$ref":"#/components/responses/Error"}}},"delete":{"operationId":"vaults.phases.delete","tags":["Vaults"],"summary":"Delete a phase with no buyers in it","parameters":[{"name":"vaultId","in":"path","required":true,"schema":{"type":"string"}},{"name":"phaseId","in":"path","required":true,"schema":{"type":"string"}}],"x-idempotency":"Send an Idempotency-Key header to make retries safe. Keys are kept for 24 hours.","responses":{"200":{"description":"Success","content":{"application/json":{}}},"default":{"$ref":"#/components/responses/Error"}}}},"/vaults/{vaultId}/buyers/{entityId}":{"put":{"operationId":"vaults.buyers.move","tags":["Vaults"],"summary":"Put a buyer in a phase","parameters":[{"name":"vaultId","in":"path","required":true,"schema":{"type":"string"}},{"name":"entityId","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"phaseId":{"type":"string","description":"The phase to put the buyer in, up or down. Adds the entity as a buyer if it isn't one"},"notify":{"description":"Moving up: email the buyer's people who opened its links that new documents are available (§3.4). Off by default","type":"boolean"}},"required":["phaseId"]}}}},"x-idempotency":"Send an Idempotency-Key header to make retries safe. Keys are kept for 24 hours.","responses":{"200":{"description":"Success","content":{"application/json":{}}},"default":{"$ref":"#/components/responses/Error"}}},"delete":{"operationId":"vaults.buyers.remove","tags":["Vaults"],"summary":"Take an entity out of the vault's buyers, with its clean team","parameters":[{"name":"vaultId","in":"path","required":true,"schema":{"type":"string"}},{"name":"entityId","in":"path","required":true,"schema":{"type":"string"}}],"x-idempotency":"Send an Idempotency-Key header to make retries safe. Keys are kept for 24 hours.","responses":{"200":{"description":"Success","content":{"application/json":{}}},"default":{"$ref":"#/components/responses/Error"}}}},"/vaults/{vaultId}/buyers/{entityId}/impact":{"get":{"operationId":"vaults.buyers.impact","tags":["Vaults"],"summary":"What putting a buyer in a phase would open and close: the documents, and the buyer's links that follow its phase","parameters":[{"name":"vaultId","in":"path","required":true,"schema":{"type":"string"}},{"name":"entityId","in":"path","required":true,"schema":{"type":"string"}},{"name":"phaseId","in":"query","required":true,"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"string","description":"The phase the buyer would be put in"},"description":"The phase the buyer would be put in"}],"responses":{"200":{"description":"Success","content":{"application/json":{}}},"default":{"$ref":"#/components/responses/Error"}}}},"/vaults/{vaultId}/buyers/{entityId}/clean-team":{"put":{"operationId":"vaults.buyers.cleanTeam","tags":["Vaults"],"summary":"Set who's on a buyer's clean team","parameters":[{"name":"vaultId","in":"path","required":true,"schema":{"type":"string"}},{"name":"entityId","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"emails":{"maxItems":50,"type":"array","items":{"type":"string"},"description":"Everyone on the buyer's clean team in this vault; replaces the list. Empty clears it"}},"required":["emails"]}}}},"x-idempotency":"Send an Idempotency-Key header to make retries safe. Keys are kept for 24 hours.","responses":{"200":{"description":"Success","content":{"application/json":{}}},"default":{"$ref":"#/components/responses/Error"}}}},"/vaults/{vaultId}/qa":{"get":{"operationId":"vaults.qa.get","tags":["Vaults"],"summary":"A vault's Q&A: whether it's on, its coordinators and workstreams, and how many questions need someone","parameters":[{"name":"vaultId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Success","content":{"application/json":{}}},"default":{"$ref":"#/components/responses/Error"}}},"patch":{"operationId":"vaults.qa.update","tags":["Vaults"],"summary":"Turn Q&A on, open or close it, or choose its coordinators","parameters":[{"name":"vaultId","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"status":{"description":"`open`: visitors ask and read. `closed`: they read and can't ask. `off`: they see nothing; questions are kept. Turning Q&A on starts it open","type":"string","enum":["open","closed","off"]},"coordinatorIds":{"description":"Editors and up who coordinate the vault's Q&A (QA §5.1); replaces the list. Owners and admins always coordinate","maxItems":20,"type":"array","items":{"type":"string"}}}}}}},"x-idempotency":"Send an Idempotency-Key header to make retries safe. Keys are kept for 24 hours.","responses":{"200":{"description":"Success","content":{"application/json":{}}},"default":{"$ref":"#/components/responses/Error"}}}},"/vaults/{vaultId}/qa/workstreams":{"post":{"operationId":"vaults.qa.workstreams.create","tags":["Vaults"],"summary":"Add a workstream to a vault's Q&A","parameters":[{"name":"vaultId","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":60},"expertIds":{"maxItems":50,"type":"array","items":{"type":"string"},"description":"Members who answer its questions: anyone who can see the vault"},"folderIds":{"maxItems":200,"type":"array","items":{"type":"string"},"description":"Folders whose questions go to it, with everything below them. A folder goes to one workstream"}},"required":["name"]}}}},"x-idempotency":"Send an Idempotency-Key header to make retries safe. Keys are kept for 24 hours.","responses":{"201":{"description":"Success","content":{"application/json":{}}},"default":{"$ref":"#/components/responses/Error"}}}},"/vaults/{vaultId}/qa/workstreams/{workstreamId}":{"patch":{"operationId":"vaults.qa.workstreams.update","tags":["Vaults"],"summary":"Rename a workstream, or change its experts or folders","parameters":[{"name":"vaultId","in":"path","required":true,"schema":{"type":"string"}},{"name":"workstreamId","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":60},"expertIds":{"description":"Replaces its experts","maxItems":50,"type":"array","items":{"type":"string"}},"folderIds":{"description":"Replaces its folders","maxItems":200,"type":"array","items":{"type":"string"}}}}}}},"x-idempotency":"Send an Idempotency-Key header to make retries safe. Keys are kept for 24 hours.","responses":{"200":{"description":"Success","content":{"application/json":{}}},"default":{"$ref":"#/components/responses/Error"}}},"delete":{"operationId":"vaults.qa.workstreams.delete","tags":["Vaults"],"summary":"Delete a workstream. Its questions go back to the coordinators","parameters":[{"name":"vaultId","in":"path","required":true,"schema":{"type":"string"}},{"name":"workstreamId","in":"path","required":true,"schema":{"type":"string"}}],"x-idempotency":"Send an Idempotency-Key header to make retries safe. Keys are kept for 24 hours.","responses":{"200":{"description":"Success","content":{"application/json":{}}},"default":{"$ref":"#/components/responses/Error"}}}},"/vaults/{vaultId}/questions":{"get":{"operationId":"vaults.questions.list","tags":["Vaults"],"summary":"A vault's questions and requests, most recently active first, by status, workstream, kind, or buyer","parameters":[{"name":"vaultId","in":"path","required":true,"schema":{"type":"string"}},{"name":"cursor","in":"query","required":false,"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","description":"Opaque cursor from a previous page's `nextCursor`","type":"string"},"description":"Opaque cursor from a previous page's `nextCursor`"},{"name":"limit","in":"query","required":false,"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","description":"Page size, 1–100 (default 50)","type":"integer","minimum":1,"maximum":100},"description":"Page size, 1–100 (default 50)"},{"name":"status","in":"query","required":false,"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"string","enum":["open","pending","answered","closed"]}},{"name":"workstreamId","in":"query","required":false,"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","description":"A workstream's id, or `none` for questions with none","type":"string"},"description":"A workstream's id, or `none` for questions with none"},{"name":"entityId","in":"query","required":false,"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","description":"Only this buyer's questions","type":"string"},"description":"Only this buyer's questions"},{"name":"assigned","in":"query","required":false,"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","description":"`me`: assigned to you, or on a workstream you're an expert on","type":"string","enum":["me"]},"description":"`me`: assigned to you, or on a workstream you're an expert on"},{"name":"kind","in":"query","required":false,"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","description":"Only questions, or only requests from buyers' request lists (§10)","type":"string","enum":["question","request"]},"description":"Only questions, or only requests from buyers' request lists (§10)"}],"responses":{"200":{"description":"Success","content":{"application/json":{}}},"default":{"$ref":"#/components/responses/Error"}}}},"/vaults/{vaultId}/questions/{questionId}":{"get":{"operationId":"vaults.questions.get","tags":["Vaults"],"summary":"A question, with its draft, its published answer, and its follow-ups","parameters":[{"name":"vaultId","in":"path","required":true,"schema":{"type":"string"}},{"name":"questionId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Success","content":{"application/json":{}}},"default":{"$ref":"#/components/responses/Error"}}},"patch":{"operationId":"vaults.questions.route","tags":["Vaults"],"summary":"Send a question to a workstream, or assign it to a member","parameters":[{"name":"vaultId","in":"path","required":true,"schema":{"type":"string"}},{"name":"questionId","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"workstreamId":{"description":"The workstream it goes to; null for none (the coordinators)","type":["string","null"]},"assigneeId":{"description":"One member to answer it: an expert or anyone who can see the vault; null for nobody","type":["string","null"]}}}}}},"x-idempotency":"Send an Idempotency-Key header to make retries safe. Keys are kept for 24 hours.","responses":{"200":{"description":"Success","content":{"application/json":{}}},"default":{"$ref":"#/components/responses/Error"}}}},"/vaults/{vaultId}/questions/{questionId}/answer":{"post":{"operationId":"vaults.questions.answer","tags":["Vaults"],"summary":"Draft, submit, or publish the answer to a question, or edit a published one","parameters":[{"name":"vaultId","in":"path","required":true,"schema":{"type":"string"}},{"name":"questionId","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"body":{"description":"The answer the buyer reads. Can be empty when the answer points at documents","type":"string","maxLength":40000},"documents":{"maxItems":50,"type":"array","items":{"type":"object","properties":{"kind":{"type":"string","enum":["item","folder"]},"id":{"type":"string"}},"required":["kind","id"]},"description":"Documents and folders of the vault the answer points at; the buyer opens the ones it can see (§10.3). Omit to keep the draft's"},"partial":{"description":"A request answered in part (§10.3): the buyer sees it partly provided. Requests only","type":"boolean"},"action":{"description":"`save` (default): keep it as a draft. `submit`: send it to the coordinators to approve. `publish`: coordinators only; the buyer sees it at once","type":"string","enum":["save","submit","publish"]}},"required":["body"]}}}},"x-idempotency":"Send an Idempotency-Key header to make retries safe. Keys are kept for 24 hours.","responses":{"200":{"description":"Success","content":{"application/json":{}}},"default":{"$ref":"#/components/responses/Error"}}}},"/vaults/{vaultId}/questions/{questionId}/send-back":{"post":{"operationId":"vaults.questions.sendBack","tags":["Vaults"],"summary":"Send a submitted answer back to whoever wrote it, unpublished","parameters":[{"name":"vaultId","in":"path","required":true,"schema":{"type":"string"}},{"name":"questionId","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"note":{"description":"Why, for the member who wrote it","type":"string","maxLength":2000}}}}}},"x-idempotency":"Send an Idempotency-Key header to make retries safe. Keys are kept for 24 hours.","responses":{"200":{"description":"Success","content":{"application/json":{}}},"default":{"$ref":"#/components/responses/Error"}}}},"/vaults/{vaultId}/questions/{questionId}/close":{"post":{"operationId":"vaults.questions.close","tags":["Vaults"],"summary":"Close a question without an answer","parameters":[{"name":"vaultId","in":"path","required":true,"schema":{"type":"string"}},{"name":"questionId","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"note":{"description":"Shown to the buyer, who's emailed when there is one, e.g. “Answered in Q4” or “We won't share this”","type":"string","maxLength":2000}}}}}},"x-idempotency":"Send an Idempotency-Key header to make retries safe. Keys are kept for 24 hours.","responses":{"200":{"description":"Success","content":{"application/json":{}}},"default":{"$ref":"#/components/responses/Error"}}}},"/vaults/{vaultId}/questions/{questionId}/reopen":{"post":{"operationId":"vaults.questions.reopen","tags":["Vaults"],"summary":"Reopen a closed question","parameters":[{"name":"vaultId","in":"path","required":true,"schema":{"type":"string"}},{"name":"questionId","in":"path","required":true,"schema":{"type":"string"}}],"x-idempotency":"Send an Idempotency-Key header to make retries safe. Keys are kept for 24 hours.","responses":{"200":{"description":"Success","content":{"application/json":{}}},"default":{"$ref":"#/components/responses/Error"}}}},"/vaults/{vaultId}/faqs":{"get":{"operationId":"vaults.faqs.list","tags":["Vaults"],"summary":"A vault's FAQ, in order","parameters":[{"name":"vaultId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Success","content":{"application/json":{}}},"default":{"$ref":"#/components/responses/Error"}}},"post":{"operationId":"vaults.faqs.create","tags":["Vaults"],"summary":"Add an FAQ entry at the end of the vault's FAQ","parameters":[{"name":"vaultId","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"question":{"type":"string","maxLength":2000},"answer":{"type":"string","maxLength":40000},"itemId":{"description":"A document it's about: only visitors who see it see the entry","type":["string","null"]},"folderId":{"description":"A folder it's about: only visitors who see it see the entry","type":["string","null"]},"sourceQuestionId":{"description":"The answered question it was written from, for members","type":"string"}},"required":["question","answer"]}}}},"x-idempotency":"Send an Idempotency-Key header to make retries safe. Keys are kept for 24 hours.","responses":{"201":{"description":"Success","content":{"application/json":{}}},"default":{"$ref":"#/components/responses/Error"}}}},"/vaults/{vaultId}/faqs/{faqId}":{"patch":{"operationId":"vaults.faqs.update","tags":["Vaults"],"summary":"Change an FAQ entry, or move it","parameters":[{"name":"vaultId","in":"path","required":true,"schema":{"type":"string"}},{"name":"faqId","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"question":{"type":"string","maxLength":2000},"answer":{"type":"string","maxLength":40000},"itemId":{"type":["string","null"]},"folderId":{"type":["string","null"]},"position":{"description":"Move it to this place in the FAQ, from 1","type":"integer","minimum":1,"maximum":9007199254740991}}}}}},"x-idempotency":"Send an Idempotency-Key header to make retries safe. Keys are kept for 24 hours.","responses":{"200":{"description":"Success","content":{"application/json":{}}},"default":{"$ref":"#/components/responses/Error"}}},"delete":{"operationId":"vaults.faqs.delete","tags":["Vaults"],"summary":"Delete an FAQ entry","parameters":[{"name":"vaultId","in":"path","required":true,"schema":{"type":"string"}},{"name":"faqId","in":"path","required":true,"schema":{"type":"string"}}],"x-idempotency":"Send an Idempotency-Key header to make retries safe. Keys are kept for 24 hours.","responses":{"200":{"description":"Success","content":{"application/json":{}}},"default":{"$ref":"#/components/responses/Error"}}}},"/vaults/{vaultId}/file-requests":{"get":{"operationId":"vaults.fileRequests.list","tags":["Vaults"],"summary":"What a vault asks its visitors to send, with how many files each has had","parameters":[{"name":"vaultId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Success","content":{"application/json":{}}},"default":{"$ref":"#/components/responses/Error"}}},"post":{"operationId":"vaults.fileRequests.create","tags":["Vaults"],"summary":"Ask the vault's visitors for a file, such as a letter of intent. Visitors with a verified email can send files to it","parameters":[{"name":"vaultId","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":120},"instructions":{"description":"Shown to visitors under the request's name; null clears it","anyOf":[{"type":"string","maxLength":1000},{"type":"null"}]}},"required":["name"]}}}},"x-idempotency":"Send an Idempotency-Key header to make retries safe. Keys are kept for 24 hours.","responses":{"201":{"description":"Success","content":{"application/json":{}}},"default":{"$ref":"#/components/responses/Error"}}}},"/vaults/{vaultId}/file-requests/{requestId}":{"patch":{"operationId":"vaults.fileRequests.update","tags":["Vaults"],"summary":"Rename a file request, change its instructions, or close or reopen it","parameters":[{"name":"vaultId","in":"path","required":true,"schema":{"type":"string"}},{"name":"requestId","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":120},"instructions":{"description":"Shown to visitors under the request's name; null clears it","anyOf":[{"type":"string","maxLength":1000},{"type":"null"}]},"open":{"description":"false closes the request: no new files, what was sent stays","type":"boolean"}}}}}},"x-idempotency":"Send an Idempotency-Key header to make retries safe. Keys are kept for 24 hours.","responses":{"200":{"description":"Success","content":{"application/json":{}}},"default":{"$ref":"#/components/responses/Error"}}},"delete":{"operationId":"vaults.fileRequests.delete","tags":["Vaults"],"summary":"Delete a file request nobody has sent a file to. Close it instead to keep what was sent","parameters":[{"name":"vaultId","in":"path","required":true,"schema":{"type":"string"}},{"name":"requestId","in":"path","required":true,"schema":{"type":"string"}}],"x-idempotency":"Send an Idempotency-Key header to make retries safe. Keys are kept for 24 hours.","responses":{"200":{"description":"Success","content":{"application/json":{}}},"default":{"$ref":"#/components/responses/Error"}}}},"/vaults/{vaultId}/visitor-uploads":{"get":{"operationId":"vaults.visitorUploads.list","tags":["Vaults"],"summary":"Files visitors sent to the vault's requests, newest first, with their checks' outcome","parameters":[{"name":"vaultId","in":"path","required":true,"schema":{"type":"string"}},{"name":"cursor","in":"query","required":false,"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","description":"Opaque cursor from a previous page's `nextCursor`","type":"string"},"description":"Opaque cursor from a previous page's `nextCursor`"},{"name":"limit","in":"query","required":false,"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","description":"Page size, 1–100 (default 50)","type":"integer","minimum":1,"maximum":100},"description":"Page size, 1–100 (default 50)"},{"name":"requestId","in":"query","required":false,"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","description":"Only files sent to this request","type":"string"},"description":"Only files sent to this request"},{"name":"entityId","in":"query","required":false,"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","description":"Only files from this entity","type":"string"},"description":"Only files from this entity"}],"responses":{"200":{"description":"Success","content":{"application/json":{}}},"default":{"$ref":"#/components/responses/Error"}}}},"/visitor-uploads/{uploadId}":{"get":{"operationId":"visitorUploads.get","tags":["Visitor uploads"],"summary":"One file a visitor sent, with its checks' outcome and SHA-256","parameters":[{"name":"uploadId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Success","content":{"application/json":{}}},"default":{"$ref":"#/components/responses/Error"}}},"delete":{"operationId":"visitorUploads.delete","tags":["Visitor uploads"],"summary":"Delete a file a visitor sent, with everything stored for it. The visitor no longer sees it","parameters":[{"name":"uploadId","in":"path","required":true,"schema":{"type":"string"}}],"x-idempotency":"Send an Idempotency-Key header to make retries safe. Keys are kept for 24 hours.","responses":{"200":{"description":"Success","content":{"application/json":{}}},"default":{"$ref":"#/components/responses/Error"}}}},"/visitor-uploads/{uploadId}/page-urls":{"post":{"operationId":"visitorUploads.pageUrls","tags":["Visitor uploads"],"summary":"Presigned URLs (60s) for an upload's page images. Once opened, the visitor can't withdraw it","parameters":[{"name":"uploadId","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"pages":{"minItems":1,"maxItems":100,"type":"array","items":{"type":"integer","minimum":1,"maximum":9007199254740991}},"size":{"default":"md","type":"string","enum":["sm","md","lg"]}},"required":["pages"]}}}},"x-idempotency":"Send an Idempotency-Key header to make retries safe. Keys are kept for 24 hours.","responses":{"200":{"description":"Success","content":{"application/json":{}}},"default":{"$ref":"#/components/responses/Error"}}}},"/visitor-uploads/{uploadId}/download-url":{"post":{"operationId":"visitorUploads.downloadUrl","tags":["Visitor uploads"],"summary":"A presigned URL (60s) to download an upload that passed its checks, as sent or as its PDF","parameters":[{"name":"uploadId","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"format":{"default":"original","type":"string","enum":["original","pdf"]}}}}}},"x-idempotency":"Send an Idempotency-Key header to make retries safe. Keys are kept for 24 hours.","responses":{"200":{"description":"Success","content":{"application/json":{}}},"default":{"$ref":"#/components/responses/Error"}}}},"/vaults/{vaultId}/requests/import":{"post":{"operationId":"vaults.requests.import","tags":["Vaults"],"summary":"Bring in a buyer's request list: each row becomes a request in the vault's Q&A. Rows whose reference the buyer already has are skipped","parameters":[{"name":"vaultId","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"linkId":{"type":"string","description":"The buyer's link to the vault. Its entity's people see the requests in the data room, as they see its questions"},"email":{"description":"For a link without an entity: the person whose requests these are, who sees them and hears about answers","type":"string"},"rows":{"minItems":1,"maxItems":500,"type":"array","items":{"type":"object","properties":{"ref":{"description":"The buyer's own number for it, e.g. 2.4","anyOf":[{"type":"string","maxLength":40},{"type":"null"}]},"category":{"description":"Its section in the buyer's list. A workstream with the same name gets it","anyOf":[{"type":"string","maxLength":80},{"type":"null"}]},"body":{"type":"string","maxLength":8000},"priority":{"anyOf":[{"type":"string","enum":["high","medium","low"]},{"type":"null"}]},"dueAt":{"description":"When the buyer needs it, as a timestamp in milliseconds","anyOf":[{"type":"integer","minimum":0,"maximum":9007199254740991},{"type":"null"}]}},"required":["body"]}}},"required":["linkId","rows"]}}}},"x-idempotency":"Send an Idempotency-Key header to make retries safe. Keys are kept for 24 hours.","responses":{"201":{"description":"Success","content":{"application/json":{}}},"default":{"$ref":"#/components/responses/Error"}}}},"/vaults/{vaultId}/questions/{questionId}/request":{"patch":{"operationId":"vaults.requests.update","tags":["Vaults"],"summary":"Change a request's reference, category, priority, or due date","parameters":[{"name":"vaultId","in":"path","required":true,"schema":{"type":"string"}},{"name":"questionId","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"ref":{"anyOf":[{"type":"string","maxLength":40},{"type":"null"}]},"category":{"anyOf":[{"type":"string","maxLength":80},{"type":"null"}]},"priority":{"anyOf":[{"type":"string","enum":["high","medium","low"]},{"type":"null"}]},"dueAt":{"description":"When the buyer needs it, as a timestamp in milliseconds","anyOf":[{"type":"integer","minimum":0,"maximum":9007199254740991},{"type":"null"}]}}}}}},"x-idempotency":"Send an Idempotency-Key header to make retries safe. Keys are kept for 24 hours.","responses":{"200":{"description":"Success","content":{"application/json":{}}},"default":{"$ref":"#/components/responses/Error"}}}},"/analytics/links/{linkId}":{"get":{"operationId":"analytics.link","tags":["Analytics"],"summary":"Totals and per-page time for a link; agreement links add their signing funnel","parameters":[{"name":"linkId","in":"path","required":true,"schema":{"type":"string"}},{"name":"versionId","in":"query","required":false,"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","description":"Page breakdown for this version; defaults to the current one","type":"string"},"description":"Page breakdown for this version; defaults to the current one"}],"responses":{"200":{"description":"Success","content":{"application/json":{}}},"default":{"$ref":"#/components/responses/Error"}}}},"/analytics/links/{linkId}/visitors":{"get":{"operationId":"analytics.linkVisitors","tags":["Analytics"],"summary":"Who opened a link, most recent first","parameters":[{"name":"linkId","in":"path","required":true,"schema":{"type":"string"}},{"name":"cursor","in":"query","required":false,"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","description":"Opaque cursor from a previous page's `nextCursor`","type":"string"},"description":"Opaque cursor from a previous page's `nextCursor`"},{"name":"limit","in":"query","required":false,"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","description":"Page size, 1–100 (default 50)","type":"integer","minimum":1,"maximum":100},"description":"Page size, 1–100 (default 50)"}],"responses":{"200":{"description":"Success","content":{"application/json":{}}},"default":{"$ref":"#/components/responses/Error"}}}},"/analytics/links/{linkId}/sessions":{"get":{"operationId":"analytics.linkSessions","tags":["Analytics"],"summary":"Visits to a link, newest first","parameters":[{"name":"linkId","in":"path","required":true,"schema":{"type":"string"}},{"name":"cursor","in":"query","required":false,"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","description":"Opaque cursor from a previous page's `nextCursor`","type":"string"},"description":"Opaque cursor from a previous page's `nextCursor`"},{"name":"limit","in":"query","required":false,"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","description":"Page size, 1–100 (default 50)","type":"integer","minimum":1,"maximum":100},"description":"Page size, 1–100 (default 50)"}],"responses":{"200":{"description":"Success","content":{"application/json":{}}},"default":{"$ref":"#/components/responses/Error"}}}},"/analytics/files/{fileId}":{"get":{"operationId":"analytics.file","tags":["Analytics"],"summary":"Totals across every link, and per-page time for a version","parameters":[{"name":"fileId","in":"path","required":true,"schema":{"type":"string"}},{"name":"versionId","in":"query","required":false,"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"string"}}],"responses":{"200":{"description":"Success","content":{"application/json":{}}},"default":{"$ref":"#/components/responses/Error"}}}},"/analytics/files/{fileId}/visitors":{"get":{"operationId":"analytics.fileVisitors","tags":["Analytics"],"summary":"Who viewed a file through any link","parameters":[{"name":"fileId","in":"path","required":true,"schema":{"type":"string"}},{"name":"cursor","in":"query","required":false,"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","description":"Opaque cursor from a previous page's `nextCursor`","type":"string"},"description":"Opaque cursor from a previous page's `nextCursor`"},{"name":"limit","in":"query","required":false,"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","description":"Page size, 1–100 (default 50)","type":"integer","minimum":1,"maximum":100},"description":"Page size, 1–100 (default 50)"}],"responses":{"200":{"description":"Success","content":{"application/json":{}}},"default":{"$ref":"#/components/responses/Error"}}}},"/analytics/files/{fileId}/sessions":{"get":{"operationId":"analytics.fileSessions","tags":["Analytics"],"summary":"Visits to a file through any link","parameters":[{"name":"fileId","in":"path","required":true,"schema":{"type":"string"}},{"name":"cursor","in":"query","required":false,"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","description":"Opaque cursor from a previous page's `nextCursor`","type":"string"},"description":"Opaque cursor from a previous page's `nextCursor`"},{"name":"limit","in":"query","required":false,"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","description":"Page size, 1–100 (default 50)","type":"integer","minimum":1,"maximum":100},"description":"Page size, 1–100 (default 50)"}],"responses":{"200":{"description":"Success","content":{"application/json":{}}},"default":{"$ref":"#/components/responses/Error"}}}},"/analytics/vaults/{vaultId}":{"get":{"operationId":"analytics.vault","tags":["Analytics"],"summary":"Totals across a vault's links, and per document: visits that opened it, time, and downloads","parameters":[{"name":"vaultId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Success","content":{"application/json":{}}},"default":{"$ref":"#/components/responses/Error"}}}},"/analytics/vaults/{vaultId}/visitors":{"get":{"operationId":"analytics.vaultVisitors","tags":["Analytics"],"summary":"Who visited a vault through any of its links","parameters":[{"name":"vaultId","in":"path","required":true,"schema":{"type":"string"}},{"name":"cursor","in":"query","required":false,"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","description":"Opaque cursor from a previous page's `nextCursor`","type":"string"},"description":"Opaque cursor from a previous page's `nextCursor`"},{"name":"limit","in":"query","required":false,"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","description":"Page size, 1–100 (default 50)","type":"integer","minimum":1,"maximum":100},"description":"Page size, 1–100 (default 50)"}],"responses":{"200":{"description":"Success","content":{"application/json":{}}},"default":{"$ref":"#/components/responses/Error"}}}},"/analytics/vaults/{vaultId}/sessions":{"get":{"operationId":"analytics.vaultSessions","tags":["Analytics"],"summary":"Visits to a vault through any of its links, newest first","parameters":[{"name":"vaultId","in":"path","required":true,"schema":{"type":"string"}},{"name":"cursor","in":"query","required":false,"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","description":"Opaque cursor from a previous page's `nextCursor`","type":"string"},"description":"Opaque cursor from a previous page's `nextCursor`"},{"name":"limit","in":"query","required":false,"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","description":"Page size, 1–100 (default 50)","type":"integer","minimum":1,"maximum":100},"description":"Page size, 1–100 (default 50)"}],"responses":{"200":{"description":"Success","content":{"application/json":{}}},"default":{"$ref":"#/components/responses/Error"}}}},"/analytics/sessions/{sessionId}":{"get":{"operationId":"analytics.session","tags":["Analytics"],"summary":"One visit: time per page and its events","parameters":[{"name":"sessionId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Success","content":{"application/json":{}}},"default":{"$ref":"#/components/responses/Error"}}}},"/analytics/events":{"get":{"operationId":"analytics.events","tags":["Analytics"],"summary":"Raw analytics events for a link (drill-down and export)","parameters":[{"name":"linkId","in":"query","required":true,"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"string","description":"Raw events for this link, newest first"},"description":"Raw events for this link, newest first"},{"name":"from","in":"query","required":false,"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","description":"Inclusive start, ms since epoch","type":"number"},"description":"Inclusive start, ms since epoch"},{"name":"to","in":"query","required":false,"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","description":"Exclusive end, ms since epoch","type":"number"},"description":"Exclusive end, ms since epoch"},{"name":"cursor","in":"query","required":false,"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","description":"Opaque cursor from a previous page's `nextCursor`","type":"string"},"description":"Opaque cursor from a previous page's `nextCursor`"},{"name":"limit","in":"query","required":false,"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","description":"Page size, 1–100 (default 50)","type":"integer","minimum":1,"maximum":100},"description":"Page size, 1–100 (default 50)"}],"responses":{"200":{"description":"Success","content":{"application/json":{}}},"default":{"$ref":"#/components/responses/Error"}}}},"/analytics/daily":{"get":{"operationId":"analytics.daily","tags":["Analytics"],"summary":"Visits, time, and downloads per day (UTC) for the workspace, a vault, a link, or a file","parameters":[{"name":"scope","in":"query","required":true,"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"string","enum":["workspace","vault","link","file"],"description":"Whose activity: the whole workspace, a vault, a link, or a file"},"description":"Whose activity: the whole workspace, a vault, a link, or a file"},{"name":"id","in":"query","required":false,"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","description":"The vault, link, or file id (not for `workspace`)","type":"string"},"description":"The vault, link, or file id (not for `workspace`)"},{"name":"to","in":"query","required":false,"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","description":"Last day, YYYY-MM-DD in UTC. Defaults to the latest day with activity","type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"description":"Last day, YYYY-MM-DD in UTC. Defaults to the latest day with activity"},{"name":"days","in":"query","required":false,"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","description":"How many days, ending with `to` (default 30)","type":"integer","minimum":1,"maximum":366},"description":"How many days, ending with `to` (default 30)"}],"responses":{"200":{"description":"Success","content":{"application/json":{}}},"default":{"$ref":"#/components/responses/Error"}}}},"/analytics/overview":{"get":{"operationId":"analytics.overview","tags":["Analytics"],"summary":"The workspace dashboard: activity per day, and the most engaged entities and contacts","parameters":[{"name":"to","in":"query","required":false,"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","description":"Last day, YYYY-MM-DD in UTC. Defaults to the latest day with activity","type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"description":"Last day, YYYY-MM-DD in UTC. Defaults to the latest day with activity"},{"name":"days","in":"query","required":false,"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","description":"How many days, ending with `to` (default 30)","type":"integer","minimum":1,"maximum":366},"description":"How many days, ending with `to` (default 30)"},{"name":"top","in":"query","required":false,"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","description":"How many entities and contacts to rank (default 8)","type":"integer","minimum":1,"maximum":50},"description":"How many entities and contacts to rank (default 8)"}],"responses":{"200":{"description":"Success","content":{"application/json":{}}},"default":{"$ref":"#/components/responses/Error"}}}},"/analytics/live":{"get":{"operationId":"analytics.live","tags":["Analytics"],"summary":"Who is viewing right now (heartbeat within the last ~75s)","parameters":[{"name":"vaultId","in":"query","required":false,"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","description":"Only visitors in this vault","type":"string"},"description":"Only visitors in this vault"}],"responses":{"200":{"description":"Success","content":{"application/json":{}}},"default":{"$ref":"#/components/responses/Error"}}}},"/alerts":{"get":{"operationId":"alerts.list","tags":["Alerts"],"summary":"The workspace's alerts, newest first","parameters":[{"name":"type","in":"query","required":false,"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","description":"Only alerts of this type","type":"string","enum":["link.first_open","visitor.returned","download","domain.new","capture.attempted","meeting.clicked","signing.awaiting_countersign","update.unsubscribed","update.access_requested","update.opened","update.gone_quiet","upload.received","link.send_unopened","link.send_bounced","link.sharing_suspected","link.access_denied"]},"description":"Only alerts of this type"},{"name":"cursor","in":"query","required":false,"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","description":"Opaque cursor from a previous page's `nextCursor`","type":"string"},"description":"Opaque cursor from a previous page's `nextCursor`"},{"name":"limit","in":"query","required":false,"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","description":"Page size, 1–100 (default 50)","type":"integer","minimum":1,"maximum":100},"description":"Page size, 1–100 (default 50)"}],"responses":{"200":{"description":"Success","content":{"application/json":{}}},"default":{"$ref":"#/components/responses/Error"}}}},"/agreements":{"get":{"operationId":"agreements.list","tags":["Agreements"],"summary":"List agreements, newest first","parameters":[{"name":"cursor","in":"query","required":false,"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","description":"Opaque cursor from a previous page's `nextCursor`","type":"string"},"description":"Opaque cursor from a previous page's `nextCursor`"},{"name":"limit","in":"query","required":false,"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","description":"Page size, 1–100 (default 50)","type":"integer","minimum":1,"maximum":100},"description":"Page size, 1–100 (default 50)"},{"name":"status","in":"query","required":false,"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"string","enum":["draft","active","archived"]}}],"responses":{"200":{"description":"Success","content":{"application/json":{}}},"default":{"$ref":"#/components/responses/Error"}}},"post":{"operationId":"agreements.create","tags":["Agreements"],"summary":"Create an agreement and get a presigned PUT for its document. Then PUT the bytes and confirm","requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":160},"description":{"type":"string","maxLength":2000},"file":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":255},"mime":{"description":"Content type; the PUT must send exactly this","type":"string","maxLength":200,"pattern":"^[\\w.+-]+\\/[\\w.+-]+$"},"size":{"type":"integer","minimum":1,"maximum":104857600}},"required":["name","size"],"description":"The PDF or Word document to upload"}},"required":["name","file"]}}}},"x-idempotency":"Send an Idempotency-Key header to make retries safe. Keys are kept for 24 hours.","responses":{"201":{"description":"Success","content":{"application/json":{}}},"default":{"$ref":"#/components/responses/Error"}}}},"/agreements/{agreementId}":{"get":{"operationId":"agreements.get","tags":["Agreements"],"summary":"Get an agreement with its versions and countersigner setup","parameters":[{"name":"agreementId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Success","content":{"application/json":{}}},"default":{"$ref":"#/components/responses/Error"}}},"patch":{"operationId":"agreements.update","tags":["Agreements"],"summary":"Rename or describe an agreement, or change its attestation or default observers","parameters":[{"name":"agreementId","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":160},"description":{"anyOf":[{"type":"string","maxLength":2000},{"type":"null"}]},"attestation":{"description":"“I am authorized to sign on behalf of …” for recipients","type":"string","enum":["off","optional","required"]},"defaultObservers":{"description":"Observers new links and signature requests start from, e.g. legal@ on every NDA (SIGNATURE_REQUESTS §6)","maxItems":10,"type":"array","items":{"type":"object","properties":{"email":{"type":"string","format":"email","pattern":"^(?:[A-Za-z0-9_'+\\-]+\\.)*[A-Za-z0-9_'+\\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"},"name":{"type":"string","maxLength":120},"notify":{"default":"completion","description":"`completion`: one email once it's signed. `all`: every update","type":"string","enum":["completion","all"]}},"required":["email"]}}}}}}},"x-idempotency":"Send an Idempotency-Key header to make retries safe. Keys are kept for 24 hours.","responses":{"200":{"description":"Success","content":{"application/json":{}}},"default":{"$ref":"#/components/responses/Error"}}}},"/agreements/{agreementId}/archive":{"post":{"operationId":"agreements.archive","tags":["Agreements"],"summary":"Archive an agreement. Its links stop working; signings and executed documents are kept","parameters":[{"name":"agreementId","in":"path","required":true,"schema":{"type":"string"}}],"x-idempotency":"Send an Idempotency-Key header to make retries safe. Keys are kept for 24 hours.","responses":{"200":{"description":"Success","content":{"application/json":{}}},"default":{"$ref":"#/components/responses/Error"}}}},"/agreements/{agreementId}/restore":{"post":{"operationId":"agreements.restore","tags":["Agreements"],"summary":"Restore an archived agreement","parameters":[{"name":"agreementId","in":"path","required":true,"schema":{"type":"string"}}],"x-idempotency":"Send an Idempotency-Key header to make retries safe. Keys are kept for 24 hours.","responses":{"200":{"description":"Success","content":{"application/json":{}}},"default":{"$ref":"#/components/responses/Error"}}}},"/agreements/{agreementId}/versions":{"get":{"operationId":"agreements.versions.list","tags":["Agreements"],"summary":"List an agreement's versions, newest first","parameters":[{"name":"agreementId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Success","content":{"application/json":{}}},"default":{"$ref":"#/components/responses/Error"}}},"post":{"operationId":"agreements.versions.create","tags":["Agreements"],"summary":"Start a new version: with a new document (presigned PUT returned) or as an editable copy of an existing one","parameters":[{"name":"agreementId","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"file":{"description":"A new document. Omit to start a new version from an existing one's document","type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":255},"mime":{"description":"Content type; the PUT must send exactly this","type":"string","maxLength":200,"pattern":"^[\\w.+-]+\\/[\\w.+-]+$"},"size":{"type":"integer","minimum":1,"maximum":104857600}},"required":["name","size"]},"basedOnVersionId":{"description":"Copy roles and fields (and the document, without `file`) from this version. Defaults to the latest","type":"string"}}}}}},"x-idempotency":"Send an Idempotency-Key header to make retries safe. Keys are kept for 24 hours.","responses":{"201":{"description":"Success","content":{"application/json":{}}},"default":{"$ref":"#/components/responses/Error"}}}},"/agreements/{agreementId}/versions/{versionId}":{"get":{"operationId":"agreements.versions.get","tags":["Agreements"],"summary":"Get a version with its roles, fields, and page sizes","parameters":[{"name":"agreementId","in":"path","required":true,"schema":{"type":"string"}},{"name":"versionId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Success","content":{"application/json":{}}},"default":{"$ref":"#/components/responses/Error"}}},"delete":{"operationId":"agreements.versions.discard","tags":["Agreements"],"summary":"Discard the latest version while its upload is unconfirmed; a new agreement with no other version is deleted with it","parameters":[{"name":"agreementId","in":"path","required":true,"schema":{"type":"string"}},{"name":"versionId","in":"path","required":true,"schema":{"type":"string"}}],"x-idempotency":"Send an Idempotency-Key header to make retries safe. Keys are kept for 24 hours.","responses":{"200":{"description":"Success","content":{"application/json":{}}},"default":{"$ref":"#/components/responses/Error"}}}},"/agreements/{agreementId}/versions/{versionId}/confirm":{"post":{"operationId":"agreements.versions.confirm","tags":["Agreements"],"summary":"Confirm an upload finished; rendering starts","parameters":[{"name":"agreementId","in":"path","required":true,"schema":{"type":"string"}},{"name":"versionId","in":"path","required":true,"schema":{"type":"string"}}],"x-idempotency":"Send an Idempotency-Key header to make retries safe. Keys are kept for 24 hours.","responses":{"200":{"description":"Success","content":{"application/json":{}}},"default":{"$ref":"#/components/responses/Error"}}}},"/agreements/{agreementId}/versions/{versionId}/retry":{"post":{"operationId":"agreements.versions.retry","tags":["Agreements"],"summary":"Retry processing a version that failed","parameters":[{"name":"agreementId","in":"path","required":true,"schema":{"type":"string"}},{"name":"versionId","in":"path","required":true,"schema":{"type":"string"}}],"x-idempotency":"Send an Idempotency-Key header to make retries safe. Keys are kept for 24 hours.","responses":{"200":{"description":"Success","content":{"application/json":{}}},"default":{"$ref":"#/components/responses/Error"}}}},"/agreements/{agreementId}/versions/{versionId}/layout":{"put":{"operationId":"agreements.versions.updateLayout","tags":["Agreements"],"summary":"Replace a version's roles and fields, and set its signature page. Locked versions can't change; start a new version instead","parameters":[{"name":"agreementId","in":"path","required":true,"schema":{"type":"string"}},{"name":"versionId","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"roles":{"minItems":1,"maxItems":10,"type":"array","items":{"type":"object","properties":{"key":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,40}$"},"label":{"type":"string","minLength":1,"maxLength":60},"kind":{"type":"string","enum":["recipient","countersigner"]},"required":{"type":"boolean"},"step":{"description":"The step it signs at by default (SIGNATURE_REQUESTS §4.1). Set on any role, requests from this template sign in order","anyOf":[{"type":"integer","minimum":1,"maximum":10},{"type":"null"}]}},"required":["key","label","kind","required"]}},"fields":{"maxItems":500,"type":"array","items":{"type":"object","properties":{"id":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,40}$"},"type":{"type":"string","enum":["signature","initials","name","email","company","title","date_signed","text","checkbox","variable"]},"roleKey":{"type":"string"},"page":{"type":"integer","minimum":1,"maximum":9007199254740991},"x":{"type":"number","minimum":0,"maximum":1},"y":{"type":"number","minimum":0,"maximum":1},"width":{"type":"number","exclusiveMinimum":0,"maximum":1},"height":{"type":"number","exclusiveMinimum":0,"maximum":1},"required":{"type":"boolean"},"prefill":{"type":"string","maxLength":200},"label":{"type":"string","maxLength":80},"variableKey":{"description":"`variable` fields: the variable shown here, declared on the version or built in (SIGNATURE_REQUESTS §5.2)","type":"string","maxLength":80},"anchor":{"description":"Placed from this anchor, `<type>:<key>:<n>` (SIGNATURE_REQUESTS §5.4). Required on every field of a Word template with placeholders","type":"string","maxLength":100}},"required":["id","type","roleKey","page","x","y","width","height","required"]}},"variables":{"description":"Values the sender or a signer fills in (SIGNATURE_REQUESTS §5.1). Omit to keep the version's","maxItems":50,"type":"array","items":{"type":"object","properties":{"key":{"type":"string","pattern":"^[a-z][a-z0-9_]{0,39}$"},"label":{"type":"string","minLength":1,"maxLength":80},"type":{"type":"string","enum":["text","multiline","number","date","email","select"]},"filledBy":{"type":"string","enum":["sender","signer"],"description":"`sender`: filled when the request is sent or the link saved. `signer`: typed in by the signer of `roleKey`"},"roleKey":{"description":"Signer variables: the recipient role that fills it","type":"string","maxLength":40},"required":{"type":"boolean"},"options":{"description":"`select` only: the choices","maxItems":50,"type":"array","items":{"type":"string","minLength":1,"maxLength":120}},"maxLength":{"type":"integer","minimum":1,"maximum":2000},"pattern":{"description":"A regular expression the whole value must match","type":"string","maxLength":300},"patternHint":{"description":"Shown when the value doesn't match `pattern`","type":"string","maxLength":160},"help":{"type":"string","maxLength":300}},"required":["key","label","type","filledBy","required"]}},"signaturePage":{"anyOf":[{"anyOf":[{"type":"boolean"},{"type":"object","properties":{"title":{"default":false,"type":"boolean"},"company":{"default":false,"type":"boolean"}}}]},{"type":"null"}],"description":"A page at the end with a block for each party: signature, name, and date signed, plus title and company when asked for. `false` or null removes it"}},"required":["roles","fields"]}}}},"x-idempotency":"Send an Idempotency-Key header to make retries safe. Keys are kept for 24 hours.","responses":{"200":{"description":"Success","content":{"application/json":{}}},"default":{"$ref":"#/components/responses/Error"}}}},"/agreements/{agreementId}/versions/{versionId}/publish":{"post":{"operationId":"agreements.versions.publish","tags":["Agreements"],"summary":"Make a version the one new signings use","parameters":[{"name":"agreementId","in":"path","required":true,"schema":{"type":"string"}},{"name":"versionId","in":"path","required":true,"schema":{"type":"string"}}],"x-idempotency":"Send an Idempotency-Key header to make retries safe. Keys are kept for 24 hours.","responses":{"200":{"description":"Success","content":{"application/json":{}}},"default":{"$ref":"#/components/responses/Error"}}}},"/agreements/{agreementId}/page-urls":{"post":{"operationId":"agreements.pageUrls","tags":["Agreements"],"summary":"Presigned URLs (60s) for rendered page images","parameters":[{"name":"agreementId","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"versionId":{"description":"Defaults to the current version","type":"string"},"pages":{"minItems":1,"maxItems":100,"type":"array","items":{"type":"integer","minimum":1,"maximum":9007199254740991}},"size":{"default":"md","type":"string","enum":["sm","md","lg"]}},"required":["pages"]}}}},"x-idempotency":"Send an Idempotency-Key header to make retries safe. Keys are kept for 24 hours.","responses":{"200":{"description":"Success","content":{"application/json":{}}},"default":{"$ref":"#/components/responses/Error"}}}},"/agreements/{agreementId}/download-url":{"post":{"operationId":"agreements.downloadUrl","tags":["Agreements"],"summary":"A presigned URL (60s) for a version's blank PDF","parameters":[{"name":"agreementId","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"versionId":{"type":"string"}}}}}},"x-idempotency":"Send an Idempotency-Key header to make retries safe. Keys are kept for 24 hours.","responses":{"200":{"description":"Success","content":{"application/json":{}}},"default":{"$ref":"#/components/responses/Error"}}}},"/agreements/{agreementId}/save-as-template":{"post":{"operationId":"agreements.saveAsTemplate","tags":["Agreements"],"summary":"Save a one-off document from a signature request as a reusable template, as a draft to publish","parameters":[{"name":"agreementId","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"name":{"description":"Defaults to the document's name","type":"string","minLength":1,"maxLength":160}}}}}},"x-idempotency":"Send an Idempotency-Key header to make retries safe. Keys are kept for 24 hours.","responses":{"201":{"description":"Success","content":{"application/json":{}}},"default":{"$ref":"#/components/responses/Error"}}}},"/agreements/{agreementId}/analytics":{"get":{"operationId":"agreements.analytics","tags":["Agreements"],"summary":"Signings by status, time to sign and complete, and pending countersignatures","parameters":[{"name":"agreementId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Success","content":{"application/json":{}}},"default":{"$ref":"#/components/responses/Error"}}}},"/signings/external":{"post":{"operationId":"signings.recordExternal","tags":["Signings"],"summary":"Record an agreement signed outside Vaultko: returns a presigned PUT for the signed PDF. Then PUT and confirm","requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"agreementId":{"type":"string"},"signers":{"minItems":1,"maxItems":10,"type":"array","items":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":120},"email":{"type":"string","format":"email","pattern":"^(?:[A-Za-z0-9_'+\\-]+\\.)*[A-Za-z0-9_'+\\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"}},"required":["name","email"]},"description":"Who signed it"},"effectiveAt":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"When it was signed or took effect, ms since epoch"},"validUntil":{"description":"When it stops counting, if it expires","anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"scope":{"default":"all","description":"Which vaults it covers when vaults require this agreement","type":"string","enum":["all","vaults"]},"entityId":{"description":"The entity it was signed for. Under entity coverage (§5.6) it covers the entity's contacts too","type":"string"},"vaultIds":{"maxItems":100,"type":"array","items":{"type":"string"}},"note":{"type":"string","maxLength":1000},"file":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":255},"size":{"type":"integer","minimum":1,"maximum":104857600}},"required":["name","size"]}},"required":["agreementId","signers","effectiveAt","file"]}}}},"x-idempotency":"Send an Idempotency-Key header to make retries safe. Keys are kept for 24 hours.","responses":{"201":{"description":"Success","content":{"application/json":{}}},"default":{"$ref":"#/components/responses/Error"}}}},"/signings/batches":{"post":{"operationId":"signings.batches.create","tags":["Signings"],"summary":"Send a template to many people, each row its own signature request. Every row is checked first, and nothing is sent unless every one passes. Honors Idempotency-Key","requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"agreementId":{"type":"string","description":"A published agreement to send"},"versionId":{"description":"A published version of it. Defaults to the current one","type":"string"},"rows":{"minItems":1,"maxItems":500,"type":"array","items":{"type":"object","properties":{"recipients":{"maxItems":10,"type":"array","items":{"type":"object","properties":{"roleKey":{"description":"The role they sign as. Required for a template. For a one-off document, any key (anchors use it); unset, they're numbered signer_1, signer_2, …","type":"string","maxLength":40},"email":{"type":"string","maxLength":254},"name":{"type":"string","maxLength":120}},"required":["email","name"]},"description":"A name and email for each recipient role, as in `POST /signings`. An optional role left out isn't part of this row's signing"},"variables":{"description":"This row's values for the sender's variables, over the batch's `variables`","type":"object","propertyNames":{"type":"string","maxLength":40},"additionalProperties":{"type":"string","maxLength":2000}},"entityId":{"description":"The entity this row is for. Unset: its first recipient's, matched by email domain","type":"string"},"locale":{"description":"This row's language (`en`, `es`, `pt`), over the batch's `locale`, for recipients with none of their own","type":"string","enum":["en","es","pt"]}},"required":["recipients"]},"description":"One signing per row, up to 500"},"entityId":{"description":"The entity it's for. Unset: the first recipient's, matched by email domain","type":["string","null"]},"recipients":{"description":"A name and email for each recipient role. Required roles must be filled to send; an optional role left out isn't part of the signing. On a one-off document, each recipient is a role","maxItems":10,"type":"array","items":{"type":"object","properties":{"roleKey":{"description":"The role they sign as. Required for a template. For a one-off document, any key (anchors use it); unset, they're numbered signer_1, signer_2, …","type":"string","maxLength":40},"email":{"type":"string","maxLength":254},"name":{"type":"string","maxLength":120}},"required":["email","name"]}},"countersigners":{"description":"Narrow a countersigner role to one eligible member for this request. On a one-off document, each one adds a countersigner role for that member (“I also sign”), keyed `sender` unless given","maxItems":10,"type":"array","items":{"type":"object","properties":{"roleKey":{"type":"string","maxLength":40},"userId":{"type":"string"}},"required":["userId"]}},"observers":{"description":"People who get updates and the executed PDF without signing. Defaults to the agreement's","maxItems":10,"type":"array","items":{"type":"object","properties":{"email":{"type":"string","format":"email","pattern":"^(?:[A-Za-z0-9_'+\\-]+\\.)*[A-Za-z0-9_'+\\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"},"name":{"type":"string","maxLength":120},"notify":{"default":"completion","description":"`completion`: one email once it's signed. `all`: every update","type":"string","enum":["completion","all"]}},"required":["email"]}},"subject":{"description":"The invitation's subject. Unset: “{workspace} sent you {document} to sign”","anyOf":[{"type":"string","maxLength":200},{"type":"null"}]},"message":{"description":"Plain text shown in the invitation, the reminders, and the signing page","anyOf":[{"type":"string","maxLength":2000},{"type":"null"}]},"locale":{"description":"The language of its emails, signing page, and certificate for recipients with none of their own (`en`, `es`, `pt`); null follows the workspace's default","anyOf":[{"type":"string","enum":["en","es","pt"]},{"type":"null"}]},"expiresInDays":{"description":"Days from sending until it expires (default 30)","type":"integer","minimum":1,"maximum":365},"reminderDays":{"description":"Days between reminders to pending recipients, 0 for none (default 3)","type":"integer","minimum":0,"maximum":30},"steps":{"description":"Sign in order (§4): each role's step, from 1. Roles at the same step sign at the same time, countersigners included, and a role left out signs after the rest. null: parallel, every recipient and then every countersigner. Unset on a template: its roles' default steps","anyOf":[{"maxItems":10,"type":"array","items":{"type":"object","properties":{"roleKey":{"type":"string","maxLength":40},"step":{"type":"integer","minimum":1,"maximum":10}},"required":["roleKey","step"]}},{"type":"null"}]},"variables":{"description":"Templates: values for the sender's variables, by key (§5.2). Merged into the draft's; an empty string clears one, null clears them all. Required ones must be filled, and every value must pass its validation, to send","anyOf":[{"type":"object","propertyNames":{"type":"string","maxLength":40},"additionalProperties":{"type":"string","maxLength":2000}},{"type":"null"}]},"handOff":{"description":"Whether a recipient can pass their part to someone else to sign in their place (§15). Default true","type":"boolean"}},"required":["agreementId","rows"]}}}},"x-idempotency":"Send an Idempotency-Key header to make retries safe. Keys are kept for 24 hours.","responses":{"201":{"description":"Success","content":{"application/json":{}}},"default":{"$ref":"#/components/responses/Error"}}},"get":{"operationId":"signings.batches.list","tags":["Signings"],"summary":"List bulk sends, newest first","parameters":[{"name":"cursor","in":"query","required":false,"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","description":"Opaque cursor from a previous page's `nextCursor`","type":"string"},"description":"Opaque cursor from a previous page's `nextCursor`"},{"name":"limit","in":"query","required":false,"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","description":"Page size, 1–100 (default 50)","type":"integer","minimum":1,"maximum":100},"description":"Page size, 1–100 (default 50)"},{"name":"agreementId","in":"query","required":false,"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","description":"Only this agreement's batches","type":"string"},"description":"Only this agreement's batches"}],"responses":{"200":{"description":"Success","content":{"application/json":{}}},"default":{"$ref":"#/components/responses/Error"}}}},"/signings/batches/{batchId}":{"get":{"operationId":"signings.batches.get","tags":["Signings"],"summary":"A bulk send, with its rows counted by state. List its rows with `GET /signings?batchId=`","parameters":[{"name":"batchId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Success","content":{"application/json":{}}},"default":{"$ref":"#/components/responses/Error"}}}},"/signings/batches/{batchId}/cancel":{"post":{"operationId":"signings.batches.cancel","tags":["Signings"],"summary":"Stop a bulk send: rows not sent yet are deleted. Rows already sent are signature requests; void them one by one","parameters":[{"name":"batchId","in":"path","required":true,"schema":{"type":"string"}}],"x-idempotency":"Send an Idempotency-Key header to make retries safe. Keys are kept for 24 hours.","responses":{"200":{"description":"Success","content":{"application/json":{}}},"default":{"$ref":"#/components/responses/Error"}}}},"/signings/batches/{batchId}/retry":{"post":{"operationId":"signings.batches.retry","tags":["Signings"],"summary":"Send a finished bulk send's failed rows again, in order, as it sent them the first time. Rows that fail again keep the new reason","parameters":[{"name":"batchId","in":"path","required":true,"schema":{"type":"string"}}],"x-idempotency":"Send an Idempotency-Key header to make retries safe. Keys are kept for 24 hours.","responses":{"200":{"description":"Success","content":{"application/json":{}}},"default":{"$ref":"#/components/responses/Error"}}}},"/closings":{"post":{"operationId":"closings.create","tags":["Closings"],"summary":"Track a bulk send as a round closing: each row's amount, signature, and wires","requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"batchId":{"type":"string","description":"The bulk send to track"},"title":{"type":"string","minLength":1,"maxLength":120,"description":"The round, e.g. “Seed round”"},"currency":{"type":"string","pattern":"^[A-Z]{3}$","description":"ISO 4217 currency code"},"amountKey":{"type":"string","maxLength":40,"description":"The template's sender variable that holds each row's amount"},"referencePrefix":{"description":"Each row's reference starts with it (`ACME-SEED-07`). Defaults from the workspace's and the round's names","type":"string","pattern":"^[A-Z0-9](?:[A-Z0-9-]{0,22}[A-Z0-9])?$"}},"required":["batchId","title","currency","amountKey"]}}}},"x-idempotency":"Send an Idempotency-Key header to make retries safe. Keys are kept for 24 hours.","responses":{"201":{"description":"Success","content":{"application/json":{}}},"default":{"$ref":"#/components/responses/Error"}}},"get":{"operationId":"closings.list","tags":["Closings"],"summary":"List round closings, newest first","parameters":[{"name":"cursor","in":"query","required":false,"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","description":"Opaque cursor from a previous page's `nextCursor`","type":"string"},"description":"Opaque cursor from a previous page's `nextCursor`"},{"name":"limit","in":"query","required":false,"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","description":"Page size, 1–100 (default 50)","type":"integer","minimum":1,"maximum":100},"description":"Page size, 1–100 (default 50)"},{"name":"batchId","in":"query","required":false,"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","description":"Only this bulk send's closing","type":"string"},"description":"Only this bulk send's closing"}],"responses":{"200":{"description":"Success","content":{"application/json":{}}},"default":{"$ref":"#/components/responses/Error"}}}},"/closings/{closingId}":{"get":{"operationId":"closings.get","tags":["Closings"],"summary":"A round closing with its rows (amount, signing, wires), totals, and wire instructions' versions. The bank details themselves are for owners in the app; a key gets the beneficiary, bank and account ending","parameters":[{"name":"closingId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Success","content":{"application/json":{}}},"default":{"$ref":"#/components/responses/Error"}}}},"/closings/{closingId}/wires":{"post":{"operationId":"closings.recordWire","tags":["Closings"],"summary":"Mark a wire as received for a row of an open closing","parameters":[{"name":"closingId","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"investorId":{"type":"string","description":"The row the wire is for"},"amount":{"type":"string","maxLength":40,"description":"The amount received, in the closing's currency (“25000”, “25,000.50”)"},"receivedOn":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$","description":"The day it arrived, YYYY-MM-DD"},"note":{"type":"string","maxLength":500}},"required":["investorId","amount","receivedOn"]}}}},"x-idempotency":"Send an Idempotency-Key header to make retries safe. Keys are kept for 24 hours.","responses":{"201":{"description":"Success","content":{"application/json":{}}},"default":{"$ref":"#/components/responses/Error"}}}},"/closings/{closingId}/wires/{wireId}":{"delete":{"operationId":"closings.removeWire","tags":["Closings"],"summary":"Remove a wire recorded by mistake, while the closing is open","parameters":[{"name":"closingId","in":"path","required":true,"schema":{"type":"string"}},{"name":"wireId","in":"path","required":true,"schema":{"type":"string"}}],"x-idempotency":"Send an Idempotency-Key header to make retries safe. Keys are kept for 24 hours.","responses":{"200":{"description":"Success","content":{"application/json":{}}},"default":{"$ref":"#/components/responses/Error"}}}},"/closings/{closingId}/close":{"post":{"operationId":"closings.close","tags":["Closings"],"summary":"Close the round: no more wires, and a ZIP of the executed documents and a sealed closing statement are prepared. Rows not completed are listed as not in the close","parameters":[{"name":"closingId","in":"path","required":true,"schema":{"type":"string"}}],"x-idempotency":"Send an Idempotency-Key header to make retries safe. Keys are kept for 24 hours.","responses":{"200":{"description":"Success","content":{"application/json":{}}},"default":{"$ref":"#/components/responses/Error"}}}},"/closings/{closingId}/zip":{"post":{"operationId":"closings.prepareZip","tags":["Closings"],"summary":"Prepare the ZIP of a closed round's executed documents again, once the last one expired (a day)","parameters":[{"name":"closingId","in":"path","required":true,"schema":{"type":"string"}}],"x-idempotency":"Send an Idempotency-Key header to make retries safe. Keys are kept for 24 hours.","responses":{"200":{"description":"Success","content":{"application/json":{}}},"default":{"$ref":"#/components/responses/Error"}}}},"/closings/{closingId}/download":{"post":{"operationId":"closings.download","tags":["Closings"],"summary":"A short-lived URL to the sealed closing statement, the ZIP of executed documents, or a version of the sealed wire instructions (owners in the app only)","parameters":[{"name":"closingId","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"file":{"type":"string","enum":["statement","zip","instructions"]},"version":{"description":"Which version of the wire instructions. Defaults to the newest","type":"integer","minimum":1,"maximum":9007199254740991}},"required":["file"]}}}},"x-idempotency":"Send an Idempotency-Key header to make retries safe. Keys are kept for 24 hours.","responses":{"200":{"description":"Success","content":{"application/json":{}}},"default":{"$ref":"#/components/responses/Error"}}}},"/signings":{"get":{"operationId":"signings.list","tags":["Signings"],"summary":"List signings, newest first","parameters":[{"name":"cursor","in":"query","required":false,"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","description":"Opaque cursor from a previous page's `nextCursor`","type":"string"},"description":"Opaque cursor from a previous page's `nextCursor`"},{"name":"limit","in":"query","required":false,"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","description":"Page size, 1–100 (default 50)","type":"integer","minimum":1,"maximum":100},"description":"Page size, 1–100 (default 50)"},{"name":"agreementId","in":"query","required":false,"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"string"}},{"name":"linkId","in":"query","required":false,"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"string"}},{"name":"vaultId","in":"query","required":false,"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","description":"Signings made for this vault, e.g. at its required-agreement gate","type":"string"},"description":"Signings made for this vault, e.g. at its required-agreement gate"},{"name":"entityId","in":"query","required":false,"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","description":"Signings for this entity","type":"string"},"description":"Signings for this entity"},{"name":"status","in":"query","required":false,"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","description":"`draft`: signature requests not sent yet. Drafts are left out otherwise","type":"string","enum":["draft","uploading","in_progress","awaiting_countersign","completed","declined","voided","expired"]},"description":"`draft`: signature requests not sent yet. Drafts are left out otherwise"},{"name":"origin","in":"query","required":false,"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","description":"How the signing started","type":"string","enum":["link","requirement","external_upload","request"]},"description":"How the signing started"},{"name":"sentBy","in":"query","required":false,"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","description":"Signature requests sent by this member (a user id)","type":"string"},"description":"Signature requests sent by this member (a user id)"},{"name":"batchId","in":"query","required":false,"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","description":"A bulk send's rows (SIGNATURE_REQUESTS §16), in row order, unsent ones included","type":"string"},"description":"A bulk send's rows (SIGNATURE_REQUESTS §16), in row order, unsent ones included"},{"name":"failed","in":"query","required":false,"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","description":"With `batchId`: only the rows that failed to send","anyOf":[{"type":"boolean"},{"type":"string","enum":["true","false"]}]},"description":"With `batchId`: only the rows that failed to send"},{"name":"awaitingMe","in":"query","required":false,"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","description":"Only signings waiting for the calling member's countersignature (members only)","anyOf":[{"type":"boolean"},{"type":"string","enum":["true","false"]}]},"description":"Only signings waiting for the calling member's countersignature (members only)"}],"responses":{"200":{"description":"Success","content":{"application/json":{}}},"default":{"$ref":"#/components/responses/Error"}}},"post":{"operationId":"signings.createRequest","tags":["Signings"],"summary":"Create a signature request for named recipients, from a template or an uploaded document: a draft, or sent at once with `send: true`. Honors Idempotency-Key","requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"agreementId":{"description":"A published agreement to send. Give this or `document`","type":"string"},"versionId":{"description":"A published version of it. Defaults to the current one","type":"string"},"document":{"description":"A one-off document to upload instead (§3.3). Returns a presigned PUT: PUT the bytes, confirm, lay it out, then send","type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":255},"mime":{"description":"Content type; the PUT must send exactly this","type":"string","maxLength":200,"pattern":"^[\\w.+-]+\\/[\\w.+-]+$"},"size":{"type":"integer","minimum":1,"maximum":104857600}},"required":["name","size"]},"documentName":{"description":"A one-off document's name. Defaults to its file name","type":"string","minLength":1,"maxLength":160},"entityId":{"description":"The entity it's for. Unset: the first recipient's, matched by email domain","type":["string","null"]},"recipients":{"description":"A name and email for each recipient role. Required roles must be filled to send; an optional role left out isn't part of the signing. On a one-off document, each recipient is a role","maxItems":10,"type":"array","items":{"type":"object","properties":{"roleKey":{"description":"The role they sign as. Required for a template. For a one-off document, any key (anchors use it); unset, they're numbered signer_1, signer_2, …","type":"string","maxLength":40},"email":{"type":"string","maxLength":254},"name":{"type":"string","maxLength":120}},"required":["email","name"]}},"countersigners":{"description":"Narrow a countersigner role to one eligible member for this request. On a one-off document, each one adds a countersigner role for that member (“I also sign”), keyed `sender` unless given","maxItems":10,"type":"array","items":{"type":"object","properties":{"roleKey":{"type":"string","maxLength":40},"userId":{"type":"string"}},"required":["userId"]}},"observers":{"description":"People who get updates and the executed PDF without signing. Defaults to the agreement's","maxItems":10,"type":"array","items":{"type":"object","properties":{"email":{"type":"string","format":"email","pattern":"^(?:[A-Za-z0-9_'+\\-]+\\.)*[A-Za-z0-9_'+\\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"},"name":{"type":"string","maxLength":120},"notify":{"default":"completion","description":"`completion`: one email once it's signed. `all`: every update","type":"string","enum":["completion","all"]}},"required":["email"]}},"subject":{"description":"The invitation's subject. Unset: “{workspace} sent you {document} to sign”","anyOf":[{"type":"string","maxLength":200},{"type":"null"}]},"message":{"description":"Plain text shown in the invitation, the reminders, and the signing page","anyOf":[{"type":"string","maxLength":2000},{"type":"null"}]},"locale":{"description":"The language of its emails, signing page, and certificate for recipients with none of their own (`en`, `es`, `pt`); null follows the workspace's default","anyOf":[{"type":"string","enum":["en","es","pt"]},{"type":"null"}]},"expiresInDays":{"description":"Days from sending until it expires (default 30)","type":"integer","minimum":1,"maximum":365},"reminderDays":{"description":"Days between reminders to pending recipients, 0 for none (default 3)","type":"integer","minimum":0,"maximum":30},"steps":{"description":"Sign in order (§4): each role's step, from 1. Roles at the same step sign at the same time, countersigners included, and a role left out signs after the rest. null: parallel, every recipient and then every countersigner. Unset on a template: its roles' default steps","anyOf":[{"maxItems":10,"type":"array","items":{"type":"object","properties":{"roleKey":{"type":"string","maxLength":40},"step":{"type":"integer","minimum":1,"maximum":10}},"required":["roleKey","step"]}},{"type":"null"}]},"variables":{"description":"Templates: values for the sender's variables, by key (§5.2). Merged into the draft's; an empty string clears one, null clears them all. Required ones must be filled, and every value must pass its validation, to send","anyOf":[{"type":"object","propertyNames":{"type":"string","maxLength":40},"additionalProperties":{"type":"string","maxLength":2000}},{"type":"null"}]},"handOff":{"description":"Whether a recipient can pass their part to someone else to sign in their place (§15). Default true","type":"boolean"},"send":{"description":"Send it now instead of saving a draft. Not for a document that still has to be uploaded","type":"boolean"}}}}}},"x-idempotency":"Send an Idempotency-Key header to make retries safe. Keys are kept for 24 hours.","responses":{"201":{"description":"Success","content":{"application/json":{}}},"default":{"$ref":"#/components/responses/Error"}}}},"/signings/{signingId}":{"get":{"operationId":"signings.get","tags":["Signings"],"summary":"A signing with its parties, their evidence (verification, IP, consent), and field values","parameters":[{"name":"signingId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Success","content":{"application/json":{}}},"default":{"$ref":"#/components/responses/Error"}}},"patch":{"operationId":"signings.updateDraft","tags":["Signings"],"summary":"Change a draft signature request","parameters":[{"name":"signingId","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"versionId":{"description":"Switch to another published version","type":"string"},"document":{"description":"One-off documents: upload a different file instead. Returns a presigned PUT, and the fields start again","type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":255},"mime":{"description":"Content type; the PUT must send exactly this","type":"string","maxLength":200,"pattern":"^[\\w.+-]+\\/[\\w.+-]+$"},"size":{"type":"integer","minimum":1,"maximum":104857600}},"required":["name","size"]},"documentName":{"description":"One-off documents: rename it","type":"string","minLength":1,"maxLength":160},"entityId":{"description":"The entity it's for. Unset: the first recipient's, matched by email domain","type":["string","null"]},"recipients":{"description":"A name and email for each recipient role. Required roles must be filled to send; an optional role left out isn't part of the signing. On a one-off document, each recipient is a role","maxItems":10,"type":"array","items":{"type":"object","properties":{"roleKey":{"description":"The role they sign as. Required for a template. For a one-off document, any key (anchors use it); unset, they're numbered signer_1, signer_2, …","type":"string","maxLength":40},"email":{"type":"string","maxLength":254},"name":{"type":"string","maxLength":120}},"required":["email","name"]}},"countersigners":{"description":"Narrow a countersigner role to one eligible member for this request. On a one-off document, each one adds a countersigner role for that member (“I also sign”), keyed `sender` unless given","maxItems":10,"type":"array","items":{"type":"object","properties":{"roleKey":{"type":"string","maxLength":40},"userId":{"type":"string"}},"required":["userId"]}},"observers":{"description":"People who get updates and the executed PDF without signing. Defaults to the agreement's","maxItems":10,"type":"array","items":{"type":"object","properties":{"email":{"type":"string","format":"email","pattern":"^(?:[A-Za-z0-9_'+\\-]+\\.)*[A-Za-z0-9_'+\\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"},"name":{"type":"string","maxLength":120},"notify":{"default":"completion","description":"`completion`: one email once it's signed. `all`: every update","type":"string","enum":["completion","all"]}},"required":["email"]}},"subject":{"description":"The invitation's subject. Unset: “{workspace} sent you {document} to sign”","anyOf":[{"type":"string","maxLength":200},{"type":"null"}]},"message":{"description":"Plain text shown in the invitation, the reminders, and the signing page","anyOf":[{"type":"string","maxLength":2000},{"type":"null"}]},"locale":{"description":"The language of its emails, signing page, and certificate for recipients with none of their own (`en`, `es`, `pt`); null follows the workspace's default","anyOf":[{"type":"string","enum":["en","es","pt"]},{"type":"null"}]},"expiresInDays":{"description":"Days from sending until it expires (default 30)","type":"integer","minimum":1,"maximum":365},"reminderDays":{"description":"Days between reminders to pending recipients, 0 for none (default 3)","type":"integer","minimum":0,"maximum":30},"steps":{"description":"Sign in order (§4): each role's step, from 1. Roles at the same step sign at the same time, countersigners included, and a role left out signs after the rest. null: parallel, every recipient and then every countersigner. Unset on a template: its roles' default steps","anyOf":[{"maxItems":10,"type":"array","items":{"type":"object","properties":{"roleKey":{"type":"string","maxLength":40},"step":{"type":"integer","minimum":1,"maximum":10}},"required":["roleKey","step"]}},{"type":"null"}]},"variables":{"description":"Templates: values for the sender's variables, by key (§5.2). Merged into the draft's; an empty string clears one, null clears them all. Required ones must be filled, and every value must pass its validation, to send","anyOf":[{"type":"object","propertyNames":{"type":"string","maxLength":40},"additionalProperties":{"type":"string","maxLength":2000}},{"type":"null"}]},"handOff":{"description":"Whether a recipient can pass their part to someone else to sign in their place (§15). Default true","type":"boolean"}}}}}},"x-idempotency":"Send an Idempotency-Key header to make retries safe. Keys are kept for 24 hours.","responses":{"200":{"description":"Success","content":{"application/json":{}}},"default":{"$ref":"#/components/responses/Error"}}},"delete":{"operationId":"signings.deleteDraft","tags":["Signings"],"summary":"Delete a draft signature request","parameters":[{"name":"signingId","in":"path","required":true,"schema":{"type":"string"}}],"x-idempotency":"Send an Idempotency-Key header to make retries safe. Keys are kept for 24 hours.","responses":{"200":{"description":"Success","content":{"application/json":{}}},"default":{"$ref":"#/components/responses/Error"}}}},"/signings/{signingId}/events":{"get":{"operationId":"signings.events","tags":["Signings"],"summary":"A signing's raw events (opened, reviewed, signed…), newest first","parameters":[{"name":"signingId","in":"path","required":true,"schema":{"type":"string"}},{"name":"cursor","in":"query","required":false,"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","description":"Opaque cursor from a previous page's `nextCursor`","type":"string"},"description":"Opaque cursor from a previous page's `nextCursor`"},{"name":"limit","in":"query","required":false,"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","description":"Page size, 1–100 (default 50)","type":"integer","minimum":1,"maximum":100},"description":"Page size, 1–100 (default 50)"}],"responses":{"200":{"description":"Success","content":{"application/json":{}}},"default":{"$ref":"#/components/responses/Error"}}}},"/signings/{signingId}/void":{"post":{"operationId":"signings.void","tags":["Signings"],"summary":"Cancel a signing that hasn't completed, with a reason","parameters":[{"name":"signingId","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"reason":{"type":"string","minLength":1,"maxLength":500}},"required":["reason"]}}}},"x-idempotency":"Send an Idempotency-Key header to make retries safe. Keys are kept for 24 hours.","responses":{"200":{"description":"Success","content":{"application/json":{}}},"default":{"$ref":"#/components/responses/Error"}}}},"/signings/{signingId}/parties/{partyId}/resend":{"post":{"operationId":"signings.resendInvite","tags":["Signings"],"summary":"Email a pending recipient a new personal signing link","parameters":[{"name":"signingId","in":"path","required":true,"schema":{"type":"string"}},{"name":"partyId","in":"path","required":true,"schema":{"type":"string"}}],"x-idempotency":"Send an Idempotency-Key header to make retries safe. Keys are kept for 24 hours.","responses":{"200":{"description":"Success","content":{"application/json":{}}},"default":{"$ref":"#/components/responses/Error"}}}},"/signings/{signingId}/executed-pdf":{"post":{"operationId":"signings.executedPdfUrl","tags":["Signings"],"summary":"A presigned URL (60s) for the executed PDF: sealed, with the certificate of completion","parameters":[{"name":"signingId","in":"path","required":true,"schema":{"type":"string"}}],"x-idempotency":"Send an Idempotency-Key header to make retries safe. Keys are kept for 24 hours.","responses":{"200":{"description":"Success","content":{"application/json":{}}},"default":{"$ref":"#/components/responses/Error"}}}},"/signings/{signingId}/retry-seal":{"post":{"operationId":"signings.retrySeal","tags":["Signings"],"summary":"Retry sealing a completed signing whose seal failed","parameters":[{"name":"signingId","in":"path","required":true,"schema":{"type":"string"}}],"x-idempotency":"Send an Idempotency-Key header to make retries safe. Keys are kept for 24 hours.","responses":{"200":{"description":"Success","content":{"application/json":{}}},"default":{"$ref":"#/components/responses/Error"}}}},"/signings/{signingId}/confirm-upload":{"post":{"operationId":"signings.confirmExternal","tags":["Signings"],"summary":"Confirm an external agreement's PDF was uploaded; it's recorded as completed once verified","parameters":[{"name":"signingId","in":"path","required":true,"schema":{"type":"string"}}],"x-idempotency":"Send an Idempotency-Key header to make retries safe. Keys are kept for 24 hours.","responses":{"200":{"description":"Success","content":{"application/json":{}}},"default":{"$ref":"#/components/responses/Error"}}}},"/signings/{signingId}/send":{"post":{"operationId":"signings.send","tags":["Signings"],"summary":"Send a draft signature request to its recipients","parameters":[{"name":"signingId","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"allowOutdatedVersion":{"description":"Send the draft's version even though a newer one was published. Without it, that's a 409 with `reason: version_changed`","type":"boolean"}}}}}},"x-idempotency":"Send an Idempotency-Key header to make retries safe. Keys are kept for 24 hours.","responses":{"200":{"description":"Success","content":{"application/json":{}}},"default":{"$ref":"#/components/responses/Error"}}}},"/signings/{signingId}/document/confirm":{"post":{"operationId":"signings.confirmDocument","tags":["Signings"],"summary":"Confirm a one-off document finished uploading; it's processed, and its anchors found","parameters":[{"name":"signingId","in":"path","required":true,"schema":{"type":"string"}}],"x-idempotency":"Send an Idempotency-Key header to make retries safe. Keys are kept for 24 hours.","responses":{"200":{"description":"Success","content":{"application/json":{}}},"default":{"$ref":"#/components/responses/Error"}}}},"/signings/{signingId}/layout":{"put":{"operationId":"signings.layout","tags":["Signings"],"summary":"Lay out a draft's uploaded document: its fields, fields from its anchors, or a signature page","parameters":[{"name":"signingId","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"fields":{"description":"Every field, each for a recipient's or countersigner's role key","maxItems":500,"type":"array","items":{"type":"object","properties":{"id":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,40}$"},"type":{"type":"string","enum":["signature","initials","name","email","company","title","date_signed","text","checkbox","variable"]},"roleKey":{"type":"string"},"page":{"type":"integer","minimum":1,"maximum":9007199254740991},"x":{"type":"number","minimum":0,"maximum":1},"y":{"type":"number","minimum":0,"maximum":1},"width":{"type":"number","exclusiveMinimum":0,"maximum":1},"height":{"type":"number","exclusiveMinimum":0,"maximum":1},"required":{"type":"boolean"},"prefill":{"type":"string","maxLength":200},"label":{"type":"string","maxLength":80},"variableKey":{"description":"`variable` fields: the variable shown here, declared on the version or built in (SIGNATURE_REQUESTS §5.2)","type":"string","maxLength":80},"anchor":{"description":"Placed from this anchor, `<type>:<key>:<n>` (SIGNATURE_REQUESTS §5.4). Required on every field of a Word template with placeholders","type":"string","maxLength":100}},"required":["id","type","roleKey","page","x","y","width","height","required"]}},"useAnchors":{"description":"Place fields where the document's anchors are, such as {{signature:client}}, replacing any placed","type":"boolean","const":true},"signaturePage":{"anyOf":[{"anyOf":[{"type":"boolean"},{"type":"object","properties":{"title":{"default":false,"type":"boolean"},"company":{"default":false,"type":"boolean"}}}]},{"type":"null"}],"description":"A page at the end with a block for each party: signature, name, and date signed, plus title and company when asked for. `false` or null removes it"}}}}}},"x-idempotency":"Send an Idempotency-Key header to make retries safe. Keys are kept for 24 hours.","responses":{"200":{"description":"Success","content":{"application/json":{}}},"default":{"$ref":"#/components/responses/Error"}}}},"/signings/{signingId}/duplicate":{"post":{"operationId":"signings.duplicate","tags":["Signings"],"summary":"Start a new draft from a signature request","parameters":[{"name":"signingId","in":"path","required":true,"schema":{"type":"string"}}],"x-idempotency":"Send an Idempotency-Key header to make retries safe. Keys are kept for 24 hours.","responses":{"201":{"description":"Success","content":{"application/json":{}}},"default":{"$ref":"#/components/responses/Error"}}}},"/signings/{signingId}/parties/{partyId}":{"patch":{"operationId":"signings.updateParty","tags":["Signings"],"summary":"Correct the name or email of a recipient who hasn't signed. A new email gets a fresh invitation, or one when their step starts; the old links stop working","parameters":[{"name":"signingId","in":"path","required":true,"schema":{"type":"string"}},{"name":"partyId","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":120},"email":{"type":"string","format":"email","pattern":"^(?:[A-Za-z0-9_'+\\-]+\\.)*[A-Za-z0-9_'+\\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"}}}}}},"x-idempotency":"Send an Idempotency-Key header to make retries safe. Keys are kept for 24 hours.","responses":{"200":{"description":"Success","content":{"application/json":{}}},"default":{"$ref":"#/components/responses/Error"}}}},"/signings/{signingId}/extend":{"post":{"operationId":"signings.extend","tags":["Signings"],"summary":"Give a signing in progress more time before it expires","parameters":[{"name":"signingId","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"expiresAt":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"The new expiry, ms since epoch. Later than the current one, within a year"}},"required":["expiresAt"]}}}},"x-idempotency":"Send an Idempotency-Key header to make retries safe. Keys are kept for 24 hours.","responses":{"200":{"description":"Success","content":{"application/json":{}}},"default":{"$ref":"#/components/responses/Error"}}}},"/signings/{signingId}/observers":{"post":{"operationId":"signings.observers.add","tags":["Signings"],"summary":"Add an observer: updates and the executed PDF, without signing","parameters":[{"name":"signingId","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"email":{"type":"string","format":"email","pattern":"^(?:[A-Za-z0-9_'+\\-]+\\.)*[A-Za-z0-9_'+\\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"},"name":{"type":"string","maxLength":120},"notify":{"default":"completion","description":"`completion`: one email once it's signed. `all`: every update","type":"string","enum":["completion","all"]}},"required":["email"]}}}},"x-idempotency":"Send an Idempotency-Key header to make retries safe. Keys are kept for 24 hours.","responses":{"201":{"description":"Success","content":{"application/json":{}}},"default":{"$ref":"#/components/responses/Error"}}}},"/signings/{signingId}/observers/{observerId}":{"delete":{"operationId":"signings.observers.remove","tags":["Signings"],"summary":"Remove an observer. Their link to the executed PDF stops working","parameters":[{"name":"signingId","in":"path","required":true,"schema":{"type":"string"}},{"name":"observerId","in":"path","required":true,"schema":{"type":"string"}}],"x-idempotency":"Send an Idempotency-Key header to make retries safe. Keys are kept for 24 hours.","responses":{"200":{"description":"Success","content":{"application/json":{}}},"default":{"$ref":"#/components/responses/Error"}}}},"/entities":{"get":{"operationId":"entities.list","tags":["Entities"],"summary":"List entities by name, by most recent activity, or by engagement","parameters":[{"name":"cursor","in":"query","required":false,"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","description":"Opaque cursor from a previous page's `nextCursor`","type":"string"},"description":"Opaque cursor from a previous page's `nextCursor`"},{"name":"limit","in":"query","required":false,"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","description":"Page size, 1–100 (default 50)","type":"integer","minimum":1,"maximum":100},"description":"Page size, 1–100 (default 50)"},{"name":"q","in":"query","required":false,"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","description":"Search by name","type":"string","maxLength":100},"description":"Search by name"},{"name":"type","in":"query","required":false,"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"string","enum":["company","fund","bank","institution","individual","other"]}},{"name":"sort","in":"query","required":false,"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","description":"By name (default), most recently active first, or most engaged first","type":"string","enum":["name","activity","engagement"]},"description":"By name (default), most recently active first, or most engaged first"}],"responses":{"200":{"description":"Success","content":{"application/json":{}}},"default":{"$ref":"#/components/responses/Error"}}},"post":{"operationId":"entities.create","tags":["Entities"],"summary":"Create an entity, optionally with its email domains","requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":120},"type":{"default":"company","type":"string","enum":["company","fund","bank","institution","individual","other"]},"domains":{"description":"Email domains; visitors on them are attributed to the entity","maxItems":20,"type":"array","items":{"type":"string","minLength":1,"maxLength":255,"description":"An email domain, e.g. `sequoia.com`"}},"tags":{"maxItems":20,"type":"array","items":{"type":"string","minLength":1,"maxLength":40}},"notes":{"type":"string","maxLength":5000},"ownerId":{"description":"The member who looks after the relationship; defaults to the creator","type":"string"}},"required":["name"]}}}},"x-idempotency":"Send an Idempotency-Key header to make retries safe. Keys are kept for 24 hours.","responses":{"201":{"description":"Success","content":{"application/json":{}}},"default":{"$ref":"#/components/responses/Error"}}}},"/entities/{entityId}":{"get":{"operationId":"entities.get","tags":["Entities"],"summary":"An entity with its domains, signatories, and how many links and signings it has","parameters":[{"name":"entityId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Success","content":{"application/json":{}}},"default":{"$ref":"#/components/responses/Error"}}},"patch":{"operationId":"entities.update","tags":["Entities"],"summary":"Rename an entity or change its type, tags, notes, or owner","parameters":[{"name":"entityId","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":120},"type":{"type":"string","enum":["company","fund","bank","institution","individual","other"]},"tags":{"maxItems":20,"type":"array","items":{"type":"string","minLength":1,"maxLength":40}},"notes":{"anyOf":[{"type":"string","maxLength":5000},{"type":"null"}]},"ownerId":{"type":["string","null"]}}}}}},"x-idempotency":"Send an Idempotency-Key header to make retries safe. Keys are kept for 24 hours.","responses":{"200":{"description":"Success","content":{"application/json":{}}},"default":{"$ref":"#/components/responses/Error"}}},"delete":{"operationId":"entities.delete","tags":["Entities"],"summary":"Delete an entity. Its contacts and links stay, without an entity; signings keep their history","parameters":[{"name":"entityId","in":"path","required":true,"schema":{"type":"string"}}],"x-idempotency":"Send an Idempotency-Key header to make retries safe. Keys are kept for 24 hours.","responses":{"200":{"description":"Success","content":{"application/json":{}}},"default":{"$ref":"#/components/responses/Error"}}}},"/entities/{entityId}/sessions":{"get":{"operationId":"entities.sessions","tags":["Entities"],"summary":"Recent visits by the entity's contacts across every link, newest first","parameters":[{"name":"entityId","in":"path","required":true,"schema":{"type":"string"}},{"name":"limit","in":"query","required":false,"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"integer","minimum":1,"maximum":100}}],"responses":{"200":{"description":"Success","content":{"application/json":{}}},"default":{"$ref":"#/components/responses/Error"}}}},"/entities/{entityId}/documents":{"get":{"operationId":"entities.documents","tags":["Entities"],"summary":"The documents an entity's contacts spent the most time on (§7.2 focus documents)","parameters":[{"name":"entityId","in":"path","required":true,"schema":{"type":"string"}},{"name":"limit","in":"query","required":false,"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"integer","minimum":1,"maximum":100}}],"responses":{"200":{"description":"Success","content":{"application/json":{}}},"default":{"$ref":"#/components/responses/Error"}}}},"/entities/{entityId}/domains":{"post":{"operationId":"entities.domains.add","tags":["Entities"],"summary":"Add an email domain. Contacts already on it are attributed to the entity","parameters":[{"name":"entityId","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"domain":{"type":"string","minLength":1,"maxLength":255,"description":"An email domain, e.g. `sequoia.com`"}},"required":["domain"]}}}},"x-idempotency":"Send an Idempotency-Key header to make retries safe. Keys are kept for 24 hours.","responses":{"201":{"description":"Success","content":{"application/json":{}}},"default":{"$ref":"#/components/responses/Error"}}}},"/entities/{entityId}/domains/{domain}":{"delete":{"operationId":"entities.domains.remove","tags":["Entities"],"summary":"Remove an email domain. Contacts matched through it are no longer attributed to the entity","parameters":[{"name":"entityId","in":"path","required":true,"schema":{"type":"string"}},{"name":"domain","in":"path","required":true,"schema":{"type":"string"}}],"x-idempotency":"Send an Idempotency-Key header to make retries safe. Keys are kept for 24 hours.","responses":{"200":{"description":"Success","content":{"application/json":{}}},"default":{"$ref":"#/components/responses/Error"}}}},"/contacts":{"get":{"operationId":"contacts.list","tags":["Contacts"],"summary":"List contacts, most recently seen or most engaged first","parameters":[{"name":"cursor","in":"query","required":false,"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","description":"Opaque cursor from a previous page's `nextCursor`","type":"string"},"description":"Opaque cursor from a previous page's `nextCursor`"},{"name":"limit","in":"query","required":false,"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","description":"Page size, 1–100 (default 50)","type":"integer","minimum":1,"maximum":100},"description":"Page size, 1–100 (default 50)"},{"name":"entityId","in":"query","required":false,"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","description":"Only this entity's contacts","type":"string"},"description":"Only this entity's contacts"},{"name":"unassigned","in":"query","required":false,"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","description":"Only contacts without an entity","anyOf":[{"type":"boolean"},{"type":"string","enum":["true","false"]}]},"description":"Only contacts without an entity"},{"name":"q","in":"query","required":false,"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","description":"Search by name or email","type":"string","maxLength":100},"description":"Search by name or email"},{"name":"sort","in":"query","required":false,"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","description":"Most recently seen first (default), or most engaged first","type":"string","enum":["recent","engagement"]},"description":"Most recently seen first (default), or most engaged first"}],"responses":{"200":{"description":"Success","content":{"application/json":{}}},"default":{"$ref":"#/components/responses/Error"}}},"post":{"operationId":"contacts.create","tags":["Contacts"],"summary":"Add a contact by email","requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"email":{"type":"string","maxLength":254},"name":{"type":"string","maxLength":120},"title":{"type":"string","maxLength":120},"entityId":{"description":"Otherwise the entity is matched by email domain","type":"string"},"locale":{"description":"The language they get emails and pages in (`en`, `es`, `pt`)","type":"string","enum":["en","es","pt"]}},"required":["email"]}}}},"x-idempotency":"Send an Idempotency-Key header to make retries safe. Keys are kept for 24 hours.","responses":{"201":{"description":"Success","content":{"application/json":{}}},"default":{"$ref":"#/components/responses/Error"}}}},"/contacts/{contactId}":{"get":{"operationId":"contacts.get","tags":["Contacts"],"summary":"A contact with their entity, signatory status, and what they've signed","parameters":[{"name":"contactId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Success","content":{"application/json":{}}},"default":{"$ref":"#/components/responses/Error"}}},"patch":{"operationId":"contacts.update","tags":["Contacts"],"summary":"Edit a contact, their language, or move them to another entity","parameters":[{"name":"contactId","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"name":{"anyOf":[{"type":"string","maxLength":120},{"type":"null"}]},"title":{"anyOf":[{"type":"string","maxLength":120},{"type":"null"}]},"notes":{"anyOf":[{"type":"string","maxLength":5000},{"type":"null"}]},"entityId":{"description":"An entity id, `null` to take the contact out of any entity, or `auto` to match by email domain again","type":["string","null"]},"locale":{"description":"The language they get emails and pages in (`en`, `es`, `pt`); null clears it. A language the contact chose themselves isn't replaced, only cleared","anyOf":[{"type":"string","enum":["en","es","pt"]},{"type":"null"}]}}}}}},"x-idempotency":"Send an Idempotency-Key header to make retries safe. Keys are kept for 24 hours.","responses":{"200":{"description":"Success","content":{"application/json":{}}},"default":{"$ref":"#/components/responses/Error"}}}},"/contacts/{contactId}/sessions":{"get":{"operationId":"contacts.sessions","tags":["Contacts"],"summary":"A contact's visits across every link, newest first","parameters":[{"name":"contactId","in":"path","required":true,"schema":{"type":"string"}},{"name":"cursor","in":"query","required":false,"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","description":"Opaque cursor from a previous page's `nextCursor`","type":"string"},"description":"Opaque cursor from a previous page's `nextCursor`"},{"name":"limit","in":"query","required":false,"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","description":"Page size, 1–100 (default 50)","type":"integer","minimum":1,"maximum":100},"description":"Page size, 1–100 (default 50)"}],"responses":{"200":{"description":"Success","content":{"application/json":{}}},"default":{"$ref":"#/components/responses/Error"}}}},"/contacts/{contactId}/timeline":{"get":{"operationId":"contacts.timeline","tags":["Contacts"],"summary":"A contact's updates, visits, and signings as one timeline, newest first","parameters":[{"name":"contactId","in":"path","required":true,"schema":{"type":"string"}},{"name":"limit","in":"query","required":false,"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"integer","minimum":1,"maximum":100}}],"responses":{"200":{"description":"Success","content":{"application/json":{}}},"default":{"$ref":"#/components/responses/Error"}}}},"/contacts/{contactId}/documents":{"get":{"operationId":"contacts.documents","tags":["Contacts"],"summary":"The documents a contact spent the most time on (§7.2 focus documents)","parameters":[{"name":"contactId","in":"path","required":true,"schema":{"type":"string"}},{"name":"limit","in":"query","required":false,"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"integer","minimum":1,"maximum":100}}],"responses":{"200":{"description":"Success","content":{"application/json":{}}},"default":{"$ref":"#/components/responses/Error"}}}},"/contacts/{contactId}/signatory":{"put":{"operationId":"contacts.signatory.set","tags":["Contacts"],"summary":"Mark a contact as an authorized signatory for their entity, or revoke it. Revoking withdraws the entity coverage their signings gave","parameters":[{"name":"contactId","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"authorized":{"type":"boolean","description":"true marks them an authorized signatory for their entity; false revokes it"}},"required":["authorized"]}}}},"x-idempotency":"Send an Idempotency-Key header to make retries safe. Keys are kept for 24 hours.","responses":{"200":{"description":"Success","content":{"application/json":{}}},"default":{"$ref":"#/components/responses/Error"}}}},"/contacts/{contactId}/update-alerts":{"put":{"operationId":"contacts.updateAlerts.set","tags":["Contacts"],"summary":"Hear when a contact opens an update, e.g. a lead investor (INVESTOR_UPDATES §9.3)","parameters":[{"name":"contactId","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"on":{"type":"boolean","description":"true emails an update's sender, and adds an alert, when this person first opens it"}},"required":["on"]}}}},"x-idempotency":"Send an Idempotency-Key header to make retries safe. Keys are kept for 24 hours.","responses":{"200":{"description":"Success","content":{"application/json":{}}},"default":{"$ref":"#/components/responses/Error"}}}},"/contacts/{contactId}/export":{"post":{"operationId":"contacts.export","tags":["Contacts"],"summary":"Start a ZIP of everything held about a contact: profile, visits, events, alerts, emails, and executed agreements, as JSON, CSV, and PDF. Poll the archive, then download it","parameters":[{"name":"contactId","in":"path","required":true,"schema":{"type":"string"}}],"x-idempotency":"Send an Idempotency-Key header to make retries safe. Keys are kept for 24 hours.","responses":{"202":{"description":"Success","content":{"application/json":{}}},"default":{"$ref":"#/components/responses/Error"}}}},"/contacts/{contactId}/erase":{"post":{"operationId":"contacts.erase","tags":["Contacts"],"summary":"Erase a contact's personal data: their visits, events, alerts, and emails go, and their email is removed from the audit log. Agreements they completed are kept as evidence. Runs in the background","parameters":[{"name":"contactId","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"confirmEmail":{"type":"string","description":"The contact's email, typed to confirm"}},"required":["confirmEmail"]}}}},"x-idempotency":"Send an Idempotency-Key header to make retries safe. Keys are kept for 24 hours.","responses":{"202":{"description":"Success","content":{"application/json":{}}},"default":{"$ref":"#/components/responses/Error"}}}},"/update-lists":{"get":{"operationId":"updateLists.list","tags":["Update lists"],"summary":"Every update list, by name, with how many people are on it","responses":{"200":{"description":"Success","content":{"application/json":{}}},"default":{"$ref":"#/components/responses/Error"}}},"post":{"operationId":"updateLists.create","tags":["Update lists"],"summary":"Create an update list","requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":80},"description":{"anyOf":[{"type":"string","maxLength":500},{"type":"null"}]},"defaultSenderId":{"description":"The member updates to this list come from by default. Unset: whoever sends it","type":["string","null"]},"archiveDefault":{"description":"Which past updates someone gets when they join (§8.2): `none` (default), the last `archiveLastN`, or `all`","type":"string","enum":["none","last_n","all"]},"archiveLastN":{"description":"With `archiveDefault: last_n`: how many (default 6)","type":"integer","minimum":1,"maximum":100},"reminders":{"description":"Remind the list's sender when its next update looks due, from how often it's sent (§5.5). Default on","type":"boolean"}},"required":["name"]}}}},"x-idempotency":"Send an Idempotency-Key header to make retries safe. Keys are kept for 24 hours.","responses":{"201":{"description":"Success","content":{"application/json":{}}},"default":{"$ref":"#/components/responses/Error"}}}},"/update-lists/{listId}":{"get":{"operationId":"updateLists.get","tags":["Update lists"],"summary":"An update list","parameters":[{"name":"listId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Success","content":{"application/json":{}}},"default":{"$ref":"#/components/responses/Error"}}},"patch":{"operationId":"updateLists.update","tags":["Update lists"],"summary":"Rename an update list, or change its default sender or archive access","parameters":[{"name":"listId","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":80},"description":{"anyOf":[{"type":"string","maxLength":500},{"type":"null"}]},"defaultSenderId":{"description":"The member updates to this list come from by default. Unset: whoever sends it","type":["string","null"]},"archiveDefault":{"description":"Which past updates someone gets when they join (§8.2): `none` (default), the last `archiveLastN`, or `all`","type":"string","enum":["none","last_n","all"]},"archiveLastN":{"description":"With `archiveDefault: last_n`: how many (default 6)","type":"integer","minimum":1,"maximum":100},"reminders":{"description":"Remind the list's sender when its next update looks due, from how often it's sent (§5.5). Default on","type":"boolean"}}}}}},"x-idempotency":"Send an Idempotency-Key header to make retries safe. Keys are kept for 24 hours.","responses":{"200":{"description":"Success","content":{"application/json":{}}},"default":{"$ref":"#/components/responses/Error"}}},"delete":{"operationId":"updateLists.delete","tags":["Update lists"],"summary":"Delete an update list and its members. The contacts stay, and nobody is told","parameters":[{"name":"listId","in":"path","required":true,"schema":{"type":"string"}}],"x-idempotency":"Send an Idempotency-Key header to make retries safe. Keys are kept for 24 hours.","responses":{"200":{"description":"Success","content":{"application/json":{}}},"default":{"$ref":"#/components/responses/Error"}}}},"/update-lists/{listId}/members":{"get":{"operationId":"updateLists.members.list","tags":["Update lists"],"summary":"The people on a list, newest first, or those who unsubscribed or were removed","parameters":[{"name":"listId","in":"path","required":true,"schema":{"type":"string"}},{"name":"status","in":"query","required":false,"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","description":"Who's on the list now (default), who unsubscribed, or who was removed","type":"string","enum":["active","unsubscribed","removed"]},"description":"Who's on the list now (default), who unsubscribed, or who was removed"},{"name":"q","in":"query","required":false,"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","description":"Search by name or email","type":"string","maxLength":100},"description":"Search by name or email"},{"name":"cursor","in":"query","required":false,"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","description":"Opaque cursor from a previous page's `nextCursor`","type":"string"},"description":"Opaque cursor from a previous page's `nextCursor`"},{"name":"limit","in":"query","required":false,"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","description":"Page size, 1–100 (default 50)","type":"integer","minimum":1,"maximum":100},"description":"Page size, 1–100 (default 50)"}],"responses":{"200":{"description":"Success","content":{"application/json":{}}},"default":{"$ref":"#/components/responses/Error"}}},"post":{"operationId":"updateLists.members.add","tags":["Update lists"],"summary":"Add people to a list by email, or everyone at an entity. Sends nothing. People who unsubscribed can't be added back this way","parameters":[{"name":"listId","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"members":{"description":"People to add, up to 200 at a time","maxItems":200,"type":"array","items":{"type":"object","properties":{"email":{"type":"string","maxLength":254},"name":{"type":"string","maxLength":120},"entity":{"description":"An entity's name. A new name creates the entity. Only used for people who don't have one yet","type":"string","maxLength":120}},"required":["email"]}},"entityId":{"description":"Add everyone who's a contact at this entity now (up to 500). People who join it later aren't added","type":"string"},"archive":{"description":"Past updates sent to the list that the people added get, with one email each (§8.2). Unset: the list's default","type":"string","enum":["none","last_n","all"]},"archiveLastN":{"description":"With `archive: last_n`: how many (default 6)","type":"integer","minimum":1,"maximum":100},"dryRun":{"description":"Only say what would happen: who'd be added, who's already on it, who unsubscribed, and what's invalid","type":"boolean"}}}}}},"x-idempotency":"Send an Idempotency-Key header to make retries safe. Keys are kept for 24 hours.","responses":{"200":{"description":"Success","content":{"application/json":{}}},"default":{"$ref":"#/components/responses/Error"}}}},"/update-lists/{listId}/reading":{"get":{"operationId":"updateLists.reading","tags":["Update lists"],"summary":"The people on a list against the last 6 updates sent to it, and how each of them read each one","parameters":[{"name":"listId","in":"path","required":true,"schema":{"type":"string"}},{"name":"cursor","in":"query","required":false,"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","description":"Opaque cursor from a previous page's `nextCursor`","type":"string"},"description":"Opaque cursor from a previous page's `nextCursor`"},{"name":"limit","in":"query","required":false,"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","description":"Page size, 1–100 (default 50)","type":"integer","minimum":1,"maximum":100},"description":"Page size, 1–100 (default 50)"}],"responses":{"200":{"description":"Success","content":{"application/json":{}}},"default":{"$ref":"#/components/responses/Error"}}}},"/update-lists/{listId}/members/{contactId}":{"delete":{"operationId":"updateLists.members.remove","tags":["Update lists"],"summary":"Take someone off a list. They get nothing sent to it from now on, and can be added back. `revokePast` also closes what they already got","parameters":[{"name":"listId","in":"path","required":true,"schema":{"type":"string"}},{"name":"contactId","in":"path","required":true,"schema":{"type":"string"}},{"name":"revokePast","in":"query","required":false,"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","description":"Also revoke the updates they got through this list (§4.3), except any they also got through a list they're still on","type":"boolean"},"description":"Also revoke the updates they got through this list (§4.3), except any they also got through a list they're still on"}],"x-idempotency":"Send an Idempotency-Key header to make retries safe. Keys are kept for 24 hours.","responses":{"200":{"description":"Success","content":{"application/json":{}}},"default":{"$ref":"#/components/responses/Error"}}}},"/update-lists/{listId}/members/{contactId}/reinvite":{"post":{"operationId":"updateLists.members.reinvite","tags":["Update lists"],"summary":"Email someone who unsubscribed, once, asking whether they'd like updates again. They're back on the list only if they confirm","parameters":[{"name":"listId","in":"path","required":true,"schema":{"type":"string"}},{"name":"contactId","in":"path","required":true,"schema":{"type":"string"}}],"x-idempotency":"Send an Idempotency-Key header to make retries safe. Keys are kept for 24 hours.","responses":{"200":{"description":"Success","content":{"application/json":{}}},"default":{"$ref":"#/components/responses/Error"}}}},"/contacts/{contactId}/update-lists":{"get":{"operationId":"updateLists.ofContact","tags":["Contacts"],"summary":"The update lists a contact is on, unsubscribed from, or was removed from","parameters":[{"name":"contactId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Success","content":{"application/json":{}}},"default":{"$ref":"#/components/responses/Error"}}}},"/update-lists/{listId}/reminder/dismiss":{"post":{"operationId":"updateLists.reminder.dismiss","tags":["Update lists"],"summary":"Dismiss a list's cadence reminder until its next update is due","parameters":[{"name":"listId","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"dueAt":{"type":"number","description":"The reminder's `dueAt`, from GET /updates/reminders"}},"required":["dueAt"]}}}},"x-idempotency":"Send an Idempotency-Key header to make retries safe. Keys are kept for 24 hours.","responses":{"200":{"description":"Success","content":{"application/json":{}}},"default":{"$ref":"#/components/responses/Error"}}}},"/updates":{"get":{"operationId":"updates.list","tags":["Updates"],"summary":"Updates, most recently changed first","parameters":[{"name":"cursor","in":"query","required":false,"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","description":"Opaque cursor from a previous page's `nextCursor`","type":"string"},"description":"Opaque cursor from a previous page's `nextCursor`"},{"name":"limit","in":"query","required":false,"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","description":"Page size, 1–100 (default 50)","type":"integer","minimum":1,"maximum":100},"description":"Page size, 1–100 (default 50)"},{"name":"status","in":"query","required":false,"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","description":"Only drafts, scheduled ones, retracted ones, or every update that was sent (newest first, retracted ones included). Unset: all","type":"string","enum":["draft","scheduled","sent","retracted"]},"description":"Only drafts, scheduled ones, retracted ones, or every update that was sent (newest first, retracted ones included). Unset: all"}],"responses":{"200":{"description":"Success","content":{"application/json":{}}},"default":{"$ref":"#/components/responses/Error"}}},"post":{"operationId":"updates.create","tags":["Updates"],"summary":"Start a draft update, from a template or blank","requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"template":{"description":"What the letter starts from (default `blank`)","type":"string","enum":["monthly","quarterly","deck","blank"]},"title":{"description":"Defaults to the month, e.g. “October 2026 update”","type":"string","minLength":1,"maxLength":160},"listIds":{"maxItems":20,"type":"array","items":{"type":"string"}}}}}}},"x-idempotency":"Send an Idempotency-Key header to make retries safe. Keys are kept for 24 hours.","responses":{"201":{"description":"Success","content":{"application/json":{}}},"default":{"$ref":"#/components/responses/Error"}}}},"/updates/portal":{"get":{"operationId":"updates.portal","tags":["Updates"],"summary":"The workspace's updates portal: where each recipient finds every update they were sent. Null until an update is sent","responses":{"200":{"description":"Success","content":{"application/json":{}}},"default":{"$ref":"#/components/responses/Error"}}}},"/updates/reminders":{"get":{"operationId":"updates.reminders","tags":["Updates"],"summary":"Lists whose next update looks due, from how often they're sent","responses":{"200":{"description":"Success","content":{"application/json":{}}},"default":{"$ref":"#/components/responses/Error"}}}},"/updates/{updateId}":{"get":{"operationId":"updates.get","tags":["Updates"],"summary":"An update with its letter and its images","parameters":[{"name":"updateId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Success","content":{"application/json":{}}},"default":{"$ref":"#/components/responses/Error"}}},"patch":{"operationId":"updates.updateDraft","tags":["Updates"],"summary":"Change a draft: its title, letter, lists, or email. A sent update being edited takes a title and letter. Refused while someone edits it in the app","parameters":[{"name":"updateId","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"title":{"type":"string","minLength":1,"maxLength":160},"doc":{"description":"The letter: the editor's JSON document, or that JSON as a string, limited to the blocks updates support (INVESTOR_UPDATES §5.2.1). It replaces the letter; the app writes the letter through its synced document instead. A KPI row is `{type: \"kpiRow\", attrs: {metrics: [keys], period?}}` and a chart `{type: \"metricChart\", attrs: {metrics, period?, count, kind: \"line\"|\"bar\"}}`; without a `period` they show the latest, and sending pins it"},"listIds":{"maxItems":20,"type":"array","items":{"type":"string"}},"email":{"type":"object","properties":{"subject":{"description":"Unset: “{workspace}: {title}”","anyOf":[{"type":"string","maxLength":200},{"type":"null"}]},"preview":{"description":"A line shown in the email above the button. It's the only part of the update the email carries, so it can be forwarded","anyOf":[{"type":"string","maxLength":200},{"type":"null"}]}}},"locale":{"description":"The language of its emails and reader for recipients with none of their own (`en`, `es`, `pt`); null follows the workspace's default. The letter is sent as written","anyOf":[{"type":"string","enum":["en","es","pt"]},{"type":"null"}]},"clientId":{"description":"The app's editor. Over the API, leave it out: a draft open in the app can't be changed","type":"string","maxLength":64}}}}}},"x-idempotency":"Send an Idempotency-Key header to make retries safe. Keys are kept for 24 hours.","responses":{"200":{"description":"Success","content":{"application/json":{}}},"default":{"$ref":"#/components/responses/Error"}}},"delete":{"operationId":"updates.delete","tags":["Updates"],"summary":"Delete a draft (a scheduled one is unscheduled), or a retracted update with who it went to. A sent update has to be retracted first","parameters":[{"name":"updateId","in":"path","required":true,"schema":{"type":"string"}}],"x-idempotency":"Send an Idempotency-Key header to make retries safe. Keys are kept for 24 hours.","responses":{"200":{"description":"Success","content":{"application/json":{}}},"default":{"$ref":"#/components/responses/Error"}}}},"/updates/{updateId}/editors":{"get":{"operationId":"updates.editors","tags":["Updates"],"summary":"Who has a draft open in the app. Writes over the API wait until they've all gone","parameters":[{"name":"updateId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Success","content":{"application/json":{}}},"default":{"$ref":"#/components/responses/Error"}}}},"/updates/{updateId}/duplicate":{"post":{"operationId":"updates.duplicate","tags":["Updates"],"summary":"Start a new draft from an update: its letter, images, and lists","parameters":[{"name":"updateId","in":"path","required":true,"schema":{"type":"string"}}],"x-idempotency":"Send an Idempotency-Key header to make retries safe. Keys are kept for 24 hours.","responses":{"201":{"description":"Success","content":{"application/json":{}}},"default":{"$ref":"#/components/responses/Error"}}}},"/updates/{updateId}/images":{"post":{"operationId":"updates.images.create","tags":["Updates"],"summary":"Start uploading an image for a draft's letter. Returns a presigned PUT; PUT the bytes, then confirm","parameters":[{"name":"updateId","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"mime":{"type":"string","enum":["image/png","image/jpeg","image/gif"]},"size":{"type":"integer","minimum":1,"maximum":10485760},"width":{"type":"integer","minimum":1,"maximum":20000},"height":{"type":"integer","minimum":1,"maximum":20000},"clientId":{"type":"string","maxLength":64}},"required":["mime","size","width","height"]}}}},"x-idempotency":"Send an Idempotency-Key header to make retries safe. Keys are kept for 24 hours.","responses":{"201":{"description":"Success","content":{"application/json":{}}},"default":{"$ref":"#/components/responses/Error"}}}},"/updates/{updateId}/images/{imageId}/confirm":{"post":{"operationId":"updates.images.confirm","tags":["Updates"],"summary":"Confirm an image finished uploading","parameters":[{"name":"updateId","in":"path","required":true,"schema":{"type":"string"}},{"name":"imageId","in":"path","required":true,"schema":{"type":"string"}}],"x-idempotency":"Send an Idempotency-Key header to make retries safe. Keys are kept for 24 hours.","responses":{"200":{"description":"Success","content":{"application/json":{}}},"default":{"$ref":"#/components/responses/Error"}}}},"/updates/{updateId}/image-urls":{"post":{"operationId":"updates.images.urls","tags":["Updates"],"summary":"Presigned URLs (15 minutes) for a draft's images","parameters":[{"name":"updateId","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"imageIds":{"minItems":1,"maxItems":100,"type":"array","items":{"type":"string"}}},"required":["imageIds"]}}}},"x-idempotency":"Send an Idempotency-Key header to make retries safe. Keys are kept for 24 hours.","responses":{"200":{"description":"Success","content":{"application/json":{}}},"default":{"$ref":"#/components/responses/Error"}}}},"/updates/{updateId}/send-review":{"get":{"operationId":"updates.sendReview","tags":["Updates"],"summary":"Whether a draft can be sent, who it would reach, and the plan's allowance","parameters":[{"name":"updateId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Success","content":{"application/json":{}}},"default":{"$ref":"#/components/responses/Error"}}}},"/updates/{updateId}/send":{"post":{"operationId":"updates.send","tags":["Updates"],"summary":"Send a draft update to its lists: each person gets an email with a personal link, never the letter itself","parameters":[{"name":"updateId","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"test":{"description":"Email only yourself, marked [Test], with a link to the preview in the app. Nothing is sent to the lists","type":"boolean"},"clientId":{"type":"string","maxLength":64},"timeZone":{"description":"Where it's sent from, as an IANA time zone, e.g. `Europe/Madrid`. The cadence reminder reads days of the month in it (default UTC)","type":"string","maxLength":64}}}}}},"x-idempotency":"Send an Idempotency-Key header to make retries safe. Keys are kept for 24 hours.","responses":{"200":{"description":"Success","content":{"application/json":{}}},"default":{"$ref":"#/components/responses/Error"}}}},"/updates/{updateId}/recipients":{"get":{"operationId":"updates.recipients.list","tags":["Updates"],"summary":"Who an update went to, most recent readers first, then those who haven't opened it","parameters":[{"name":"updateId","in":"path","required":true,"schema":{"type":"string"}},{"name":"cursor","in":"query","required":false,"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","description":"Opaque cursor from a previous page's `nextCursor`","type":"string"},"description":"Opaque cursor from a previous page's `nextCursor`"},{"name":"limit","in":"query","required":false,"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","description":"Page size, 1–100 (default 50)","type":"integer","minimum":1,"maximum":100},"description":"Page size, 1–100 (default 50)"}],"responses":{"200":{"description":"Success","content":{"application/json":{}}},"default":{"$ref":"#/components/responses/Error"}}}},"/updates/{updateId}/revision":{"get":{"operationId":"updates.revision","tags":["Updates"],"summary":"The letter as sent: its current revision, or an earlier one, with attachments pinned to their versions","parameters":[{"name":"updateId","in":"path","required":true,"schema":{"type":"string"}},{"name":"number","in":"query","required":false,"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","description":"An earlier revision. Unset: the one recipients read now","type":"integer","minimum":1,"maximum":9007199254740991},"description":"An earlier revision. Unset: the one recipients read now"}],"responses":{"200":{"description":"Success","content":{"application/json":{}}},"default":{"$ref":"#/components/responses/Error"}}}},"/updates/{updateId}/sections":{"get":{"operationId":"updates.sections","tags":["Updates"],"summary":"How far people read a sent update: readers and time per section of the letter","parameters":[{"name":"updateId","in":"path","required":true,"schema":{"type":"string"}},{"name":"number","in":"query","required":false,"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","description":"An earlier revision. Unset: the one recipients read now","type":"integer","minimum":1,"maximum":9007199254740991},"description":"An earlier revision. Unset: the one recipients read now"}],"responses":{"200":{"description":"Success","content":{"application/json":{}}},"default":{"$ref":"#/components/responses/Error"}}}},"/updates/{updateId}/schedule":{"post":{"operationId":"updates.schedule","tags":["Updates"],"summary":"Schedule a draft to send itself later, or move a scheduled update's time","parameters":[{"name":"updateId","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"at":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"When to send it, in milliseconds since the epoch: at least a minute from now, and within a year"},"clientId":{"type":"string","maxLength":64},"timeZone":{"description":"Where it's sent from, as an IANA time zone, e.g. `Europe/Madrid`. The cadence reminder reads days of the month in it (default UTC)","type":"string","maxLength":64}},"required":["at"]}}}},"x-idempotency":"Send an Idempotency-Key header to make retries safe. Keys are kept for 24 hours.","responses":{"200":{"description":"Success","content":{"application/json":{}}},"default":{"$ref":"#/components/responses/Error"}}}},"/updates/{updateId}/unschedule":{"post":{"operationId":"updates.unschedule","tags":["Updates"],"summary":"Stop a scheduled update from sending. It's a draft again","parameters":[{"name":"updateId","in":"path","required":true,"schema":{"type":"string"}}],"x-idempotency":"Send an Idempotency-Key header to make retries safe. Keys are kept for 24 hours.","responses":{"200":{"description":"Success","content":{"application/json":{}}},"default":{"$ref":"#/components/responses/Error"}}}},"/updates/{updateId}/access":{"patch":{"operationId":"updates.setAccess","tags":["Updates"],"summary":"Set when an update expires, and an agreement recipients sign before reading it","parameters":[{"name":"updateId","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"expiry":{"anyOf":[{"anyOf":[{"type":"object","properties":{"at":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["at"]},{"type":"object","properties":{"days":{"type":"integer","minimum":1,"maximum":3650}},"required":["days"]}]},{"type":"null"}],"description":"When it stops opening: `{ at }` in milliseconds since the epoch, `{ days }` after it's sent, or null for never"},"requirement":{"description":"An agreement recipients sign before the letter opens (an NDA for prospective investors), or null for none. A signing of it made anywhere counts unless `reuseScope` is `this_resource`","anyOf":[{"type":"object","properties":{"agreementId":{"type":"string","description":"The agreement visitors must have signed"},"versionPolicy":{"description":"`current` asks for a new signature when the agreement gets a new version","type":"string","enum":["any","current"]},"reuseScope":{"description":"`any` accepts a signing made anywhere, e.g. a master NDA","type":"string","enum":["this_resource","any"]},"coverage":{"description":"Who a signing covers: only the signer (`individual`), everyone at their entity once an authorized signatory signs (`entity_authorized`), or once anyone there signs (`entity_any`)","type":"string","enum":["individual","entity_authorized","entity_any"]},"accessOn":{"description":"When access opens: once the visitor signs, once every required signer has, or once countersigned","type":"string","enum":["party_signed","recipients_signed","completed"]},"allowSignerInvites":{"description":"Let the first signer at the gate invite co-signers for roles that aren't pre-assigned. Off unless set","type":"boolean"}},"required":["agreementId"]},{"type":"null"}]}}}}}},"x-idempotency":"Send an Idempotency-Key header to make retries safe. Keys are kept for 24 hours.","responses":{"200":{"description":"Success","content":{"application/json":{}}},"default":{"$ref":"#/components/responses/Error"}}}},"/updates/{updateId}/retract":{"post":{"operationId":"updates.retract","tags":["Updates"],"summary":"Retract a sent update: nobody can open it from now on, and readers are cut off","parameters":[{"name":"updateId","in":"path","required":true,"schema":{"type":"string"}}],"x-idempotency":"Send an Idempotency-Key header to make retries safe. Keys are kept for 24 hours.","responses":{"200":{"description":"Success","content":{"application/json":{}}},"default":{"$ref":"#/components/responses/Error"}}}},"/updates/{updateId}/restore":{"post":{"operationId":"updates.restore","tags":["Updates"],"summary":"Restore a retracted update for the people it was sent to","parameters":[{"name":"updateId","in":"path","required":true,"schema":{"type":"string"}}],"x-idempotency":"Send an Idempotency-Key header to make retries safe. Keys are kept for 24 hours.","responses":{"200":{"description":"Success","content":{"application/json":{}}},"default":{"$ref":"#/components/responses/Error"}}}},"/updates/{updateId}/recipients/{recipientId}":{"delete":{"operationId":"updates.recipients.revoke","tags":["Updates"],"summary":"Revoke one recipient's access to an update. If they're reading it, they're cut off","parameters":[{"name":"updateId","in":"path","required":true,"schema":{"type":"string"}},{"name":"recipientId","in":"path","required":true,"schema":{"type":"string"}}],"x-idempotency":"Send an Idempotency-Key header to make retries safe. Keys are kept for 24 hours.","responses":{"200":{"description":"Success","content":{"application/json":{}}},"default":{"$ref":"#/components/responses/Error"}}}},"/updates/{updateId}/recipients/{recipientId}/restore":{"post":{"operationId":"updates.recipients.restore","tags":["Updates"],"summary":"Give a revoked recipient their access back","parameters":[{"name":"updateId","in":"path","required":true,"schema":{"type":"string"}},{"name":"recipientId","in":"path","required":true,"schema":{"type":"string"}}],"x-idempotency":"Send an Idempotency-Key header to make retries safe. Keys are kept for 24 hours.","responses":{"200":{"description":"Success","content":{"application/json":{}}},"default":{"$ref":"#/components/responses/Error"}}}},"/updates/revoke-all":{"post":{"operationId":"updates.recipients.revokeAll","tags":["Updates"],"summary":"Revoke a contact's, or everyone at an entity's, access to every update they received","requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"contactId":{"description":"A contact: every update they received","type":"string"},"entityId":{"description":"An entity: every update anyone at it received","type":"string"}}}}}},"x-idempotency":"Send an Idempotency-Key header to make retries safe. Keys are kept for 24 hours.","responses":{"200":{"description":"Success","content":{"application/json":{}}},"default":{"$ref":"#/components/responses/Error"}}}},"/contacts/{contactId}/updates":{"get":{"operationId":"updates.ofContact","tags":["Contacts"],"summary":"The updates a contact received, newest first, with how they read each","parameters":[{"name":"contactId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Success","content":{"application/json":{}}},"default":{"$ref":"#/components/responses/Error"}}}},"/entities/{entityId}/updates":{"get":{"operationId":"updates.ofEntity","tags":["Entities"],"summary":"The updates anyone at an entity received, newest first, with how each of them read it","parameters":[{"name":"entityId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Success","content":{"application/json":{}}},"default":{"$ref":"#/components/responses/Error"}}}},"/updates/{updateId}/revise":{"post":{"operationId":"updates.revise","tags":["Updates"],"summary":"Start editing a sent update. Readers keep the version they have until the changes are published","parameters":[{"name":"updateId","in":"path","required":true,"schema":{"type":"string"}}],"x-idempotency":"Send an Idempotency-Key header to make retries safe. Keys are kept for 24 hours.","responses":{"200":{"description":"Success","content":{"application/json":{}}},"default":{"$ref":"#/components/responses/Error"}}},"get":{"operationId":"updates.revisions.review","tags":["Updates"],"summary":"Whether a sent update's changes can be published, attachments with a newer version, and how many readers would be emailed","parameters":[{"name":"updateId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Success","content":{"application/json":{}}},"default":{"$ref":"#/components/responses/Error"}}},"delete":{"operationId":"updates.revisions.discard","tags":["Updates"],"summary":"Discard a sent update's unpublished changes","parameters":[{"name":"updateId","in":"path","required":true,"schema":{"type":"string"}}],"x-idempotency":"Send an Idempotency-Key header to make retries safe. Keys are kept for 24 hours.","responses":{"200":{"description":"Success","content":{"application/json":{}}},"default":{"$ref":"#/components/responses/Error"}}}},"/updates/{updateId}/revisions":{"post":{"operationId":"updates.revisions.publish","tags":["Updates"],"summary":"Publish a sent update's changes: readers see the new revision from now on","parameters":[{"name":"updateId","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"mode":{"type":"string","enum":["silent","marked","notify"],"description":"`silent` for a typo; `marked` shows a note above the letter; `notify` also emails those who'd opened it"},"note":{"description":"What changed, shown to readers above the letter. Required unless `silent`; never in the email","type":"string","maxLength":280},"latestAttachments":{"description":"Attachments to move to their library's current version. Others keep the version they were sent with","maxItems":100,"type":"array","items":{"type":"string"}},"clientId":{"type":"string","maxLength":64}},"required":["mode"]}}}},"x-idempotency":"Send an Idempotency-Key header to make retries safe. Keys are kept for 24 hours.","responses":{"201":{"description":"Success","content":{"application/json":{}}},"default":{"$ref":"#/components/responses/Error"}}},"get":{"operationId":"updates.revisions.list","tags":["Updates"],"summary":"A sent update's revisions, newest first. Readers only ever see the current one","parameters":[{"name":"updateId","in":"path","required":true,"schema":{"type":"string"}},{"name":"cursor","in":"query","required":false,"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","description":"Opaque cursor from a previous page's `nextCursor`","type":"string"},"description":"Opaque cursor from a previous page's `nextCursor`"},{"name":"limit","in":"query","required":false,"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","description":"Page size, 1–100 (default 50)","type":"integer","minimum":1,"maximum":100},"description":"Page size, 1–100 (default 50)"}],"responses":{"200":{"description":"Success","content":{"application/json":{}}},"default":{"$ref":"#/components/responses/Error"}}}},"/updates/{updateId}/access-requests":{"get":{"operationId":"updates.accessRequests.list","tags":["Updates"],"summary":"Pass-along requests for an update: who asked, through whose link, and what was decided. Pending first, newest first","parameters":[{"name":"updateId","in":"path","required":true,"schema":{"type":"string"}},{"name":"status","in":"query","required":false,"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","description":"Unset: all, pending first","type":"string","enum":["pending","approved","declined"]},"description":"Unset: all, pending first"},{"name":"cursor","in":"query","required":false,"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","description":"Opaque cursor from a previous page's `nextCursor`","type":"string"},"description":"Opaque cursor from a previous page's `nextCursor`"},{"name":"limit","in":"query","required":false,"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","description":"Page size, 1–100 (default 50)","type":"integer","minimum":1,"maximum":100},"description":"Page size, 1–100 (default 50)"}],"responses":{"200":{"description":"Success","content":{"application/json":{}}},"default":{"$ref":"#/components/responses/Error"}}}},"/updates/{updateId}/access-requests/{requestId}/decide":{"post":{"operationId":"updates.accessRequests.decide","tags":["Updates"],"summary":"Approve a pass-along request (they're emailed their own link) or decline it (they're told nothing)","parameters":[{"name":"updateId","in":"path","required":true,"schema":{"type":"string"}},{"name":"requestId","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"decision":{"type":"string","enum":["approve","decline"]},"listId":{"description":"Approving: also add them to this list, so they get what's sent to it from now on","type":"string"}},"required":["decision"]}}}},"x-idempotency":"Send an Idempotency-Key header to make retries safe. Keys are kept for 24 hours.","responses":{"200":{"description":"Success","content":{"application/json":{}}},"default":{"$ref":"#/components/responses/Error"}}}},"/metrics/values":{"post":{"operationId":"metrics.values.import","tags":["Metrics"],"summary":"Set many values at once, as from a spreadsheet, creating the metrics named in `newMetrics`. `dryRun` says what it would do","requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"values":{"minItems":1,"maxItems":500,"type":"array","items":{"type":"object","properties":{"metric":{"type":"string","minLength":1,"maxLength":40,"description":"A metric's key or name"},"period":{"type":"string"},"value":{"anyOf":[{"type":"number","description":"The value. A percentage is in points: 12.5 for 12.5%"},{"type":"null"}]}},"required":["metric","period","value"]},"description":"Up to 500 values. Null clears one"},"newMetrics":{"description":"Metrics to create for values whose metric doesn't exist yet, matched by name","maxItems":50,"type":"array","items":{"type":"object","properties":{"label":{"type":"string","minLength":1,"maxLength":40},"unit":{"type":"string","enum":["currency","number","percent","months"]},"currency":{"type":"string","description":"An ISO 4217 code, like `USD`, for a `currency` metric (default `USD`)"},"period":{"type":"string","enum":["month","quarter"]},"higherIsBetter":{"type":"boolean"}},"required":["label","unit"]}},"dryRun":{"description":"Only say what would happen: which values are new, which change, and which can't be set","type":"boolean"}},"required":["values"]}}}},"x-idempotency":"Send an Idempotency-Key header to make retries safe. Keys are kept for 24 hours.","responses":{"200":{"description":"Success","content":{"application/json":{}}},"default":{"$ref":"#/components/responses/Error"}}}},"/metrics":{"get":{"operationId":"metrics.list","tags":["Metrics"],"summary":"Every metric, with its latest value and the one before, and optionally its recent values","parameters":[{"name":"through","in":"query","required":false,"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","description":"A month, `YYYY-MM`. With `periods`: each metric's values up to the period that contains it","type":"string","pattern":"^\\d{4}-(0[1-9]|1[0-2])$"},"description":"A month, `YYYY-MM`. With `periods`: each metric's values up to the period that contains it"},{"name":"periods","in":"query","required":false,"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","description":"How many periods of values to include for each metric, up to 36, ending at `through` or at its latest value (default 0)","type":"integer","minimum":0,"maximum":36},"description":"How many periods of values to include for each metric, up to 36, ending at `through` or at its latest value (default 0)"}],"responses":{"200":{"description":"Success","content":{"application/json":{}}},"default":{"$ref":"#/components/responses/Error"}}},"post":{"operationId":"metrics.create","tags":["Metrics"],"summary":"Define a metric","requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"label":{"type":"string","minLength":1,"maxLength":40},"key":{"description":"How the API names it, e.g. `mrr`. Default: from the label. It can't be changed","type":"string","pattern":"^[a-z][a-z0-9_]{0,39}$"},"period":{"description":"Whether it's reported each `month` (default) or each `quarter`","type":"string","enum":["month","quarter"]},"description":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}]},"unit":{"description":"`currency`, `number` (default), `percent` (values in points), or `months`, as for runway","type":"string","enum":["currency","number","percent","months"]},"currency":{"type":"string","description":"An ISO 4217 code, like `USD`, for a `currency` metric (default `USD`)"},"higherIsBetter":{"description":"Whether a rise is good news, which colors the change. Default: true, except for burn, churn, and costs","type":"boolean"}},"required":["label"]}}}},"x-idempotency":"Send an Idempotency-Key header to make retries safe. Keys are kept for 24 hours.","responses":{"201":{"description":"Success","content":{"application/json":{}}},"default":{"$ref":"#/components/responses/Error"}}}},"/metrics/{key}":{"get":{"operationId":"metrics.get","tags":["Metrics"],"summary":"A metric, with its latest value and the one before","parameters":[{"name":"key","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Success","content":{"application/json":{}}},"default":{"$ref":"#/components/responses/Error"}}},"patch":{"operationId":"metrics.update","tags":["Metrics"],"summary":"Rename a metric, or change its unit, currency, or whether higher is better","parameters":[{"name":"key","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"label":{"type":"string","minLength":1,"maxLength":40},"period":{"description":"Only while it has no values","type":"string","enum":["month","quarter"]},"description":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}]},"unit":{"description":"`currency`, `number` (default), `percent` (values in points), or `months`, as for runway","type":"string","enum":["currency","number","percent","months"]},"currency":{"type":"string","description":"An ISO 4217 code, like `USD`, for a `currency` metric (default `USD`)"},"higherIsBetter":{"description":"Whether a rise is good news, which colors the change. Default: true, except for burn, churn, and costs","type":"boolean"}}}}}},"x-idempotency":"Send an Idempotency-Key header to make retries safe. Keys are kept for 24 hours.","responses":{"200":{"description":"Success","content":{"application/json":{}}},"default":{"$ref":"#/components/responses/Error"}}},"delete":{"operationId":"metrics.delete","tags":["Metrics"],"summary":"Delete a metric and its values. Updates already sent keep the numbers they showed","parameters":[{"name":"key","in":"path","required":true,"schema":{"type":"string"}}],"x-idempotency":"Send an Idempotency-Key header to make retries safe. Keys are kept for 24 hours.","responses":{"200":{"description":"Success","content":{"application/json":{}}},"default":{"$ref":"#/components/responses/Error"}}}},"/metrics/{key}/values":{"get":{"operationId":"metrics.values.list","tags":["Metrics"],"summary":"A metric's values, newest period first","parameters":[{"name":"key","in":"path","required":true,"schema":{"type":"string"}},{"name":"cursor","in":"query","required":false,"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","description":"Opaque cursor from a previous page's `nextCursor`","type":"string"},"description":"Opaque cursor from a previous page's `nextCursor`"},{"name":"limit","in":"query","required":false,"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","description":"Page size, 1–100 (default 50)","type":"integer","minimum":1,"maximum":100},"description":"Page size, 1–100 (default 50)"}],"responses":{"200":{"description":"Success","content":{"application/json":{}}},"default":{"$ref":"#/components/responses/Error"}}}},"/metrics/{key}/values/{period}":{"put":{"operationId":"metrics.values.set","tags":["Metrics"],"summary":"Set a metric's value for a month or quarter, or clear it with null","parameters":[{"name":"key","in":"path","required":true,"schema":{"type":"string"}},{"name":"period","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"value":{"anyOf":[{"type":"number","description":"The value. A percentage is in points: 12.5 for 12.5%"},{"type":"null"}],"description":"The value, or null to clear it. A percentage is in points"}},"required":["value"]}}}},"x-idempotency":"Send an Idempotency-Key header to make retries safe. Keys are kept for 24 hours.","responses":{"200":{"description":"Success","content":{"application/json":{}}},"default":{"$ref":"#/components/responses/Error"}}}}},"components":{"securitySchemes":{"apiKey":{"type":"http","scheme":"bearer","description":"A workspace API key, `vk_…`"}},"responses":{"Error":{"description":"Error. Codes: unauthenticated (401), forbidden (403), not_found (404), validation_error (400), conflict (409), entitlement_exceeded (402), rate_limited (429), idempotency_mismatch (422), workspace_suspended (403), internal (500)","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{"type":"object"}},"required":["code","message"]}}}}}}}}}