Download an evidence file
/workspaces/{workspace}/evidence/items/{evidenceItem}/files/{file}/downloadDownloads a file attached to a piece of evidence. It is always sent as an attachment, never rendered, and the download is logged.
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.
evidenceItemintegerRequiredEvidence item id.
fileintegerRequiredFile id, scoped to the evidence item.
Response
200 OKThe file with its stored Content-Type, Content-Disposition: attachment, X-Content-Type-Options: nosniff and Content-Security-Policy: default-src 'none'; sandbox. 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.