Download a file
Streams the stored bytes of one file. id is the file id returned by GET /v4/records/{type}/{id}/files or in an email's attachments array.
Requires both files:read and the read scope of the record the file is attached to (people:read, companies:read, jobs:read, comments:read, emails:read, or <plural_slug>:read for a custom record). A key holding only one of the two receives 403.
The response carries the file's own Content-Type and Content-Disposition: attachment; filename="...". Pass disposition=inline to render in a browser instead of downloading. The response is not cacheable.
Parameters
idstringrequiredpathFile ID
dispositionstringqueryattachment (default) or inline
Response
File bytes
Invalid id
Invalid API key
Insufficient scope
File not found, unlinked, or with no stored content
Internal server error
Authorization
bearer_ authhttp (bearer) in headerAPI key or OAuth access token in Authorization header
Scopes: files:read
oauth2_ authoauth2OAuth authorization code flow with mandatory S256 PKCE.
Scopes: files:read
apikey_ authapiKey in queryAPI key in query string
Scopes: files:read
