API reference (v1)

Last updated: 24 Nov 2026

Overview

Use the API from your own code to work with your team's files and share links, and to send events to a URL you choose. Requests and responses are JSON, over HTTPS only. Base URL: https://pdftrackr.com/api/v1

Send the API key without a browser session (server to server). (VALIDATION_FAILED)

Authentication

The team's owner and admins make API keys in Settings → Integrations → API keys. A key is shown once, when it is made. Send it in a header:

Authorization: Bearer pdt_live_…

A key acts as the member who made it, with that member's current role. Revoke it in the same place; anything that uses it stops working at once.

Each endpoint below needs one scope; GET /me needs none and returns the key's scopes. You pick a key's scopes when you make it:

  • Full access (the default, and every key made before scopes): every scope except files:delete, including scopes added later.
  • Read only: every :read scope plus events:subscribe, including read scopes added later. It lists, reads and subscribes; it never creates, changes or deletes files, links or rooms.
  • Choose scopes: only the scopes ticked when the key was made. The list doesn't grow when scopes are added. A key's scopes can't be changed later: make a new key.
  • files:read: GET /files, GET /files/:id/versions, GET /folders and GET /files/uploads/:upload_id. Hooks and samples of file.* events need it too.
  • files:write: POST /files/uploads and POST /files/uploads/:upload_id/complete.
  • files:delete: DELETE /files/:id. It is in neither preset: only a key made with this scope ticked has it.
  • links:read: GET /links. Hooks and samples of link.* events need it too.
  • links:write: POST /links and PATCH /links/:id.
  • visits:read: GET /visits, GET /files/:id/stats and GET /links/:id/stats. Hooks and samples of reader.* events need it too.
  • rooms:read: GET /rooms, GET /rooms/:id/people and GET /rooms/:id/stats.
  • rooms:write: POST /rooms, POST /rooms/:id/items, POST /rooms/:id/people and DELETE /rooms/:id/people/:email.
  • activity:read: GET /activity.
  • events:subscribe: GET /hooks, POST /hooks, DELETE /hooks/:id and GET /samples/:event. A hook or sample also needs the read scope of its event: reader.* needs visits:read, link.* needs links:read, file.* needs files:read, member.* needs none.

Before any of these checks, each IP address may send 30 requests a second (bursts of 20). Then every request is checked in this order; the first check that fails is the answer:

StatusCodeMeaning
400VALIDATION_FAILEDThe request also carried a browser session cookie.
401INVALID_API_KEYThe key is missing, malformed, unknown or revoked.
401KEY_OWNER_LEFTThe member who made the key has left the workspace. It stays refused if they rejoin.
429RATE_LIMITEDThis key made more than 600 requests in a minute, or this IP address sent more than 30 requests a second (bursts of 20 allowed).
403KEY_OWNER_DEMOTEDThe member who made the key is no longer an owner or admin.
503INTEGRATIONS_UNAVAILABLEThe API is switched off on this server.

Then the endpoint's scope: a key without it gets INSUFFICIENT_SCOPE (403), with required_scope naming the scope it needs.

Quick start

Put the key in an environment variable and test it:

curl \
  https://pdftrackr.com/api/v1/me \
  -H "Authorization: Bearer $PDFTRACKR_KEY"
{
  "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"
  ]
}

Pagination

GET /hooks, GET /files, GET /files/:id/versions, GET /folders, GET /links, GET /visits, GET /rooms, GET /rooms/:id/people and GET /activity return 25 items a page, newest first. Send limit (1 to 100; at most 25 on GET /visits; at most 25 on GET /rooms/:id/people) for another page size. Each response carries next_cursor: send it back as cursor to get the next page. It is null on the last page. A page may hold fewer items than you asked for: stop only when next_cursor is null.

The cursor doesn't keep your filters: send search (and any other filter) again, unchanged, with every page. A cursor only marks a place in a list, nothing secret: the last item's time and id on lists sorted by time (GET /hooks, GET /files, GET /folders, GET /links and GET /rooms), its id alone on GET /visits, GET /rooms/:id/people and GET /activity, and its version number on GET /files/:id/versions. Used on another list sorted the same way it doesn't fail: that list starts from the same point. Sent to a list sorted the other way, it answers VALIDATION_FAILED (400). GET /samples/:event isn't paged; it returns up to 3 events.

cursor=""
while :; do
  page=$(curl -s "https://pdftrackr.com/api/v1/files?limit=100${cursor:+&cursor=$cursor}" \
    -H "Authorization: Bearer $PDFTRACKR_KEY")
  echo "$page" | jq -c '.files[]'
  cursor=$(echo "$page" | jq -r '.next_cursor // empty')
  [ -z "$cursor" ] && break
done

Endpoints

GET /me

The key's workspace and the key's name. Use it to test a key.

Required scope: none

curl \
  https://pdftrackr.com/api/v1/me \
  -H "Authorization: Bearer $PDFTRACKR_KEY"

Response 200:

{
  "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"
  ]
}

POST /hooks

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).

Required scope: events:subscribe

NameInTypeRequiredRules
eventbodystringyesAn event type listed under Events and hooks.
target_urlbodystringyesA public HTTPS URL, at most 2048 characters.
link_idbodystringnoA 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.
curl \
  -X POST https://pdftrackr.com/api/v1/hooks \
  -H "Content-Type: application/json" \
  -d '{"event":"reader.finished","target_url":"https://example.com/hooks/pdftrackr","link_id":"aB3dE5fG7h"}' \
  -H "Authorization: Bearer $PDFTRACKR_KEY"

Response 201:

{
  "id": 981,
  "secret": "whsec_0000000000000000000000000000000000000000000"
}

Errors, beyond the authentication errors:

StatusCodeMeaning
403INSUFFICIENT_SCOPEThe 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.
400VALIDATION_FAILEDA body field is missing, of the wrong type or out of range.
422VALIDATION_FAILEDlink_id was sent with an event that isn't about a link, or the event type isn't available on this server.
422INVALID_WEBHOOK_URLThe target URL can't be used (for example not public HTTPS); reason says why.
404SHARE_NOT_FOUNDlink_id isn't a share link of this workspace, or the link is inside a data room.
409INTEGRATION_LIMITThe workspace already has 50 hooks, or 3 webhook endpoints at this URL's site.

DELETE /hooks/:id

Unsubscribe a hook this key made. Idempotent: a hook that is gone or isn't this key's answers deleted: false.

Required scope: events:subscribe

NameInTypeRequiredRules
idpathintegeryesThe id from POST /hooks.
curl \
  -X DELETE https://pdftrackr.com/api/v1/hooks/981 \
  -H "Authorization: Bearer $PDFTRACKR_KEY"

Response 200:

{
  "deleted": true
}

Errors, beyond the authentication errors:

StatusCodeMeaning
403INSUFFICIENT_SCOPEThe key doesn't have events:subscribe; required_scope names it.

GET /hooks

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.

Required scope: events:subscribe

NameInTypeRequiredRules
limitqueryintegernoItems per page, 1 to 100. Default 25.
cursorquerystringnoThe next_cursor of the previous page, unchanged. Send the same filters with it: the cursor doesn't keep them.
curl \
  https://pdftrackr.com/api/v1/hooks \
  -H "Authorization: Bearer $PDFTRACKR_KEY"

Response 200:

{
  "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
}

Errors, beyond the authentication errors:

StatusCodeMeaning
403INSUFFICIENT_SCOPEThe key doesn't have events:subscribe; required_scope names it.
400VALIDATION_FAILEDlimit 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.

GET /samples/:event

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.

Required scope: events:subscribe

NameInTypeRequiredRules
eventpathstringyesA public event type other than test.ping.
curl \
  https://pdftrackr.com/api/v1/samples/reader.finished \
  -H "Authorization: Bearer $PDFTRACKR_KEY"

Response 200:

[
  {
    "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": "[email protected]"
        }
      },
      "document": {
        "id": "file_118",
        "title": "Q4 deck v3",
        "page_count": 14,
        "version_number": 3,
        "file_type": "pdf"
      },
      "reader": {
        "email": "[email protected]",
        "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"
    }
  }
]

Errors, beyond the authentication errors:

StatusCodeMeaning
403INSUFFICIENT_SCOPEThe 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.
404NOT_FOUNDNot a public event type, or test.ping.

GET /files

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.

Required scope: files:read

NameInTypeRequiredRules
searchquerystringnoTitle contains this text (case-insensitive); the first 100 characters are used.
folder_idquerystringnoOnly 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.
limitqueryintegernoItems per page, 1 to 100. Default 25.
cursorquerystringnoThe next_cursor of the previous page, unchanged. Send the same filters with it: the cursor doesn't keep them.
curl \
  https://pdftrackr.com/api/v1/files \
  -H "Authorization: Bearer $PDFTRACKR_KEY"

Response 200:

{
  "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
}

Errors, beyond the authentication errors:

StatusCodeMeaning
403INSUFFICIENT_SCOPEThe key doesn't have files:read; required_scope names it.
400VALIDATION_FAILEDlimit 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.

GET /files/:id/versions

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.

Required scope: files:read

NameInTypeRequiredRules
idpathstringyesA file id from GET /files (file_118, or the number alone).
limitqueryintegernoItems per page, 1 to 100. Default 25.
cursorquerystringnoThe next_cursor of the previous page, unchanged. Send the same filters with it: the cursor doesn't keep them.
curl \
  https://pdftrackr.com/api/v1/files/file_119/versions \
  -H "Authorization: Bearer $PDFTRACKR_KEY"

Response 200:

{
  "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
}

Errors, beyond the authentication errors:

StatusCodeMeaning
403INSUFFICIENT_SCOPEThe key doesn't have files:read; required_scope names it.
400VALIDATION_FAILEDlimit 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.
404FILE_NOT_FOUNDid isn't a team file of this workspace.

GET /files/:id/stats

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.

Required scope: visits:read

NameInTypeRequiredRules
idpathstringyesA file id from GET /files (file_118, or the number alone).
sincequerystringnoCount 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.
curl \
  "https://pdftrackr.com/api/v1/files/file_118/stats?since=2026-11-01T00:00:00Z" \
  -H "Authorization: Bearer $PDFTRACKR_KEY"

Response 200:

{
  "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"
}

Errors, beyond the authentication errors:

StatusCodeMeaning
403INSUFFICIENT_SCOPEThe key doesn't have visits:read; required_scope names it.
400VALIDATION_FAILEDsince isn't an ISO 8601 time with seconds and a zone, or is more than 365 days ago.
404FILE_NOT_FOUNDid isn't a team file of this workspace.

GET /folders

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.

Required scope: files:read

NameInTypeRequiredRules
limitqueryintegernoItems per page, 1 to 100. Default 25.
cursorquerystringnoThe next_cursor of the previous page, unchanged. Send the same filters with it: the cursor doesn't keep them.
curl \
  https://pdftrackr.com/api/v1/folders \
  -H "Authorization: Bearer $PDFTRACKR_KEY"

Response 200:

{
  "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
}

Errors, beyond the authentication errors:

StatusCodeMeaning
403INSUFFICIENT_SCOPEThe key doesn't have files:read; required_scope names it.
400VALIDATION_FAILEDlimit 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.

POST /files/uploads

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.

Required scope: files:write

NameInTypeRequiredRules
file_namebodystringyesThe file's name, at most 255 characters. Its last extension decides the type (case-insensitive).
sizebodyintegeryesThe 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_idbodystringnoUpload 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.
curl \
  -X POST https://pdftrackr.com/api/v1/files/uploads \
  -H "Content-Type: application/json" \
  -d '{"file_name":"Q4.pdf","size":1048576}' \
  -H "Authorization: Bearer $PDFTRACKR_KEY"

Response 201:

{
  "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
}

Errors, beyond the authentication errors:

StatusCodeMeaning
403INSUFFICIENT_SCOPEThe key doesn't have files:write; required_scope names it.
400VALIDATION_FAILEDA body field is missing, of the wrong type or out of range.
409WORKSPACE_FROZENBusiness is paused, so team items are read-only.
400FILE_INVALID_TYPEThe 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.
400QUOTA_EXCEEDEDThe workspace's storage or file count would go over its plan.
404FILE_NOT_FOUNDfile_id isn't a team file of this workspace.
413FILE_TOO_LARGEThe file is over the plan's file size.
429RATE_LIMITEDThis key started more than 30 uploads in the last hour.

POST /files/uploads/:upload_id/complete

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.

Required scope: files:write

NameInTypeRequiredRules
upload_idpathstringyesThe upload_id from POST /files/uploads.
titlebodystringnoAt most 255 characters. Defaults to the file name.
descriptionbodystringnoAt most 1000 characters.
folder_idbodystringnoFile 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.
curl \
  -X POST https://pdftrackr.com/api/v1/files/uploads/Vb4nR8sKq2LmZ7xYt3WdP/complete \
  -H "Content-Type: application/json" \
  -d '{"title":"Q4 deck"}' \
  -H "Authorization: Bearer $PDFTRACKR_KEY"

Response 202:

{
  "upload_id": "Vb4nR8sKq2LmZ7xYt3WdP"
}

Errors, beyond the authentication errors:

StatusCodeMeaning
403INSUFFICIENT_SCOPEThe key doesn't have files:write; required_scope names it.
400VALIDATION_FAILEDA body field is missing, of the wrong type or out of range.
409WORKSPACE_FROZENBusiness is paused, so team items are read-only.
404NOT_FOUNDNo upload with this id was started by this key's maker in this workspace, or it is more than 24 hours old.
404FOLDER_NOT_FOUNDfolder_id isn't a team folder of this workspace.
400FILE_INVALID_TYPEThe 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.
400QUOTA_EXCEEDEDThe workspace's storage or file count would go over its plan.
404FILE_NOT_FOUNDfile_id isn't a team file of this workspace.
413FILE_TOO_LARGEThe file is over the plan's file size.
400NO_FILE_PROVIDEDThe bytes haven't arrived at upload_url (yet); expected_size is the byte count the URL was signed for.
409UPLOAD_ALREADY_COMPLETEDAnother complete call for this upload is already running.

GET /files/uploads/:upload_id

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.

Required scope: files:read

NameInTypeRequiredRules
upload_idpathstringyesThe upload_id from POST /files/uploads.
curl \
  https://pdftrackr.com/api/v1/files/uploads/Vb4nR8sKq2LmZ7xYt3WdP \
  -H "Authorization: Bearer $PDFTRACKR_KEY"

Response 200:

{
  "status": "ready",
  "file_id": "file_120"
}

Errors, beyond the authentication errors:

StatusCodeMeaning
403INSUFFICIENT_SCOPEThe key doesn't have files:read; required_scope names it.
404NOT_FOUNDNo upload with this id was started by this key's maker in this workspace, or it is more than 24 hours old.

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.

Required scope: links:read

NameInTypeRequiredRules
searchquerystringnoLink name or document title contains this text (case-insensitive); the first 100 characters are used.
limitqueryintegernoItems per page, 1 to 100. Default 25.
cursorquerystringnoThe next_cursor of the previous page, unchanged. Send the same filters with it: the cursor doesn't keep them.
curl \
  "https://pdftrackr.com/api/v1/links?search=deck" \
  -H "Authorization: Bearer $PDFTRACKR_KEY"

Response 200:

{
  "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
}

Errors, beyond the authentication errors:

StatusCodeMeaning
403INSUFFICIENT_SCOPEThe key doesn't have links:read; required_scope names it.
400VALIDATION_FAILEDlimit 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.

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.

Required scope: visits:read

NameInTypeRequiredRules
idpathstringyesA link id from GET /links.
sincequerystringnoCount 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.
curl \
  https://pdftrackr.com/api/v1/links/aB3dE5fG7h/stats \
  -H "Authorization: Bearer $PDFTRACKR_KEY"

Response 200:

{
  "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"
}

Errors, beyond the authentication errors:

StatusCodeMeaning
403INSUFFICIENT_SCOPEThe key doesn't have visits:read; required_scope names it.
400VALIDATION_FAILEDsince isn't an ISO 8601 time with seconds and a zone.
404SHARE_NOT_FOUNDid isn't a share link of this workspace, or it is a link inside a data room.

GET /visits

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.

Required scope: visits:read

NameInTypeRequiredRules
sincequerystringnoOnly visits that ended at or after this time: ISO 8601 with seconds and a zone, e.g. 2026-11-20T09:00:00Z.
link_idquerystringnoOnly this share link's visits (at most 64 characters). A link of another workspace or inside a data room matches nothing.
file_idquerystringnoOnly visits of this file (file_118, or the number alone). Another workspace's file matches nothing.
limitqueryintegernoItems per page, 1 to 25. Default 25.
cursorquerystringnoThe next_cursor of the previous page, unchanged. Send the same filters with it: the cursor doesn't keep them.
curl \
  "https://pdftrackr.com/api/v1/visits?since=2026-11-20T00:00:00Z" \
  -H "Authorization: Bearer $PDFTRACKR_KEY"

Response 200:

{
  "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": "[email protected]"
        }
      },
      "document": {
        "id": "file_118",
        "title": "Q4 deck v3",
        "page_count": 12,
        "version_number": null,
        "file_type": "pdf"
      },
      "reader": {
        "email": "[email protected]",
        "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
}

Errors, beyond the authentication errors:

StatusCodeMeaning
403INSUFFICIENT_SCOPEThe key doesn't have visits:read; required_scope names it.
400VALIDATION_FAILEDlimit 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.

GET /rooms

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.

Required scope: rooms:read

NameInTypeRequiredRules
limitqueryintegernoItems per page, 1 to 100. Default 25.
cursorquerystringnoThe next_cursor of the previous page, unchanged. Send the same filters with it: the cursor doesn't keep them.
curl \
  https://pdftrackr.com/api/v1/rooms \
  -H "Authorization: Bearer $PDFTRACKR_KEY"

Response 200:

{
  "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
}

Errors, beyond the authentication errors:

StatusCodeMeaning
403INSUFFICIENT_SCOPEThe key doesn't have rooms:read; required_scope names it.
400VALIDATION_FAILEDlimit 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.

GET /rooms/:id/people

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.

Required scope: rooms:read

NameInTypeRequiredRules
idpathstringyesA room id from GET /rooms.
limitqueryintegernoItems per page, 1 to 25. Default 25.
cursorquerystringnoThe next_cursor of the previous page, unchanged. Send the same filters with it: the cursor doesn't keep them.
curl \
  https://pdftrackr.com/api/v1/rooms/Vq3xT9bK2mPz7LwA/people \
  -H "Authorization: Bearer $PDFTRACKR_KEY"

Response 200:

{
  "people": [
    {
      "reader": {
        "email": "[email protected]",
        "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
}

Errors, beyond the authentication errors:

StatusCodeMeaning
403INSUFFICIENT_SCOPEThe key doesn't have rooms:read; required_scope names it.
400VALIDATION_FAILEDlimit 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.
404NOT_FOUNDid isn't a data room of this workspace.
402BUSINESS_RESTART_REQUIREDBusiness is paused, so who read what in a room stays hidden until it restarts.

GET /rooms/:id/stats

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.

Required scope: rooms:read

NameInTypeRequiredRules
idpathstringyesA room id from GET /rooms.
sincequerystringnoNot taken here: room totals count since the room opened, and a request with since is refused.
curl \
  https://pdftrackr.com/api/v1/rooms/Vq3xT9bK2mPz7LwA/stats \
  -H "Authorization: Bearer $PDFTRACKR_KEY"

Response 200:

{
  "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"
}

Errors, beyond the authentication errors:

StatusCodeMeaning
403INSUFFICIENT_SCOPEThe key doesn't have rooms:read; required_scope names it.
400VALIDATION_FAILEDsince was sent: room totals count since the room opened.
404NOT_FOUNDid isn't a data room of this workspace.

POST /rooms

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.

Required scope: rooms:write

NameInTypeRequiredRules
namebodystringyes1 to 120 characters, trimmed.
curl \
  -X POST https://pdftrackr.com/api/v1/rooms \
  -H "Content-Type: application/json" \
  -d '{"name":"Series B data room"}' \
  -H "Authorization: Bearer $PDFTRACKR_KEY"

Response 201:

{
  "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
  }
}

Errors, beyond the authentication errors:

StatusCodeMeaning
403INSUFFICIENT_SCOPEThe key doesn't have rooms:write; required_scope names it.
400VALIDATION_FAILEDname is missing, blank or longer than 120 characters, or another field was sent.
409WORKSPACE_FROZENBusiness is paused, so data rooms are read-only.
422ROOM_LIMITThe workspace already has as many data rooms as a team can have.

POST /rooms/:id/items

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.

Required scope: rooms:write

NameInTypeRequiredRules
idpathstringyesA room id from GET /rooms.
file_idbodystringyesA file id from GET /files, e.g. file_118 (the number alone works too).
curl \
  -X POST https://pdftrackr.com/api/v1/rooms/Vq3xT9bK2mPz7LwA/items \
  -H "Content-Type: application/json" \
  -d '{"file_id":"file_119"}' \
  -H "Authorization: Bearer $PDFTRACKR_KEY"

Response 200:

{
  "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
  }
}

Errors, beyond the authentication errors:

StatusCodeMeaning
403INSUFFICIENT_SCOPEThe key doesn't have rooms:write; required_scope names it.
400VALIDATION_FAILEDfile_id is missing or isn't a file id, or another field was sent.
404NOT_FOUNDid isn't a data room of this workspace.
404FILE_NOT_FOUNDfile_id isn't a team file of this workspace.
409WORKSPACE_FROZENBusiness is paused, so data rooms are read-only.
409CONTENT_SUSPENDEDPDFTrackr suspended this room or this file, so nothing can be added.
422ROOM_LIMITThe room already holds 1000 files.

Grant access to a data roomPOST /rooms/:id/people

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.

Required scope: rooms:write

NameInTypeRequiredRules
idpathstringyesA room id from GET /rooms.
emailbodystringyesOne email address, at most 255 characters. Not an @domain: those are set in the dashboard.
curl \
  -X POST https://pdftrackr.com/api/v1/rooms/Vq3xT9bK2mPz7LwA/people \
  -H "Content-Type: application/json" \
  -d '{"email":"[email protected]"}' \
  -H "Authorization: Bearer $PDFTRACKR_KEY"

Response 200:

{
  "email": "[email protected]",
  "changed": true
}

Errors, beyond the authentication errors:

StatusCodeMeaning
403INSUFFICIENT_SCOPEThe key doesn't have rooms:write; required_scope names it.
400VALIDATION_FAILEDemail is missing or isn't text, or another field was sent.
422VALIDATION_FAILEDemail 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).
404NOT_FOUNDid isn't a data room of this workspace.
409WORKSPACE_FROZENBusiness is paused, so data rooms are read-only.
422ROOM_LIMITThe room's allow list already holds 500 entries.

Revoke access to a data roomDELETE /rooms/:id/people/:email

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.

Required scope: rooms:write

NameInTypeRequiredRules
idpathstringyesA room id from GET /rooms.
emailpathstringyesThe email address, URL-encoded (@ as %40, + as %2B); any case, matched lower-cased.
curl \
  -X DELETE https://pdftrackr.com/api/v1/rooms/Vq3xT9bK2mPz7LwA/people/jordan%40fund.example \
  -H "Authorization: Bearer $PDFTRACKR_KEY"

Response 200:

{
  "email": "[email protected]",
  "changed": true
}

Errors, beyond the authentication errors:

StatusCodeMeaning
403INSUFFICIENT_SCOPEThe key doesn't have rooms:write; required_scope names it.
422VALIDATION_FAILEDemail 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).
404NOT_FOUNDid isn't a data room of this workspace.
409WORKSPACE_FROZENBusiness 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.
422ROOM_LIMITThe room's block list already holds 500 entries.

POST /links

Create a share link on a team file. The team's link defaults fill what you leave out, and its locked rules apply.

Required scope: links:write

NameInTypeRequiredRules
file_idbodystringyesA file id from GET /files (file_118), or the number alone.
namebodystringnoAt most 255 characters. Defaults to the document title.
email_gatebodybooleannoAsk readers for their email. "true" and "false" are accepted too.
allow_downloadbodybooleannoLet readers download the file. "true" and "false" are accepted too.
expires_in_daysbodyintegerno1 to 3650. The link stops working after this many days.
curl \
  -X POST https://pdftrackr.com/api/v1/links \
  -H "Content-Type: application/json" \
  -d '{"file_id":"file_118","name":"Q4 deck for partners","email_gate":true,"expires_in_days":30}' \
  -H "Authorization: Bearer $PDFTRACKR_KEY"

Response 201:

{
  "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"
}

Errors, beyond the authentication errors:

StatusCodeMeaning
403INSUFFICIENT_SCOPEThe key doesn't have links:write; required_scope names it.
400VALIDATION_FAILEDA body field is missing, of the wrong type or out of range.
409WORKSPACE_FROZENBusiness is paused, so team items are read-only.
404FILE_NOT_FOUNDfile_id isn't a team file of this workspace.
409CONTENT_SUSPENDEDPDFTrackr suspended this file's content.
422POLICY_LOCKEDThe team's locked link rules don't allow these settings (for example email_gate off).
400EMAIL_GATING_REQUIREDThe team's defaults turn on email verification, which needs the email ask.

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.

Required scope: links:write

NameInTypeRequiredRules
idpathstringyesA link id from GET /links.
is_activebodybooleannofalse revokes the link, true turns it back on. "true" and "false" are accepted too.
expires_atbodystringnoWhen 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_downloadbodybooleannoLet readers download the file. "true" and "false" are accepted too.
namebodystringno1 to 255 characters; spaces at either end are dropped, so a name of only spaces is refused.
curl \
  -X PATCH https://pdftrackr.com/api/v1/links/aB3dE5fG7h \
  -H "Content-Type: application/json" \
  -d '{"is_active":false}' \
  -H "Authorization: Bearer $PDFTRACKR_KEY"

Response 200:

{
  "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"
    }
  }
}

Errors, beyond the authentication errors:

StatusCodeMeaning
403INSUFFICIENT_SCOPEThe key doesn't have links:write; required_scope names it.
400VALIDATION_FAILEDA field is of the wrong type or out of range, a field other than these four was sent, or none was.
409WORKSPACE_FROZENBusiness is paused: a paused Business may still revoke a link or turn downloads off; any other change is refused.
404SHARE_NOT_FOUNDid isn't a share link of this workspace, or it is a link inside a data room, which is changed in the dashboard only.
409CONTENT_SUSPENDEDPDFTrackr suspended this link's content, so it can't be turned back on.
422POLICY_LOCKEDThe team's locked link rules don't allow this change (for example downloads on, or an expiry later than the rules allow, or none).

GET /activity

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.

Required scope: activity:read

NameInTypeRequiredRules
sincequerystringnoOnly entries at or after this time: ISO 8601 with seconds and a zone, e.g. 2026-11-20T09:00:00Z.
typequerystringnoOnly these types, comma-separated, as items' type shows them (e.g. file.deleted,link.created). A type the log doesn't keep is refused.
personquerystringnoOnly what this teammate did: an actor id (usr_7, or the number alone).
limitqueryintegernoItems per page, 1 to 100. Default 25.
cursorquerystringnoThe next_cursor of the previous page, unchanged. Send the same filters with it: the cursor doesn't keep them.
curl \
  "https://pdftrackr.com/api/v1/activity?type=file.added,link.created" \
  -H "Authorization: Bearer $PDFTRACKR_KEY"

Response 200:

{
  "activity": [
    {
      "id": "act_3302",
      "type": "link.created",
      "actor": {
        "id": "usr_7",
        "name": "User A",
        "email": "[email protected]"
      },
      "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": "[email protected]"
      },
      "subject": {
        "kind": "file",
        "id": "file_118",
        "title": "Q4 deck v3"
      },
      "occurred_at": "2026-11-17T09:00:01.000Z"
    }
  ],
  "next_cursor": null
}

Errors, beyond the authentication errors:

StatusCodeMeaning
403INSUFFICIENT_SCOPEThe key doesn't have activity:read; required_scope names it.
400VALIDATION_FAILEDlimit 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.

Delete a fileDELETE /files/:id

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.

Required scope: files:delete

NameInTypeRequiredRules
idpathstringyesA file id from GET /files (file_118, or the number alone).
curl \
  -X DELETE https://pdftrackr.com/api/v1/files/file_118 \
  -H "Authorization: Bearer $PDFTRACKR_KEY"

Response 200:

{
  "deleted": true
}

Errors, beyond the authentication errors:

StatusCodeMeaning
403INSUFFICIENT_SCOPEThe key doesn't have files:delete; required_scope names it.
404FILE_NOT_FOUNDid isn't a team file of this workspace (or it was already deleted). A teammate's personal file is never reachable.

Events and hooks

Subscribe a URL to an event type with POST /hooks; its response carries the hook's signing secret, shown that once. The event types:

  • reader.opened
  • reader.finished
  • reader.returned
  • link.created
  • link.deleted
  • file.added
  • file.new_version
  • member.joined
  • member.left

test.ping isn't on the list: a webhook gets one when you press Send test on it.

Every event is an envelope with these fields: id, type, version, occurred_at, workspace, data. Each type's body, the delivery headers, retries and how to check the signature are on the webhooks help.

Rate limits

Each key may make 600 requests a minute. A response that counts against it carries X-RateLimit-Limit, X-RateLimit-Remaining and X-RateLimit-Reset (seconds until the count resets). While the server can't reach its shared counter, each server process counts on its own, so these numbers are approximate.

Each IP address may also send 30 requests a second (bursts of 20). Over either limit you get RATE_LIMITED with Retry-After in seconds: wait that long, then retry.

Errors

Every refusal below answers with at least these fields; some add more (INVALID_WEBHOOK_URL adds reason). An unexpected server error (500) may carry only success and error.

{
  "code": "RATE_LIMITED",
  "success": false,
  "error": "Too many requests"
}
CodeStatusMeaningWhat to do
VALIDATION_FAILED400The request also carried a browser session cookie.Send the API key without a browser session (server to server).
VALIDATION_FAILED400A body field is missing, of the wrong type or out of range.Fix the field the message names and send again.
VALIDATION_FAILED422link_id was sent with an event that isn't about a link, or the event type isn't available on this server.Drop link_id, or subscribe to another event.
VALIDATION_FAILED400limit 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.Send a limit in range, or the next_cursor from the previous page unchanged.
VALIDATION_FAILED400limit 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.Fix the parameter the message names and send again.
VALIDATION_FAILED400since isn't an ISO 8601 time with seconds and a zone, or is more than 365 days ago.Fix since and send again.
VALIDATION_FAILED400since isn't an ISO 8601 time with seconds and a zone.Fix since and send again.
VALIDATION_FAILED400limit 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.Fix the parameter the message names and send again.
VALIDATION_FAILED400limit 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.Send a limit in range, or the next_cursor from the previous page unchanged.
VALIDATION_FAILED400since was sent: room totals count since the room opened.Send the request without since.
VALIDATION_FAILED400name is missing, blank or longer than 120 characters, or another field was sent.Send only name, 1 to 120 characters.
VALIDATION_FAILED400file_id is missing or isn't a file id, or another field was sent.Send only file_id, from GET /files.
VALIDATION_FAILED400email is missing or isn't text, or another field was sent.Send only email.
VALIDATION_FAILED422email 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).Send a valid address; change the room's block list in the dashboard.
VALIDATION_FAILED422email 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).Send a valid address; change the room's lists in the dashboard.
VALIDATION_FAILED400A field is of the wrong type or out of range, a field other than these four was sent, or none was.Send only is_active, expires_at, allow_download or name, in range.
VALIDATION_FAILED400limit 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.Fix the parameter the message names and send again.
INVALID_API_KEY401The key is missing, malformed, unknown or revoked.Send Authorization: Bearer pdt_live_… with a key from Settings → Integrations.
KEY_OWNER_LEFT401The member who made the key has left the workspace. It stays refused if they rejoin.Make a new key as a current owner or admin.
RATE_LIMITED429This key made more than 600 requests in a minute, or this IP address sent more than 30 requests a second (bursts of 20 allowed).Wait the seconds in Retry-After (1 for the per-IP limit), then retry; spread requests out.
RATE_LIMITED429This key started more than 30 uploads in the last hour.Wait the seconds in Retry-After, then retry.
KEY_OWNER_DEMOTED403The member who made the key is no longer an owner or admin.Make them an admin again, or make a new key as an owner or admin.
INTEGRATIONS_UNAVAILABLE503The API is switched off on this server.Retry later.
INSUFFICIENT_SCOPE403The 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.Use a Full access or Read only key, or make a key with both scopes ticked.
INSUFFICIENT_SCOPE403The key doesn't have events:subscribe; required_scope names it.Use a Full access key, or make a key with this scope ticked.
INSUFFICIENT_SCOPE403The key doesn't have files:read; required_scope names it.Use a Full access key, or make a key with this scope ticked.
INSUFFICIENT_SCOPE403The key doesn't have visits:read; required_scope names it.Use a Full access key, or make a key with this scope ticked.
INSUFFICIENT_SCOPE403The key doesn't have files:write; required_scope names it.Use a Full access key, or make a key with this scope ticked.
INSUFFICIENT_SCOPE403The key doesn't have links:read; required_scope names it.Use a Full access key, or make a key with this scope ticked.
INSUFFICIENT_SCOPE403The key doesn't have rooms:read; required_scope names it.Use a Full access key, or make a key with this scope ticked.
INSUFFICIENT_SCOPE403The key doesn't have rooms:write; required_scope names it.Use a Full access key, or make a key with this scope ticked.
INSUFFICIENT_SCOPE403The key doesn't have links:write; required_scope names it.Use a Full access key, or make a key with this scope ticked.
INSUFFICIENT_SCOPE403The key doesn't have activity:read; required_scope names it.Use a Full access key, or make a key with this scope ticked.
INSUFFICIENT_SCOPE403The key doesn't have files:delete; required_scope names it.Use a Full access key, or make a key with this scope ticked.
INVALID_WEBHOOK_URL422The target URL can't be used (for example not public HTTPS); reason says why.Use a public HTTPS URL.
SHARE_NOT_FOUND404link_id isn't a share link of this workspace, or the link is inside a data room.Use a link id from GET /links.
SHARE_NOT_FOUND404id isn't a share link of this workspace, or it is a link inside a data room.Use a link id from GET /links; a room's numbers are in GET /rooms/:id/stats.
SHARE_NOT_FOUND404id isn't a share link of this workspace, or it is a link inside a data room, which is changed in the dashboard only.Use a link id from GET /links.
INTEGRATION_LIMIT409The workspace already has 50 hooks, or 3 webhook endpoints at this URL's site.Delete a hook you no longer need, or send to another site.
NOT_FOUND404Not a public event type, or test.ping.Use an event type from the events list.
NOT_FOUND404No upload with this id was started by this key's maker in this workspace, or it is more than 24 hours old.Use the upload_id from POST /files/uploads; an older upload's file is in GET /files.
NOT_FOUND404id isn't a data room of this workspace.Use a room id from GET /rooms.
FILE_NOT_FOUND404id isn't a team file of this workspace.Use a file id from GET /files.
FILE_NOT_FOUND404file_id isn't a team file of this workspace.Use a file id from GET /files.
FILE_NOT_FOUND404id isn't a team file of this workspace (or it was already deleted). A teammate's personal file is never reachable.Use a file id from GET /files.
WORKSPACE_FROZEN409Business is paused, so team items are read-only.Resume Business, then retry.
WORKSPACE_FROZEN409Business is paused, so data rooms are read-only.Resume Business, then retry.
WORKSPACE_FROZEN409Business 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.Resume Business, then retry.
WORKSPACE_FROZEN409Business is paused: a paused Business may still revoke a link or turn downloads off; any other change is refused.Send only is_active: false and allow_download: false, or resume Business, then retry.
FILE_INVALID_TYPE400The 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.Upload an accepted type; for a new version, a file of the same kind.
QUOTA_EXCEEDED400The workspace's storage or file count would go over its plan.Delete files you no longer need, then retry.
FILE_TOO_LARGE413The file is over the plan's file size.Upload a smaller file.
FOLDER_NOT_FOUND404folder_id isn't a team folder of this workspace.Use a folder id from GET /folders.
NO_FILE_PROVIDED400The bytes haven't arrived at upload_url (yet); expected_size is the byte count the URL was signed for.PUT exactly expected_size bytes to upload_url, then call this again.
UPLOAD_ALREADY_COMPLETED409Another complete call for this upload is already running.Follow the upload with GET /files/uploads/:upload_id.
BUSINESS_RESTART_REQUIRED402Business is paused, so who read what in a room stays hidden until it restarts.Restart Business, then retry.
ROOM_LIMIT422The workspace already has as many data rooms as a team can have.Delete a room you no longer need in the dashboard.
ROOM_LIMIT422The room already holds 1000 files.Take a file out of the room in the dashboard first.
ROOM_LIMIT422The room's allow list already holds 500 entries.Take an entry off the list in the dashboard first.
ROOM_LIMIT422The room's block list already holds 500 entries.Take an entry off the block list in the dashboard first.
CONTENT_SUSPENDED409PDFTrackr suspended this room or this file, so nothing can be added.Contact support.
CONTENT_SUSPENDED409PDFTrackr suspended this file's content.Contact support.
CONTENT_SUSPENDED409PDFTrackr suspended this link's content, so it can't be turned back on.Contact support.
POLICY_LOCKED422The team's locked link rules don't allow these settings (for example email_gate off).Send settings the team rules allow, or leave them out to get the team defaults.
POLICY_LOCKED422The team's locked link rules don't allow this change (for example downloads on, or an expiry later than the rules allow, or none).Send a value the team rules allow.
EMAIL_GATING_REQUIRED400The team's defaults turn on email verification, which needs the email ask.Send email_gate: true, or leave it out.

Paused Business and team changes

  • WORKSPACE_FROZEN: Business is paused, so team items are read-only. Resume Business, then retry.
  • WORKSPACE_FROZEN: Business is paused, so data rooms are read-only. Resume Business, then retry.
  • 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. Resume Business, then retry.
  • WORKSPACE_FROZEN: Business is paused: a paused Business may still revoke a link or turn downloads off; any other change is refused. Send only is_active: false and allow_download: false, or resume Business, then retry.
  • KEY_OWNER_LEFT: The member who made the key has left the workspace. It stays refused if they rejoin. Make a new key as a current owner or admin.
  • KEY_OWNER_DEMOTED: The member who made the key is no longer an owner or admin. Make them an admin again, or make a new key as an owner or admin.
  • While Business is paused, hooks can still be added and removed but receive no events, and GET /samples/:event returns the fixed examples only.

Versioning and changes

The version is in the path (/v1). Fields, endpoints and event types may be added within v1, so ignore fields you don't know.

  • 24 Nov 2026: DELETE /files/:id deletes a team file, as the dashboard does (scope files:delete). Only keys made with files:delete ticked can delete: Full access and Read only keys can't, and no existing key gains it.
  • 24 Nov 2026: GET /activity lists the team activity log Settings shows, newest first, with since, type, person and cursor paging by id (scope activity:read, in Full access and Read only). Reader activity is never in it.
  • 24 Nov 2026: Full-access keys can now create data rooms, add files and grant or revoke access: POST /rooms, POST /rooms/:id/items, POST /rooms/:id/people and DELETE /rooms/:id/people/:email (scope rooms:write).
  • 24 Nov 2026: Full-access keys can now change and revoke share links: PATCH /links/:id takes is_active (false revokes the link, true turns it back on), expires_at, allow_download and name (scope links:write).
  • 24 Nov 2026: GET /files/:id/stats and GET /links/:id/stats (scope visits:read) and GET /rooms/:id/stats (scope rooms:read) return a file's, a link's and a room's totals, the same numbers the dashboard shows; files and links take since.
  • 24 Nov 2026: GET /hooks lists the hooks this key made, with the workspace's hook count and limit (scope events:subscribe). GET /files/:id/versions lists a file's stored versions, newest first (scope files:read).
  • 24 Nov 2026: GET /folders lists the workspace's team folders (scope files:read). GET /files items carry folder and take folder_id; POST /files/uploads/:upload_id/complete takes folder_id to file the new file in a folder.
  • 24 Nov 2026: Full-access keys can now upload files: POST /files/uploads returns a presigned upload URL, POST /files/uploads/:upload_id/complete starts the checks and GET /files/uploads/:upload_id gives the result for 24 hours (scopes files:write and files:read). Every file type the dashboard takes, the same checks; file_id uploads a new version.
  • 24 Nov 2026: GET /rooms lists the workspace's data rooms and GET /rooms/:id/people the people who entered one, with what each read (scope rooms:read); people pages hold at most 25.
  • 24 Nov 2026: GET /visits lists closed reader visits (scope visits:read), with since, link_id, file_id and cursor paging by id, at most 25 a page.
  • 24 Nov 2026: Keys have scopes. Full access (the default, and every existing key) has every scope except files:delete; Read only lists, reads and subscribes; or choose scopes when you make a key. A request without its scope gets 403 INSUFFICIENT_SCOPE with required_scope. GET /me returns the key's scopes.
  • 24 Nov 2026: GET /files and GET /links take limit (1 to 100, default 25) and cursor, and return next_cursor for the next page.
  • 24 Nov 2026: POST /hooks accepts every public event type and returns the hook's signing secret once; responses carry X-RateLimit-* headers; GET /files items carry file_type, scan_status and conversion; links inside a data room are no longer listed or accepted as link_id.

OpenAPI

The same reference as an OpenAPI 3.1 document: /help/api/openapi.json.

API reference (v1) - PDFTrackr | PDFTrackr