Download a document
/workspaces/{workspace}/documents/{document}/downloadDownloads a workspace document (a certificate PDF or a subprocessor DPA) as an attachment. Each download is written to the audit log.
Authentication
Send an API token as a bearer token. This endpoint needs a read token, made by any member of the workspace. Create one in My account → API tokens; see scopes and roles.
Authorization: Bearer 42|bynh_pat_•••••••HeaderPath parameters
workspacestringRequiredYour workspace slug, e.g. dokan.
documentintegerRequiredDocument id, as in a document’s download_path.
Response
200 OKThe file (Content-Type: application/pdf, Content-Disposition: attachment; filename=…, X-Content-Type-Options: nosniff). Not JSON.
Rate limits
This endpoint counts toward your general limit of 120 requests a minute. When you go over, wait for the number of seconds in Retry-After.
Errors
Every error is JSON with a message. See Errors.