{"openapi":"3.1.0","info":{"title":"PDFTrackr API","version":"1","description":"Reference: https://pdftrackr.com/help/api"},"servers":[{"url":"https://pdftrackr.com/api/v1"}],"security":[{"bearerAuth":[]}],"components":{"securitySchemes":{"bearerAuth":{"type":"http","scheme":"bearer","description":"Authorization: Bearer pdt_live_…"}},"headers":{"X-RateLimit-Limit":{"description":"Requests a minute this key may make (600).","schema":{"type":"integer"}},"X-RateLimit-Remaining":{"description":"Requests left in the current minute (approximate while the shared counter is down).","schema":{"type":"integer"}},"X-RateLimit-Reset":{"description":"Seconds until the count resets.","schema":{"type":"integer"}},"Retry-After":{"description":"Seconds to wait before retrying.","schema":{"type":"integer"}}},"schemas":{"Error":{"type":"object","required":["success","error"],"additionalProperties":true,"properties":{"code":{"type":"string","enum":["VALIDATION_FAILED","INVALID_API_KEY","KEY_OWNER_LEFT","RATE_LIMITED","KEY_OWNER_DEMOTED","INTEGRATIONS_UNAVAILABLE","INSUFFICIENT_SCOPE","INVALID_WEBHOOK_URL","SHARE_NOT_FOUND","INTEGRATION_LIMIT","NOT_FOUND","FILE_NOT_FOUND","WORKSPACE_FROZEN","FILE_INVALID_TYPE","QUOTA_EXCEEDED","FILE_TOO_LARGE","FOLDER_NOT_FOUND","NO_FILE_PROVIDED","UPLOAD_ALREADY_COMPLETED","BUSINESS_RESTART_REQUIRED","ROOM_LIMIT","CONTENT_SUSPENDED","POLICY_LOCKED","EMAIL_GATING_REQUIRED"]},"success":{"const":false},"error":{"type":"string"}}}}},"paths":{"/me":{"get":{"operationId":"get-me","summary":"The key's workspace and the key's name. Use it to test a key.","x-required-scope":null,"responses":{"200":{"description":"Success","headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"}},"content":{"application/json":{"example":{"workspace":{"id":"ws_42","name":"Acme Sales"},"key_name":"Production server","scopes":["files:read","files:write","links:read","links:write","visits:read","rooms:read","rooms:write","activity:read","events:subscribe"]}}}},"400":{"description":"VALIDATION_FAILED: The request also carried a browser session cookie.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"INVALID_API_KEY: The key is missing, malformed, unknown or revoked.\nKEY_OWNER_LEFT: The member who made the key has left the workspace. It stays refused if they rejoin.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"}},"description":"KEY_OWNER_DEMOTED: The member who made the key is no longer an owner or admin.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"},"Retry-After":{"$ref":"#/components/headers/Retry-After"}},"description":"RATE_LIMITED: This key made more than 600 requests in a minute, or this IP address sent more than 30 requests a second (bursts of 20 allowed).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"}},"description":"INTEGRATIONS_UNAVAILABLE: The API is switched off on this server.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/hooks":{"post":{"operationId":"post-hooks","summary":"Subscribe a URL to one event type. The response carries the hook's signing secret, shown this once. At most 50 hooks per workspace, and at most 3 webhook endpoints at the same site (these hooks and the workspace's manual webhooks together; `hooks.zapier.com` is exempt).","x-required-scope":"events:subscribe","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["event","target_url"],"properties":{"event":{"type":"string","enum":["reader.opened","reader.finished","reader.returned","link.created","link.deleted","file.added","file.new_version","member.joined","member.left"],"description":"An event type listed under Events and hooks."},"target_url":{"type":"string","description":"A public HTTPS URL, at most 2048 characters."},"link_id":{"type":"string","description":"A share link id (at most 64 characters) to receive only that link's events. Only for events about a link; never a link inside a data room."}}}}}},"responses":{"201":{"description":"Success","headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"}},"content":{"application/json":{"example":{"id":981,"secret":"whsec_0000000000000000000000000000000000000000000"}}}},"400":{"description":"VALIDATION_FAILED: The request also carried a browser session cookie.\nVALIDATION_FAILED: A body field is missing, of the wrong type or out of range.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"INVALID_API_KEY: The key is missing, malformed, unknown or revoked.\nKEY_OWNER_LEFT: The member who made the key has left the workspace. It stays refused if they rejoin.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"}},"description":"KEY_OWNER_DEMOTED: The member who made the key is no longer an owner or admin.\nINSUFFICIENT_SCOPE: The key doesn't have `events:subscribe` (checked first), or the read scope of the event's family (checked once the event type is known to be available here); `required_scope` names the missing one.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"}},"description":"SHARE_NOT_FOUND: `link_id` isn't a share link of this workspace, or the link is inside a data room.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"}},"description":"INTEGRATION_LIMIT: The workspace already has 50 hooks, or 3 webhook endpoints at this URL's site.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"}},"description":"VALIDATION_FAILED: `link_id` was sent with an event that isn't about a link, or the event type isn't available on this server.\nINVALID_WEBHOOK_URL: The target URL can't be used (for example not public HTTPS); `reason` says why.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"},"Retry-After":{"$ref":"#/components/headers/Retry-After"}},"description":"RATE_LIMITED: This key made more than 600 requests in a minute, or this IP address sent more than 30 requests a second (bursts of 20 allowed).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"}},"description":"INTEGRATIONS_UNAVAILABLE: The API is switched off on this server.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"get":{"operationId":"get-hooks","summary":"The hooks this key made, newest first, 25 a page unless you send `limit`. `link_id` is the link filter the hook was made with, or `null`. `workspace_hook_count` is every hook in the workspace (this key's and the others') and `workspace_hook_limit` the most a workspace may have, the number POST /hooks answers `INTEGRATION_LIMIT` against. A hook's signing secret is shown once, by POST /hooks, and never here.","x-required-scope":"events:subscribe","parameters":[{"name":"limit","in":"query","required":false,"description":"Items per page, 1 to 100. Default 25.","schema":{"type":"integer"}},{"name":"cursor","in":"query","required":false,"description":"The `next_cursor` of the previous page, unchanged. Send the same filters with it: the cursor doesn't keep them.","schema":{"type":"string"}}],"responses":{"200":{"description":"Success","headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"}},"content":{"application/json":{"example":{"hooks":[{"id":981,"event":"reader.finished","target_url":"https://example.com/hooks/pdftrackr","link_id":"aB3dE5fG7h","created_at":"2026-11-19T09:30:00.000Z"}],"next_cursor":null,"workspace_hook_count":1,"workspace_hook_limit":50}}}},"400":{"description":"VALIDATION_FAILED: The request also carried a browser session cookie.\nVALIDATION_FAILED: `limit` isn't a whole number from 1 to 100, or `cursor` isn't a `next_cursor` this list (or another list sorted by time) returned.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"INVALID_API_KEY: The key is missing, malformed, unknown or revoked.\nKEY_OWNER_LEFT: The member who made the key has left the workspace. It stays refused if they rejoin.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"}},"description":"KEY_OWNER_DEMOTED: The member who made the key is no longer an owner or admin.\nINSUFFICIENT_SCOPE: The key doesn't have `events:subscribe`; `required_scope` names it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"},"Retry-After":{"$ref":"#/components/headers/Retry-After"}},"description":"RATE_LIMITED: This key made more than 600 requests in a minute, or this IP address sent more than 30 requests a second (bursts of 20 allowed).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"}},"description":"INTEGRATIONS_UNAVAILABLE: The API is switched off on this server.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/hooks/{id}":{"delete":{"operationId":"delete-hook","summary":"Unsubscribe a hook this key made. Idempotent: a hook that is gone or isn't this key's answers `deleted: false`.","x-required-scope":"events:subscribe","parameters":[{"name":"id","in":"path","required":true,"description":"The `id` from POST /hooks.","schema":{"type":"integer"}}],"responses":{"200":{"description":"Success","headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"}},"content":{"application/json":{"example":{"deleted":true}}}},"400":{"description":"VALIDATION_FAILED: The request also carried a browser session cookie.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"INVALID_API_KEY: The key is missing, malformed, unknown or revoked.\nKEY_OWNER_LEFT: The member who made the key has left the workspace. It stays refused if they rejoin.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"}},"description":"KEY_OWNER_DEMOTED: The member who made the key is no longer an owner or admin.\nINSUFFICIENT_SCOPE: The key doesn't have `events:subscribe`; `required_scope` names it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"},"Retry-After":{"$ref":"#/components/headers/Retry-After"}},"description":"RATE_LIMITED: This key made more than 600 requests in a minute, or this IP address sent more than 30 requests a second (bursts of 20 allowed).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"}},"description":"INTEGRATIONS_UNAVAILABLE: The API is switched off on this server.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/samples/{event}":{"get":{"operationId":"get-samples","summary":"Up to 3 real events of one type from the last 30 days (hidden visits excluded), newest first, as an array of envelopes; a fixed example when there are none.","x-required-scope":"events:subscribe","parameters":[{"name":"event","in":"path","required":true,"description":"A public event type other than `test.ping`.","schema":{"type":"string","enum":["reader.opened","reader.finished","reader.returned","link.created","link.deleted","file.added","file.new_version","member.joined","member.left"]}}],"responses":{"200":{"description":"Success","headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"}},"content":{"application/json":{"example":[{"id":"evt_01JD3Q8Z5M0000000000000002","type":"reader.finished","version":1,"occurred_at":"2026-11-13T10:42:07.123Z","workspace":{"id":"ws_42","name":"Acme Sales"},"data":{"link":{"id":"aB3dE5fG7h","name":"Q4 deck v3","url":"https://pdftrackr.com/view/aB3dE5fG7h","created_by":{"id":"usr_7","name":"Sam Rivera","email":"sam@acme.example"}},"document":{"id":"file_118","title":"Q4 deck v3","page_count":14,"version_number":3,"file_type":"pdf"},"reader":{"email":"jordan@acme.example","name":"Jordan Lee","email_verified":true,"country":"DE","device":"desktop"},"visit":{"id":"vis_52817","started_at":"2026-11-13T10:38:02.000Z","ended_at":"2026-11-13T10:42:07.000Z","duration_seconds":245,"pages_viewed":11,"furthest_page":12,"page_count":14,"completion_percent":86,"downloaded":false,"top_pages":[{"page":4,"seconds":62},{"page":7,"seconds":41}],"visit_number":1},"analytics_url":"https://pdftrackr.com/dashboard/files/118"}}]}}},"400":{"description":"VALIDATION_FAILED: The request also carried a browser session cookie.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"INVALID_API_KEY: The key is missing, malformed, unknown or revoked.\nKEY_OWNER_LEFT: The member who made the key has left the workspace. It stays refused if they rejoin.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"}},"description":"KEY_OWNER_DEMOTED: The member who made the key is no longer an owner or admin.\nINSUFFICIENT_SCOPE: The key doesn't have `events:subscribe` (checked first), or the read scope of the event's family (checked once the event type is known to be available here); `required_scope` names the missing one.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"}},"description":"NOT_FOUND: Not a public event type, or `test.ping`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"},"Retry-After":{"$ref":"#/components/headers/Retry-After"}},"description":"RATE_LIMITED: This key made more than 600 requests in a minute, or this IP address sent more than 30 requests a second (bursts of 20 allowed).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"}},"description":"INTEGRATIONS_UNAVAILABLE: The API is switched off on this server.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/files":{"get":{"operationId":"get-files","summary":"The workspace's team files, newest first, 25 a page unless you send `limit`. Each item has `folder`: the file's folder (`{ \"id\": \"fld_9\", \"name\": \"Sales\" }`), or `null` when the file isn't in one. Files that failed the virus check are never listed.","x-required-scope":"files:read","parameters":[{"name":"search","in":"query","required":false,"description":"Title contains this text (case-insensitive); the first 100 characters are used.","schema":{"type":"string"}},{"name":"folder_id","in":"query","required":false,"description":"Only the files in this folder (`fld_9`, or the number alone), from GET /folders. A folder of another workspace, or one that doesn't exist, matches nothing.","schema":{"oneOf":[{"type":"string"},{"type":"integer"}]}},{"name":"limit","in":"query","required":false,"description":"Items per page, 1 to 100. Default 25.","schema":{"type":"integer"}},{"name":"cursor","in":"query","required":false,"description":"The `next_cursor` of the previous page, unchanged. Send the same filters with it: the cursor doesn't keep them.","schema":{"type":"string"}}],"responses":{"200":{"description":"Success","headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"}},"content":{"application/json":{"example":{"files":[{"id":"file_119","title":"Pricing proposal","file_type":"docx","scan_status":"passed","conversion":{"status":"done","error_code":null},"folder":null},{"id":"file_118","title":"Q4 deck v3","file_type":"pdf","scan_status":"passed","conversion":null,"folder":{"id":"fld_10","name":"Investors"}}],"next_cursor":null}}}},"400":{"description":"VALIDATION_FAILED: The request also carried a browser session cookie.\nVALIDATION_FAILED: `limit` isn't a whole number from 1 to 100, `cursor` isn't a `next_cursor` this list (or another list sorted by time) returned, or `folder_id` isn't a folder id.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"INVALID_API_KEY: The key is missing, malformed, unknown or revoked.\nKEY_OWNER_LEFT: The member who made the key has left the workspace. It stays refused if they rejoin.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"}},"description":"KEY_OWNER_DEMOTED: The member who made the key is no longer an owner or admin.\nINSUFFICIENT_SCOPE: The key doesn't have `files:read`; `required_scope` names it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"},"Retry-After":{"$ref":"#/components/headers/Retry-After"}},"description":"RATE_LIMITED: This key made more than 600 requests in a minute, or this IP address sent more than 30 requests a second (bursts of 20 allowed).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"}},"description":"INTEGRATIONS_UNAVAILABLE: The API is switched off on this server.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/files/{id}/versions":{"get":{"operationId":"get-file-versions","summary":"The stored versions of a team file, newest first, 25 a page unless you send `limit`. `is_current` marks the version readers see; `size` is in bytes and `title` is the name that version was uploaded with. A file with no stored versions lists none (`versions` is empty), as the dashboard does. Upload a new version with POST /files/uploads and `file_id`.","x-required-scope":"files:read","parameters":[{"name":"id","in":"path","required":true,"description":"A file id from GET /files (`file_118`, or the number alone).","schema":{"type":"string"}},{"name":"limit","in":"query","required":false,"description":"Items per page, 1 to 100. Default 25.","schema":{"type":"integer"}},{"name":"cursor","in":"query","required":false,"description":"The `next_cursor` of the previous page, unchanged. Send the same filters with it: the cursor doesn't keep them.","schema":{"type":"string"}}],"responses":{"200":{"description":"Success","headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"}},"content":{"application/json":{"example":{"versions":[{"version_number":2,"is_current":true,"created_at":"2026-11-19T16:45:00.000Z","size":1530912,"title":"pricing-proposal.docx","file_type":"docx"},{"version_number":1,"is_current":false,"created_at":"2026-11-17T09:00:00.000Z","size":1482300,"title":"pricing-proposal-v1.docx","file_type":"docx"}],"next_cursor":null}}}},"400":{"description":"VALIDATION_FAILED: The request also carried a browser session cookie.\nVALIDATION_FAILED: `limit` isn't a whole number from 1 to 100, or `cursor` isn't a `next_cursor` this list (or another list sorted by time) returned.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"INVALID_API_KEY: The key is missing, malformed, unknown or revoked.\nKEY_OWNER_LEFT: The member who made the key has left the workspace. It stays refused if they rejoin.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"}},"description":"KEY_OWNER_DEMOTED: The member who made the key is no longer an owner or admin.\nINSUFFICIENT_SCOPE: The key doesn't have `files:read`; `required_scope` names it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"}},"description":"FILE_NOT_FOUND: `id` isn't a team file of this workspace.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"},"Retry-After":{"$ref":"#/components/headers/Retry-After"}},"description":"RATE_LIMITED: This key made more than 600 requests in a minute, or this IP address sent more than 30 requests a second (bursts of 20 allowed).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"}},"description":"INTEGRATIONS_UNAVAILABLE: The API is switched off on this server.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/files/{id}/stats":{"get":{"operationId":"get-file-stats","summary":"A team file's totals, the same numbers as its file page for the same window: the visits that started at or after `since` (by default the file page's default, the last 30 days). `views` counts visits (each time the document was opened, room visits included). `identified_readers` counts distinct reader email addresses; `anonymous_visits` counts the visits without one (visits, not people, so the two don't add up to a number of people). `typical_reading_seconds` is the median visit's reading time over the `views_with_reading_time` visits whose time was measured, or `null` when there is none to show (the file page's \"—\"). `reached_end_percent` is the share of `views` that reached the last page (`null` when the document's length is unknown). `pages`: per page, `views` (times the page was viewed: page views, not visits, so don't divide them by `views`) and `typical_seconds` (the median visit's time on it); empty for a file that is download only, whose `typical_reading_seconds` is `null`. Downloads are per link: add up GET /links/:id/stats. Hidden visits never count; likely bots don't count while bot filtering is on, exactly as on the dashboard. While Business is paused, visits inside data rooms leave every figure, as on the file page. `since` echoes the window start applied; `computed_at` is when these were counted. These are counted fresh on every request; the dashboard may show a cached copy up to an hour old.","x-required-scope":"visits:read","parameters":[{"name":"id","in":"path","required":true,"description":"A file id from GET /files (`file_118`, or the number alone).","schema":{"type":"string"}},{"name":"since","in":"query","required":false,"description":"Count visits that started at or after this time: ISO 8601 with seconds and a zone, e.g. `2026-11-01T00:00:00Z`. At most 365 days ago (the file page's longest window). Default: 30 days ago.","schema":{"type":"string"}}],"responses":{"200":{"description":"Success","headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"}},"content":{"application/json":{"example":{"views":2,"identified_readers":1,"anonymous_visits":0,"typical_reading_seconds":185,"views_with_reading_time":1,"reached_end_percent":0,"pages":[{"page":1,"views":2,"typical_seconds":33},{"page":2,"views":2,"typical_seconds":71},{"page":3,"views":1,"typical_seconds":60},{"page":4,"views":1,"typical_seconds":41}],"since":"2026-11-01T00:00:00.000Z","computed_at":"2026-11-21T12:00:00.000Z"}}}},"400":{"description":"VALIDATION_FAILED: The request also carried a browser session cookie.\nVALIDATION_FAILED: `since` isn't an ISO 8601 time with seconds and a zone, or is more than 365 days ago.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"INVALID_API_KEY: The key is missing, malformed, unknown or revoked.\nKEY_OWNER_LEFT: The member who made the key has left the workspace. It stays refused if they rejoin.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"}},"description":"KEY_OWNER_DEMOTED: The member who made the key is no longer an owner or admin.\nINSUFFICIENT_SCOPE: The key doesn't have `visits:read`; `required_scope` names it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"}},"description":"FILE_NOT_FOUND: `id` isn't a team file of this workspace.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"},"Retry-After":{"$ref":"#/components/headers/Retry-After"}},"description":"RATE_LIMITED: This key made more than 600 requests in a minute, or this IP address sent more than 30 requests a second (bursts of 20 allowed).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"}},"description":"INTEGRATIONS_UNAVAILABLE: The API is switched off on this server.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/folders":{"get":{"operationId":"get-folders","summary":"The workspace's team folders, newest first, 25 a page unless you send `limit`. `parent` is the id of the folder this one sits in (`fld_4`), or `null` for a top-level folder. Never another workspace's folders or anyone's personal folders. Use an `id` as `folder_id` on GET /files and on POST /files/uploads/:upload_id/complete.","x-required-scope":"files:read","parameters":[{"name":"limit","in":"query","required":false,"description":"Items per page, 1 to 100. Default 25.","schema":{"type":"integer"}},{"name":"cursor","in":"query","required":false,"description":"The `next_cursor` of the previous page, unchanged. Send the same filters with it: the cursor doesn't keep them.","schema":{"type":"string"}}],"responses":{"200":{"description":"Success","headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"}},"content":{"application/json":{"example":{"folders":[{"id":"fld_10","name":"Investors","parent":"fld_9","created_at":"2026-11-12T09:00:00.000Z"},{"id":"fld_9","name":"Sales","parent":null,"created_at":"2026-11-10T09:00:00.000Z"}],"next_cursor":null}}}},"400":{"description":"VALIDATION_FAILED: The request also carried a browser session cookie.\nVALIDATION_FAILED: `limit` isn't a whole number from 1 to 100, or `cursor` isn't a `next_cursor` this list (or another list sorted by time) returned.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"INVALID_API_KEY: The key is missing, malformed, unknown or revoked.\nKEY_OWNER_LEFT: The member who made the key has left the workspace. It stays refused if they rejoin.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"}},"description":"KEY_OWNER_DEMOTED: The member who made the key is no longer an owner or admin.\nINSUFFICIENT_SCOPE: The key doesn't have `files:read`; `required_scope` names it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"},"Retry-After":{"$ref":"#/components/headers/Retry-After"}},"description":"RATE_LIMITED: This key made more than 600 requests in a minute, or this IP address sent more than 30 requests a second (bursts of 20 allowed).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"}},"description":"INTEGRATIONS_UNAVAILABLE: The API is switched off on this server.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/files/uploads":{"post":{"operationId":"post-file-uploads","summary":"Start a file upload into the workspace's team files. `upload_url` takes one `PUT` of the file's bytes with the header `Content-Type` set to `content_type` and exactly `size` bytes, for the next 15 minutes (`expires_in` seconds); then call POST /files/uploads/:upload_id/complete. A different byte count is refused by the storage provider with its own XML 403 (`SignatureDoesNotMatch`): send exactly `size` bytes. Uploads go through the same checks as the dashboard. PDFs, and on Business every other file except programs, scripts and macro-enabled Office files (`.exe`, `.msi`, `.com`, `.jar`, `.apk`, `.dmg`, `.iso`, `.lnk`, `.hta`, `.scr`, `.app`, `.pkg`, `.deb`, `.rpm`, `.js`, `.mjs`, `.sh`, `.bash`, `.zsh`, `.ps1`, `.bat`, `.cmd`, `.vbs`, `.docm`, `.xlsm`, `.pptm`, `.xlsb`, `.dotm`, `.potm`, `.vsdm`, refused). These are previewed or converted: `.docx`, `.pptx`, `.odt`, `.odp`, `.doc`, `.ppt`, `.key`, `.rtf`, `.txt`, `.md`, `.pages`, `.vsdx`, `.odg`, `.ts`, `.tsx`, `.jsx`, `.py`, `.rb`, `.php`, `.go`, `.java`, `.kt`, `.swift`, `.c`, `.h`, `.cpp`, `.cs`, `.rs`, `.scala`, `.sql`, `.json`, `.yaml`, `.yml`, `.toml`, `.ini`, `.css`, `.scss`, `.r`, `.m`, `.lua`, `.pl`, `.xlsx`, `.ods`, `.xls`, `.csv`, `.numbers`, `.png`, `.jpg`, `.jpeg`, `.gif`, `.webp`, `.zip`; any other file is a tracked download, and `.html`, `.htm`, `.xhtml`, `.svg`, `.xml`, `.mht` are only ever downloads. At most 30 upload starts per hour per key, counted apart from the dashboard's. If the upload service is briefly unavailable the answer is 503 without a `code`: retry.","x-required-scope":"files:write","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["file_name","size"],"properties":{"file_name":{"type":"string","description":"The file's name, at most 255 characters. Its last extension decides the type (case-insensitive)."},"size":{"type":"integer","description":"The file's exact size in bytes, at least 1 and at most the plan's file size. The PUT must send exactly this many bytes."},"file_id":{"oneOf":[{"type":"string"},{"type":"integer"}],"description":"Upload a new version of this team file (`file_118`, or the number alone). The new version must be the same kind of file: a PDF or converted document for a PDF or document, a spreadsheet for a spreadsheet, an image for an image, a download for a download."}}}}}},"responses":{"201":{"description":"Success","headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"}},"content":{"application/json":{"example":{"upload_id":"Vb4nR8sKq2LmZ7xYt3WdP","upload_url":"https://storage.example/pending/Vb4nR8sKq2LmZ7xYt3WdP.pdf?X-Amz-Expires=900&X-Amz-Signature=EXAMPLE","content_type":"application/pdf","expires_in":900}}}},"400":{"description":"VALIDATION_FAILED: The request also carried a browser session cookie.\nVALIDATION_FAILED: A body field is missing, of the wrong type or out of range.\nFILE_INVALID_TYPE: The file type isn't accepted (a program, script or macro-enabled Office file, or not a PDF where only PDFs are taken), or a new version isn't the same kind of file as `file_id`; `reason` says which.\nQUOTA_EXCEEDED: The workspace's storage or file count would go over its plan.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"INVALID_API_KEY: The key is missing, malformed, unknown or revoked.\nKEY_OWNER_LEFT: The member who made the key has left the workspace. It stays refused if they rejoin.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"}},"description":"KEY_OWNER_DEMOTED: The member who made the key is no longer an owner or admin.\nINSUFFICIENT_SCOPE: The key doesn't have `files:write`; `required_scope` names it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"}},"description":"FILE_NOT_FOUND: `file_id` isn't a team file of this workspace.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"}},"description":"WORKSPACE_FROZEN: Business is paused, so team items are read-only.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"}},"description":"FILE_TOO_LARGE: The file is over the plan's file size.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"},"Retry-After":{"$ref":"#/components/headers/Retry-After"}},"description":"RATE_LIMITED: This key made more than 600 requests in a minute, or this IP address sent more than 30 requests a second (bursts of 20 allowed).\nRATE_LIMITED: This key started more than 30 uploads in the last hour.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"}},"description":"INTEGRATIONS_UNAVAILABLE: The API is switched off on this server.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/files/uploads/{upload_id}/complete":{"post":{"operationId":"post-file-upload-complete","summary":"Tell PDFTrackr the bytes are in. The checks (type, size, virus scan) run in the background: follow them with GET /files/uploads/:upload_id. No file exists until they pass. If the upload service is briefly unavailable the answer is 503 without a `code`: retry.","x-required-scope":"files:write","parameters":[{"name":"upload_id","in":"path","required":true,"description":"The `upload_id` from POST /files/uploads.","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":[],"properties":{"title":{"type":"string","description":"At most 255 characters. Defaults to the file name."},"description":{"type":"string","description":"At most 1000 characters."},"folder_id":{"oneOf":[{"type":"string"},{"type":"integer"}],"description":"File the new file in this team folder (`fld_9`, or the number alone), from GET /folders. Not for a new version (an upload started with `file_id`): that file keeps its folder."}}}}}},"responses":{"202":{"description":"Success","headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"}},"content":{"application/json":{"example":{"upload_id":"Vb4nR8sKq2LmZ7xYt3WdP"}}}},"400":{"description":"VALIDATION_FAILED: The request also carried a browser session cookie.\nVALIDATION_FAILED: A body field is missing, of the wrong type or out of range.\nFILE_INVALID_TYPE: The file type isn't accepted (a program, script or macro-enabled Office file, or not a PDF where only PDFs are taken), or a new version isn't the same kind of file as `file_id`; `reason` says which.\nQUOTA_EXCEEDED: The workspace's storage or file count would go over its plan.\nNO_FILE_PROVIDED: The bytes haven't arrived at `upload_url` (yet); `expected_size` is the byte count the URL was signed for.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"INVALID_API_KEY: The key is missing, malformed, unknown or revoked.\nKEY_OWNER_LEFT: The member who made the key has left the workspace. It stays refused if they rejoin.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"}},"description":"KEY_OWNER_DEMOTED: The member who made the key is no longer an owner or admin.\nINSUFFICIENT_SCOPE: The key doesn't have `files:write`; `required_scope` names it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"}},"description":"NOT_FOUND: No upload with this id was started by this key's maker in this workspace, or it is more than 24 hours old.\nFOLDER_NOT_FOUND: `folder_id` isn't a team folder of this workspace.\nFILE_NOT_FOUND: `file_id` isn't a team file of this workspace.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"}},"description":"WORKSPACE_FROZEN: Business is paused, so team items are read-only.\nUPLOAD_ALREADY_COMPLETED: Another complete call for this upload is already running.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"}},"description":"FILE_TOO_LARGE: The file is over the plan's file size.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"},"Retry-After":{"$ref":"#/components/headers/Retry-After"}},"description":"RATE_LIMITED: This key made more than 600 requests in a minute, or this IP address sent more than 30 requests a second (bursts of 20 allowed).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"}},"description":"INTEGRATIONS_UNAVAILABLE: The API is switched off on this server.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/files/uploads/{upload_id}":{"get":{"operationId":"get-file-upload","summary":"An upload's result. `status` is `processing`, `ready` (with `file_id`, and `version_number` for a new version) or `failed` (with `code` when there is one, such as `FILE_INVALID_TYPE`, `FILE_UNSAFE` or `WORKSPACE_FROZEN`; the file was not added). A converted document is `ready` once its original is stored and scanned; its preview follows, shown as `conversion` on GET /files. Answers for 24 hours after the upload, only to keys of the member who started it, and only for uploads started through this API (a dashboard upload's id is a 404); after that the file is found with GET /files. If the upload service is briefly unavailable the answer is 503 without a `code`: retry.","x-required-scope":"files:read","parameters":[{"name":"upload_id","in":"path","required":true,"description":"The `upload_id` from POST /files/uploads.","schema":{"type":"string"}}],"responses":{"200":{"description":"Success","headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"}},"content":{"application/json":{"example":{"status":"ready","file_id":"file_120"}}}},"400":{"description":"VALIDATION_FAILED: The request also carried a browser session cookie.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"INVALID_API_KEY: The key is missing, malformed, unknown or revoked.\nKEY_OWNER_LEFT: The member who made the key has left the workspace. It stays refused if they rejoin.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"}},"description":"KEY_OWNER_DEMOTED: The member who made the key is no longer an owner or admin.\nINSUFFICIENT_SCOPE: The key doesn't have `files:read`; `required_scope` names it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"}},"description":"NOT_FOUND: No upload with this id was started by this key's maker in this workspace, or it is more than 24 hours old.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"},"Retry-After":{"$ref":"#/components/headers/Retry-After"}},"description":"RATE_LIMITED: This key made more than 600 requests in a minute, or this IP address sent more than 30 requests a second (bursts of 20 allowed).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"}},"description":"INTEGRATIONS_UNAVAILABLE: The API is switched off on this server.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/links":{"get":{"operationId":"get-links","summary":"The workspace's share links on team files, newest first, 25 a page unless you send `limit`. Links inside a data room are never listed.","x-required-scope":"links:read","parameters":[{"name":"search","in":"query","required":false,"description":"Link name or document title contains this text (case-insensitive); the first 100 characters are used.","schema":{"type":"string"}},{"name":"limit","in":"query","required":false,"description":"Items per page, 1 to 100. Default 25.","schema":{"type":"integer"}},{"name":"cursor","in":"query","required":false,"description":"The `next_cursor` of the previous page, unchanged. Send the same filters with it: the cursor doesn't keep them.","schema":{"type":"string"}}],"responses":{"200":{"description":"Success","headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"}},"content":{"application/json":{"example":{"links":[{"id":"aB3dE5fG7h","name":"Q4 deck for investors","url":"https://pdftrackr.com/view/aB3dE5fG7h","email_gate":true,"allow_download":false,"expires_at":null,"is_active":true,"created_at":"2026-11-18T14:20:00.000Z","document":{"id":"file_118","title":"Q4 deck v3"}}],"next_cursor":null}}}},"400":{"description":"VALIDATION_FAILED: The request also carried a browser session cookie.\nVALIDATION_FAILED: `limit` isn't a whole number from 1 to 100, or `cursor` isn't a `next_cursor` this list (or another list sorted by time) returned.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"INVALID_API_KEY: The key is missing, malformed, unknown or revoked.\nKEY_OWNER_LEFT: The member who made the key has left the workspace. It stays refused if they rejoin.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"}},"description":"KEY_OWNER_DEMOTED: The member who made the key is no longer an owner or admin.\nINSUFFICIENT_SCOPE: The key doesn't have `links:read`; `required_scope` names it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"},"Retry-After":{"$ref":"#/components/headers/Retry-After"}},"description":"RATE_LIMITED: This key made more than 600 requests in a minute, or this IP address sent more than 30 requests a second (bursts of 20 allowed).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"}},"description":"INTEGRATIONS_UNAVAILABLE: The API is switched off on this server.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"post":{"operationId":"post-links","summary":"Create a share link on a team file. The team's link defaults fill what you leave out, and its locked rules apply.","x-required-scope":"links:write","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["file_id"],"properties":{"file_id":{"oneOf":[{"type":"string"},{"type":"integer"}],"description":"A file id from GET /files (`file_118`), or the number alone."},"name":{"type":"string","description":"At most 255 characters. Defaults to the document title."},"email_gate":{"type":"boolean","description":"Ask readers for their email. `\"true\"` and `\"false\"` are accepted too."},"allow_download":{"type":"boolean","description":"Let readers download the file. `\"true\"` and `\"false\"` are accepted too."},"expires_in_days":{"type":"integer","description":"1 to 3650. The link stops working after this many days."}}}}}},"responses":{"201":{"description":"Success","headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"}},"content":{"application/json":{"example":{"link":{"id":"kL9mN2pQ4rSt","name":"Q4 deck for partners","url":"https://pdftrackr.com/view/kL9mN2pQ4rSt","email_gate":true,"allow_download":true,"expires_at":"2026-12-19T09:30:00.000Z","is_active":true,"created_at":"2026-11-19T09:30:00.000Z","document":{"id":"file_118","title":"Q4 deck v3"}},"url":"https://pdftrackr.com/view/kL9mN2pQ4rSt"}}}},"400":{"description":"VALIDATION_FAILED: The request also carried a browser session cookie.\nVALIDATION_FAILED: A body field is missing, of the wrong type or out of range.\nEMAIL_GATING_REQUIRED: The team's defaults turn on email verification, which needs the email ask.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"INVALID_API_KEY: The key is missing, malformed, unknown or revoked.\nKEY_OWNER_LEFT: The member who made the key has left the workspace. It stays refused if they rejoin.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"}},"description":"KEY_OWNER_DEMOTED: The member who made the key is no longer an owner or admin.\nINSUFFICIENT_SCOPE: The key doesn't have `links:write`; `required_scope` names it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"}},"description":"FILE_NOT_FOUND: `file_id` isn't a team file of this workspace.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"}},"description":"WORKSPACE_FROZEN: Business is paused, so team items are read-only.\nCONTENT_SUSPENDED: PDFTrackr suspended this file's content.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"}},"description":"POLICY_LOCKED: The team's locked link rules don't allow these settings (for example email_gate off).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"},"Retry-After":{"$ref":"#/components/headers/Retry-After"}},"description":"RATE_LIMITED: This key made more than 600 requests in a minute, or this IP address sent more than 30 requests a second (bursts of 20 allowed).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"}},"description":"INTEGRATIONS_UNAVAILABLE: The API is switched off on this server.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/links/{id}/stats":{"get":{"operationId":"get-link-stats","summary":"A share link's totals, the same numbers as its row on the file's Links tab: all time, or the visits that started at or after `since`. `views` counts visits (each time the link was opened) and `downloads` the visits that downloaded. `identified_readers` counts distinct reader email addresses; `anonymous_visitor_days` counts readers without one, once per day they came (the Links tab's \"visitors\", an estimate). `views_reached_end` counts the visits that reached the last page (`null` when the document's length is unknown or the file is download only). `total_reading_seconds` adds up the visits' reading time (`null` while no visit has a reading time, and for a file that is download only). `last_visit_at` is when the latest visit started. Hidden visits never count; likely bots don't count while bot filtering is on, exactly as on the dashboard. `since` echoes the window start applied (`null`: all time); `computed_at` is when these were counted. These are counted fresh on every request; the dashboard may show a cached copy up to an hour old.","x-required-scope":"visits:read","parameters":[{"name":"id","in":"path","required":true,"description":"A link `id` from GET /links.","schema":{"type":"string"}},{"name":"since","in":"query","required":false,"description":"Count visits that started at or after this time: ISO 8601 with seconds and a zone, e.g. `2026-11-01T00:00:00Z`. Default: all time, as the Links tab.","schema":{"type":"string"}}],"responses":{"200":{"description":"Success","headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"}},"content":{"application/json":{"example":{"views":1,"downloads":0,"identified_readers":1,"anonymous_visitor_days":0,"views_reached_end":0,"total_reading_seconds":245,"last_visit_at":"2026-11-20T10:38:02.000Z","since":null,"computed_at":"2026-11-21T12:00:00.000Z"}}}},"400":{"description":"VALIDATION_FAILED: The request also carried a browser session cookie.\nVALIDATION_FAILED: `since` isn't an ISO 8601 time with seconds and a zone.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"INVALID_API_KEY: The key is missing, malformed, unknown or revoked.\nKEY_OWNER_LEFT: The member who made the key has left the workspace. It stays refused if they rejoin.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"}},"description":"KEY_OWNER_DEMOTED: The member who made the key is no longer an owner or admin.\nINSUFFICIENT_SCOPE: The key doesn't have `visits:read`; `required_scope` names it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"}},"description":"SHARE_NOT_FOUND: `id` isn't a share link of this workspace, or it is a link inside a data room.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"},"Retry-After":{"$ref":"#/components/headers/Retry-After"}},"description":"RATE_LIMITED: This key made more than 600 requests in a minute, or this IP address sent more than 30 requests a second (bursts of 20 allowed).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"}},"description":"INTEGRATIONS_UNAVAILABLE: The API is switched off on this server.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/visits":{"get":{"operationId":"get-visits","summary":"Closed reader visits on the workspace's share links, newest first, 25 a page unless you send `limit` (at most 25 here). Each item is `id` (`vis_…`) plus the same fields as a `reader.finished` event's `data`, except that `visit.id` is this `id` and `analytics_url` opens the file's page; reader name and email are `null` when the workspace keeps them out of integrations. Still-open visits, hidden visits, likely bots, visits whose document failed to load, visits past their retention date and visits inside a data room are never listed. A page may hold fewer than `limit` items; stop only when `next_cursor` is `null`. A visit's numbers and `ended_at` can still change for a few minutes after it closes, when the reader's last page-view arrives late. Re-read with `since` a little earlier than your last run.","x-required-scope":"visits:read","parameters":[{"name":"since","in":"query","required":false,"description":"Only visits that ended at or after this time: ISO 8601 with seconds and a zone, e.g. `2026-11-20T09:00:00Z`.","schema":{"type":"string"}},{"name":"link_id","in":"query","required":false,"description":"Only this share link's visits (at most 64 characters). A link of another workspace or inside a data room matches nothing.","schema":{"type":"string"}},{"name":"file_id","in":"query","required":false,"description":"Only visits of this file (`file_118`, or the number alone). Another workspace's file matches nothing.","schema":{"oneOf":[{"type":"string"},{"type":"integer"}]}},{"name":"limit","in":"query","required":false,"description":"Items per page, 1 to 25. Default 25.","schema":{"type":"integer"}},{"name":"cursor","in":"query","required":false,"description":"The `next_cursor` of the previous page, unchanged. Send the same filters with it: the cursor doesn't keep them.","schema":{"type":"string"}}],"responses":{"200":{"description":"Success","headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"}},"content":{"application/json":{"example":{"visits":[{"id":"vis_5512","link":{"id":"aB3dE5fG7h","name":"Q4 deck for investors","url":"https://pdftrackr.com/view/aB3dE5fG7h","created_by":{"id":"usr_7","name":"User A","email":"sam@acme.example"}},"document":{"id":"file_118","title":"Q4 deck v3","page_count":12,"version_number":null,"file_type":"pdf"},"reader":{"email":"jordan@fund.example","name":"User C","email_verified":true,"country":"DE","device":"desktop"},"visit":{"id":"vis_5512","started_at":"2026-11-20T10:38:02.000Z","ended_at":"2026-11-20T10:42:07.000Z","duration_seconds":245,"pages_viewed":3,"furthest_page":4,"page_count":12,"completion_percent":33,"downloaded":false,"top_pages":[{"page":2,"seconds":62},{"page":4,"seconds":41},{"page":1,"seconds":20}],"visit_number":1},"analytics_url":"https://pdftrackr.com/dashboard/files/118"}],"next_cursor":null}}}},"400":{"description":"VALIDATION_FAILED: The request also carried a browser session cookie.\nVALIDATION_FAILED: `limit` isn't a whole number from 1 to 25, `cursor` isn't a `next_cursor` this list returned, `since` isn't an ISO 8601 time with seconds and a zone, `file_id` isn't a file id, or `link_id` is over 64 characters.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"INVALID_API_KEY: The key is missing, malformed, unknown or revoked.\nKEY_OWNER_LEFT: The member who made the key has left the workspace. It stays refused if they rejoin.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"}},"description":"KEY_OWNER_DEMOTED: The member who made the key is no longer an owner or admin.\nINSUFFICIENT_SCOPE: The key doesn't have `visits:read`; `required_scope` names it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"},"Retry-After":{"$ref":"#/components/headers/Retry-After"}},"description":"RATE_LIMITED: This key made more than 600 requests in a minute, or this IP address sent more than 30 requests a second (bursts of 20 allowed).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"}},"description":"INTEGRATIONS_UNAVAILABLE: The API is switched off on this server.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/rooms":{"get":{"operationId":"get-rooms","summary":"The workspace's data rooms, newest first, 25 a page unless you send `limit`. `url` is the room's reader address, on the team's custom domain while it is live. `status` is `open`, `closed` or `expired`. `documents_total` counts the documents in the room now; `people_total` counts the people who entered, leaving out removed and hidden people and teammates. Listed while Business is paused too.","x-required-scope":"rooms:read","parameters":[{"name":"limit","in":"query","required":false,"description":"Items per page, 1 to 100. Default 25.","schema":{"type":"integer"}},{"name":"cursor","in":"query","required":false,"description":"The `next_cursor` of the previous page, unchanged. Send the same filters with it: the cursor doesn't keep them.","schema":{"type":"string"}}],"responses":{"200":{"description":"Success","headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"}},"content":{"application/json":{"example":{"rooms":[{"id":"Vq3xT9bK2mPz7LwA","name":"Series A data room","url":"https://veodocs.com/r/Vq3xT9bK2mPz7LwA","status":"open","created_at":"2026-11-19T08:00:00.000Z","documents_total":1,"people_total":1}],"next_cursor":null}}}},"400":{"description":"VALIDATION_FAILED: The request also carried a browser session cookie.\nVALIDATION_FAILED: `limit` isn't a whole number from 1 to 100, or `cursor` isn't a `next_cursor` this list (or another list sorted by time) returned.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"INVALID_API_KEY: The key is missing, malformed, unknown or revoked.\nKEY_OWNER_LEFT: The member who made the key has left the workspace. It stays refused if they rejoin.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"}},"description":"KEY_OWNER_DEMOTED: The member who made the key is no longer an owner or admin.\nINSUFFICIENT_SCOPE: The key doesn't have `rooms:read`; `required_scope` names it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"},"Retry-After":{"$ref":"#/components/headers/Retry-After"}},"description":"RATE_LIMITED: This key made more than 600 requests in a minute, or this IP address sent more than 30 requests a second (bursts of 20 allowed).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"}},"description":"INTEGRATIONS_UNAVAILABLE: The API is switched off on this server.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"post":{"operationId":"post-room","summary":"Create a data room. It starts from the team's link defaults and locked rules, exactly as a room made in the dashboard; the key's maker is its creator and follows it. Add documents with POST /rooms/:id/items and people with POST /rooms/:id/people; every other setting is changed in the dashboard. Returns the room as GET /rooms lists it.","x-required-scope":"rooms:write","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["name"],"properties":{"name":{"type":"string","description":"1 to 120 characters, trimmed."}}}}}},"responses":{"201":{"description":"Success","headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"}},"content":{"application/json":{"example":{"room":{"id":"Hn5sW2cR8kTq4YbE","name":"Series B data room","url":"https://veodocs.com/r/Hn5sW2cR8kTq4YbE","status":"open","created_at":"2026-11-19T09:30:00.000Z","documents_total":0,"people_total":0}}}}},"400":{"description":"VALIDATION_FAILED: The request also carried a browser session cookie.\nVALIDATION_FAILED: `name` is missing, blank or longer than 120 characters, or another field was sent.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"INVALID_API_KEY: The key is missing, malformed, unknown or revoked.\nKEY_OWNER_LEFT: The member who made the key has left the workspace. It stays refused if they rejoin.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"}},"description":"KEY_OWNER_DEMOTED: The member who made the key is no longer an owner or admin.\nINSUFFICIENT_SCOPE: The key doesn't have `rooms:write`; `required_scope` names it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"}},"description":"WORKSPACE_FROZEN: Business is paused, so data rooms are read-only.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"}},"description":"ROOM_LIMIT: The workspace already has as many data rooms as a team can have.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"},"Retry-After":{"$ref":"#/components/headers/Retry-After"}},"description":"RATE_LIMITED: This key made more than 600 requests in a minute, or this IP address sent more than 30 requests a second (bursts of 20 allowed).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"}},"description":"INTEGRATIONS_UNAVAILABLE: The API is switched off on this server.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/rooms/{id}/people":{"get":{"operationId":"get-room-people","summary":"The people who entered a data room, most recently added first, 25 a page unless you send `limit` (at most 25 here), with the numbers the room's People tab shows. Each person: `reader` (name and email are `null` when the workspace keeps them out of integrations; `country` and `device` are always `null` here), `first_entered_at`, `last_entered_at`, `entries`, `removed`, `nda` (the NDA version they accepted last and when, or `null`) and `documents`: each document they opened, with `pages_viewed` and `seconds` (`null` for a file that is download only, whose `unit` is `null`), `downloaded` and the `version_number` they opened last. Hidden people and teammates are never listed. People removed from the room are listed with `removed: true` and what they read; `people_total` in GET /rooms leaves them out. Likely bots, hidden visits, visits whose document failed to load and visits past their retention date don't count. A page may hold fewer than `limit` items; stop only when `next_cursor` is `null`.","x-required-scope":"rooms:read","parameters":[{"name":"id","in":"path","required":true,"description":"A room `id` from GET /rooms.","schema":{"type":"string"}},{"name":"limit","in":"query","required":false,"description":"Items per page, 1 to 25. Default 25.","schema":{"type":"integer"}},{"name":"cursor","in":"query","required":false,"description":"The `next_cursor` of the previous page, unchanged. Send the same filters with it: the cursor doesn't keep them.","schema":{"type":"string"}}],"responses":{"200":{"description":"Success","headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"}},"content":{"application/json":{"example":{"people":[{"reader":{"email":"jordan@fund.example","name":"User C","email_verified":true,"country":null,"device":null},"first_entered_at":"2026-11-20T11:00:00.000Z","last_entered_at":"2026-11-21T09:15:00.000Z","entries":2,"removed":false,"nda":{"version":1,"accepted_at":"2026-11-20T11:00:05.000Z"},"documents":[{"id":"file_118","title":"Q4 deck v3","file_type":"pdf","unit":"pages","pages_viewed":3,"page_count":12,"seconds":185,"downloaded":false,"version_number":null}]}],"next_cursor":null}}}},"400":{"description":"VALIDATION_FAILED: The request also carried a browser session cookie.\nVALIDATION_FAILED: `limit` isn't a whole number from 1 to 25, or `cursor` isn't a `next_cursor` this list (or another list sorted by id) returned.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"INVALID_API_KEY: The key is missing, malformed, unknown or revoked.\nKEY_OWNER_LEFT: The member who made the key has left the workspace. It stays refused if they rejoin.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"}},"description":"BUSINESS_RESTART_REQUIRED: Business is paused, so who read what in a room stays hidden until it restarts.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"}},"description":"KEY_OWNER_DEMOTED: The member who made the key is no longer an owner or admin.\nINSUFFICIENT_SCOPE: The key doesn't have `rooms:read`; `required_scope` names it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"}},"description":"NOT_FOUND: `id` isn't a data room of this workspace.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"},"Retry-After":{"$ref":"#/components/headers/Retry-After"}},"description":"RATE_LIMITED: This key made more than 600 requests in a minute, or this IP address sent more than 30 requests a second (bursts of 20 allowed).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"}},"description":"INTEGRATIONS_UNAVAILABLE: The API is switched off on this server.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"post":{"operationId":"post-room-people","summary":"Let one person into a data room. The address joins the room's allow list (trimmed and lower-cased), and if the person was revoked they are let back in, as Restore does in the dashboard. A room without an allow list already lets in anyone who passes its other checks, so no list is started. They still pass the room's other checks (email code, password, NDA). Sending an address that may already enter changes nothing (`changed: false`). Returns the address and `changed`.","x-required-scope":"rooms:write","parameters":[{"name":"id","in":"path","required":true,"description":"A room `id` from GET /rooms.","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["email"],"properties":{"email":{"type":"string","description":"One email address, at most 255 characters. Not an `@domain`: those are set in the dashboard."}}}}}},"responses":{"200":{"description":"Success","headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"}},"content":{"application/json":{"example":{"email":"jordan@fund.example","changed":true}}}},"400":{"description":"VALIDATION_FAILED: The request also carried a browser session cookie.\nVALIDATION_FAILED: `email` is missing or isn't text, or another field was sent.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"INVALID_API_KEY: The key is missing, malformed, unknown or revoked.\nKEY_OWNER_LEFT: The member who made the key has left the workspace. It stays refused if they rejoin.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"}},"description":"KEY_OWNER_DEMOTED: The member who made the key is no longer an owner or admin.\nINSUFFICIENT_SCOPE: The key doesn't have `rooms:write`; `required_scope` names it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"}},"description":"NOT_FOUND: `id` isn't a data room of this workspace.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"}},"description":"WORKSPACE_FROZEN: Business is paused, so data rooms are read-only.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"}},"description":"VALIDATION_FAILED: `email` isn't one email address, or the room's block list would still keep it out (an address or `@domain` the team blocked by hand).\nROOM_LIMIT: The room's allow list already holds 500 entries.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"},"Retry-After":{"$ref":"#/components/headers/Retry-After"}},"description":"RATE_LIMITED: This key made more than 600 requests in a minute, or this IP address sent more than 30 requests a second (bursts of 20 allowed).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"}},"description":"INTEGRATIONS_UNAVAILABLE: The API is switched off on this server.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/rooms/{id}/stats":{"get":{"operationId":"get-room-stats","summary":"A data room's totals, the same numbers as its Activity tab, counted since the room opened (the report has no shorter window). `views` counts visits to its documents. `people` counts the people who entered, leaving out removed and hidden people and teammates; `nda_accepted` those who accepted the NDA. `documents_opened` counts the documents someone opened, of `documents_total` in the room now. `documents`: per document, as the By file table: `readers` (people), `views`, `total_reading_seconds`, `median_view_seconds`, `average_completion_percent` (`null` when the length is unknown) and `downloads` (people who downloaded); reading time is `null` for a file that is download only; documents removed from the room are listed with `removed: true`. Hidden people, teammates, likely bots, hidden visits, visits whose document failed to load and visits past their retention date don't count. While Business is paused, `paused` is `true`, `views` is still given and every other figure is `null` until it restarts. `since` is always `null`; `computed_at` is when these were counted. These are counted fresh on every request; the dashboard may show a cached copy up to an hour old.","x-required-scope":"rooms:read","parameters":[{"name":"id","in":"path","required":true,"description":"A room `id` from GET /rooms.","schema":{"type":"string"}},{"name":"since","in":"query","required":false,"description":"Not taken here: room totals count since the room opened, and a request with `since` is refused.","schema":{"type":"string"}}],"responses":{"200":{"description":"Success","headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"}},"content":{"application/json":{"example":{"paused":false,"views":1,"people":1,"nda_accepted":1,"documents_opened":1,"documents_total":1,"last_activity_at":"2026-11-21T09:18:15.000Z","documents":[{"id":"file_118","title":"Q4 deck v3","readers":1,"views":1,"total_reading_seconds":185,"median_view_seconds":185,"average_completion_percent":25,"downloads":0,"removed":false}],"since":null,"computed_at":"2026-11-21T12:00:00.000Z"}}}},"400":{"description":"VALIDATION_FAILED: The request also carried a browser session cookie.\nVALIDATION_FAILED: `since` was sent: room totals count since the room opened.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"INVALID_API_KEY: The key is missing, malformed, unknown or revoked.\nKEY_OWNER_LEFT: The member who made the key has left the workspace. It stays refused if they rejoin.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"}},"description":"KEY_OWNER_DEMOTED: The member who made the key is no longer an owner or admin.\nINSUFFICIENT_SCOPE: The key doesn't have `rooms:read`; `required_scope` names it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"}},"description":"NOT_FOUND: `id` isn't a data room of this workspace.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"},"Retry-After":{"$ref":"#/components/headers/Retry-After"}},"description":"RATE_LIMITED: This key made more than 600 requests in a minute, or this IP address sent more than 30 requests a second (bursts of 20 allowed).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"}},"description":"INTEGRATIONS_UNAVAILABLE: The API is switched off on this server.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/rooms/{id}/items":{"post":{"operationId":"post-room-items","summary":"Add a team file to a data room, as adding it in the dashboard does: the room gets its own link to the file, and the room's settings decide who reads it. Upload a new file first with POST /files/uploads. A file already in the room changes nothing (`added: false`); a file taken out of the room comes back. Returns `added` and the room as GET /rooms lists it.","x-required-scope":"rooms:write","parameters":[{"name":"id","in":"path","required":true,"description":"A room `id` from GET /rooms.","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["file_id"],"properties":{"file_id":{"oneOf":[{"type":"string"},{"type":"integer"}],"description":"A file `id` from GET /files, e.g. `file_118` (the number alone works too)."}}}}}},"responses":{"200":{"description":"Success","headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"}},"content":{"application/json":{"example":{"added":true,"room":{"id":"Vq3xT9bK2mPz7LwA","name":"Series A data room","url":"https://veodocs.com/r/Vq3xT9bK2mPz7LwA","status":"open","created_at":"2026-11-19T08:00:00.000Z","documents_total":2,"people_total":1}}}}},"400":{"description":"VALIDATION_FAILED: The request also carried a browser session cookie.\nVALIDATION_FAILED: `file_id` is missing or isn't a file id, or another field was sent.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"INVALID_API_KEY: The key is missing, malformed, unknown or revoked.\nKEY_OWNER_LEFT: The member who made the key has left the workspace. It stays refused if they rejoin.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"}},"description":"KEY_OWNER_DEMOTED: The member who made the key is no longer an owner or admin.\nINSUFFICIENT_SCOPE: The key doesn't have `rooms:write`; `required_scope` names it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"}},"description":"NOT_FOUND: `id` isn't a data room of this workspace.\nFILE_NOT_FOUND: `file_id` isn't a team file of this workspace.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"}},"description":"WORKSPACE_FROZEN: Business is paused, so data rooms are read-only.\nCONTENT_SUSPENDED: PDFTrackr suspended this room or this file, so nothing can be added.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"}},"description":"ROOM_LIMIT: The room already holds 1000 files.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"},"Retry-After":{"$ref":"#/components/headers/Retry-After"}},"description":"RATE_LIMITED: This key made more than 600 requests in a minute, or this IP address sent more than 30 requests a second (bursts of 20 allowed).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"}},"description":"INTEGRATIONS_UNAVAILABLE: The API is switched off on this server.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/rooms/{id}/people/{email}":{"delete":{"operationId":"delete-room-person","summary":"Keep one person out of a data room. Someone who entered is revoked, as Revoke does in the dashboard: they are signed out of the room at their next request and the address joins the room's block list. Revoking someone who entered works while Business is paused too. Someone who never entered is taken off the allow list; that is refused when it would still let them in (they are the list's last address, an `@domain` entry lets them in, or the room has no allow list): change the room's lists in the dashboard then. An address that already can't enter changes nothing (`changed: false`), so the call is safe to repeat. Returns the address and `changed`.","x-required-scope":"rooms:write","parameters":[{"name":"id","in":"path","required":true,"description":"A room `id` from GET /rooms.","schema":{"type":"string"}},{"name":"email","in":"path","required":true,"description":"The email address, URL-encoded (`@` as `%40`, `+` as `%2B`); any case, matched lower-cased.","schema":{"type":"string"}}],"responses":{"200":{"description":"Success","headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"}},"content":{"application/json":{"example":{"email":"jordan@fund.example","changed":true}}}},"400":{"description":"VALIDATION_FAILED: The request also carried a browser session cookie.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"INVALID_API_KEY: The key is missing, malformed, unknown or revoked.\nKEY_OWNER_LEFT: The member who made the key has left the workspace. It stays refused if they rejoin.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"}},"description":"KEY_OWNER_DEMOTED: The member who made the key is no longer an owner or admin.\nINSUFFICIENT_SCOPE: The key doesn't have `rooms:write`; `required_scope` names it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"}},"description":"NOT_FOUND: `id` isn't a data room of this workspace.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"}},"description":"WORKSPACE_FROZEN: Business is paused and the person never entered but may, so this would change the allow list, which is read-only while paused. Revoking someone who entered still works, and an address that already can't enter answers `changed: false`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"}},"description":"VALIDATION_FAILED: `email` isn't one email address, or taking it off the allow list would still let it in (the message says why: the last address on the list, an `@domain` entry, or no list).\nROOM_LIMIT: The room's block list already holds 500 entries.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"},"Retry-After":{"$ref":"#/components/headers/Retry-After"}},"description":"RATE_LIMITED: This key made more than 600 requests in a minute, or this IP address sent more than 30 requests a second (bursts of 20 allowed).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"}},"description":"INTEGRATIONS_UNAVAILABLE: The API is switched off on this server.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/links/{id}":{"patch":{"operationId":"patch-link","summary":"Change a share link on a team file: revoke it, turn it back on, set or clear its expiry, turn downloads on or off, or rename it. Send only the fields to change. To revoke a link, send `{\"is_active\": false}`: it stops opening for everyone at once; send `true` to turn it back on. The team's locked rules apply, as in the dashboard. Every other setting (password, email ask, allow and block lists, watermark and the rest) is changed in the dashboard only. Returns the link as GET /links lists it.","x-required-scope":"links:write","parameters":[{"name":"id","in":"path","required":true,"description":"A link `id` from GET /links.","schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":[],"properties":{"is_active":{"type":"boolean","description":"`false` revokes the link, `true` turns it back on. `\"true\"` and `\"false\"` are accepted too."},"expires_at":{"type":["string","null"],"description":"When the link stops working: ISO 8601 with seconds and a zone, e.g. `2026-12-31T23:59:59Z`. A time in the past is accepted and ends the link at once. `null` removes the expiry."},"allow_download":{"type":"boolean","description":"Let readers download the file. `\"true\"` and `\"false\"` are accepted too."},"name":{"type":"string","description":"1 to 255 characters; spaces at either end are dropped, so a name of only spaces is refused."}}}}}},"responses":{"200":{"description":"Success","headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"}},"content":{"application/json":{"example":{"link":{"id":"aB3dE5fG7h","name":"Q4 deck for investors","url":"https://pdftrackr.com/view/aB3dE5fG7h","email_gate":true,"allow_download":false,"expires_at":null,"is_active":false,"created_at":"2026-11-18T14:20:00.000Z","document":{"id":"file_118","title":"Q4 deck v3"}}}}}},"400":{"description":"VALIDATION_FAILED: The request also carried a browser session cookie.\nVALIDATION_FAILED: A field is of the wrong type or out of range, a field other than these four was sent, or none was.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"INVALID_API_KEY: The key is missing, malformed, unknown or revoked.\nKEY_OWNER_LEFT: The member who made the key has left the workspace. It stays refused if they rejoin.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"}},"description":"KEY_OWNER_DEMOTED: The member who made the key is no longer an owner or admin.\nINSUFFICIENT_SCOPE: The key doesn't have `links:write`; `required_scope` names it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"}},"description":"SHARE_NOT_FOUND: `id` isn't a share link of this workspace, or it is a link inside a data room, which is changed in the dashboard only.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"}},"description":"WORKSPACE_FROZEN: Business is paused: a paused Business may still revoke a link or turn downloads off; any other change is refused.\nCONTENT_SUSPENDED: PDFTrackr suspended this link's content, so it can't be turned back on.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"422":{"headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"}},"description":"POLICY_LOCKED: The team's locked link rules don't allow this change (for example downloads on, or an expiry later than the rules allow, or none).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"},"Retry-After":{"$ref":"#/components/headers/Retry-After"}},"description":"RATE_LIMITED: This key made more than 600 requests in a minute, or this IP address sent more than 30 requests a second (bursts of 20 allowed).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"}},"description":"INTEGRATIONS_UNAVAILABLE: The API is switched off on this server.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/activity":{"get":{"operationId":"get-activity","summary":"The team activity log, as Settings → Activity log shows it, newest first, 25 a page unless you send `limit`. Each item: `id` (`act_…`), `type` (what happened, e.g. `file.deleted` or `member.joined`), `actor` (the teammate who did it: `id`, `name` and `email`, or `null` when PDFTrackr did it or the account was deleted), `subject` (what it happened to: `kind` is `file`, `link`, `person`, `invite` or `room`, with its `id` and its `title` now, `null` once it is deleted; or `null`) and `occurred_at`. Reader activity (opens, visits, downloads, room entries, refused readers) is never in it. Billing entries are listed only when the key's maker is the owner, as in Settings. Readable while Business is paused too.","x-required-scope":"activity:read","parameters":[{"name":"since","in":"query","required":false,"description":"Only entries at or after this time: ISO 8601 with seconds and a zone, e.g. `2026-11-20T09:00:00Z`.","schema":{"type":"string"}},{"name":"type","in":"query","required":false,"description":"Only these types, comma-separated, as items' `type` shows them (e.g. `file.deleted,link.created`). A type the log doesn't keep is refused.","schema":{"type":"string"}},{"name":"person","in":"query","required":false,"description":"Only what this teammate did: an actor `id` (`usr_7`, or the number alone).","schema":{"type":"string"}},{"name":"limit","in":"query","required":false,"description":"Items per page, 1 to 100. Default 25.","schema":{"type":"integer"}},{"name":"cursor","in":"query","required":false,"description":"The `next_cursor` of the previous page, unchanged. Send the same filters with it: the cursor doesn't keep them.","schema":{"type":"string"}}],"responses":{"200":{"description":"Success","headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"}},"content":{"application/json":{"example":{"activity":[{"id":"act_3302","type":"link.created","actor":{"id":"usr_7","name":"User A","email":"sam@acme.example"},"subject":{"kind":"link","id":"aB3dE5fG7h","title":"Q4 deck for investors"},"occurred_at":"2026-11-18T14:20:01.000Z"},{"id":"act_3301","type":"file.added","actor":{"id":"usr_7","name":"User A","email":"sam@acme.example"},"subject":{"kind":"file","id":"file_118","title":"Q4 deck v3"},"occurred_at":"2026-11-17T09:00:01.000Z"}],"next_cursor":null}}}},"400":{"description":"VALIDATION_FAILED: The request also carried a browser session cookie.\nVALIDATION_FAILED: `limit` isn't a whole number from 1 to 100, `cursor` isn't a `next_cursor` this list (or another list sorted by id) returned, `since` isn't an ISO 8601 time with seconds and a zone, `type` names a type the log doesn't keep, or `person` isn't a person id.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"INVALID_API_KEY: The key is missing, malformed, unknown or revoked.\nKEY_OWNER_LEFT: The member who made the key has left the workspace. It stays refused if they rejoin.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"}},"description":"KEY_OWNER_DEMOTED: The member who made the key is no longer an owner or admin.\nINSUFFICIENT_SCOPE: The key doesn't have `activity:read`; `required_scope` names it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"},"Retry-After":{"$ref":"#/components/headers/Retry-After"}},"description":"RATE_LIMITED: This key made more than 600 requests in a minute, or this IP address sent more than 30 requests a second (bursts of 20 allowed).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"}},"description":"INTEGRATIONS_UNAVAILABLE: The API is switched off on this server.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/files/{id}":{"delete":{"operationId":"delete-file","summary":"Delete a team file for good, as Delete does in the dashboard: every version, its previews and print views, its share links (which stop opening at once) and their cover images go with it, and it leaves every data room it is in. Its visits and numbers go too. Like the dashboard, deleting works while Business is paused. The team activity log records it as `file.deleted`. Only a key made with `files:delete` ticked can do this: Full access and Read only keys can't. This can't be undone. Returns `deleted: true`.","x-required-scope":"files:delete","parameters":[{"name":"id","in":"path","required":true,"description":"A file `id` from GET /files (`file_118`, or the number alone).","schema":{"type":"string"}}],"responses":{"200":{"description":"Success","headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"}},"content":{"application/json":{"example":{"deleted":true}}}},"400":{"description":"VALIDATION_FAILED: The request also carried a browser session cookie.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"INVALID_API_KEY: The key is missing, malformed, unknown or revoked.\nKEY_OWNER_LEFT: The member who made the key has left the workspace. It stays refused if they rejoin.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"}},"description":"KEY_OWNER_DEMOTED: The member who made the key is no longer an owner or admin.\nINSUFFICIENT_SCOPE: The key doesn't have `files:delete`; `required_scope` names it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"}},"description":"FILE_NOT_FOUND: `id` isn't a team file of this workspace (or it was already deleted). A teammate's personal file is never reachable.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"},"Retry-After":{"$ref":"#/components/headers/Retry-After"}},"description":"RATE_LIMITED: This key made more than 600 requests in a minute, or this IP address sent more than 30 requests a second (bursts of 20 allowed).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"headers":{"X-RateLimit-Limit":{"$ref":"#/components/headers/X-RateLimit-Limit"},"X-RateLimit-Remaining":{"$ref":"#/components/headers/X-RateLimit-Remaining"},"X-RateLimit-Reset":{"$ref":"#/components/headers/X-RateLimit-Reset"}},"description":"INTEGRATIONS_UNAVAILABLE: The API is switched off on this server.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}}}}