Download a file
GET /files/{uuid}/content
/files/{uuid}/contentDownloads the bytes of one file attached to a record. The response body is the file itself, not JSON.
When to use: When the content is needed: to read a document, forward it or save it. The Content-Type of the response is the mime_type of the file, Content-Length is its size, and Content-Disposition carries its display_name.
When not to use: To know only its name, size or version, use get_file: it is cheaper and returns JSON. The file is always delivered as an attachment (never inline) and the call does not count as activity on the record.
Permissions: Requires a CRM seat and the crm.contacts_companies.read capability. A file inherits the access of the record it is attached to: for a file of an opportunity the user needs the crm.opportunities.read capability and read access to its pipeline instead. A file the user cannot reach is reported as not found, never as forbidden.
Value for the X-Auth-Token header parameter.
In: header
Path Parameters
UUID of the file. Get it from list_files (or from create_file while uploading).
uuidResponse Body
application/octet-stream
application/problem+json
application/problem+json
application/problem+json
application/problem+json
curl -X GET "https://api.easymailing.com/files/6e2b8f14-3a7c-4d95-b0e1-8c5a2d7f9341/content" \ -H "X-Auth-Token: YOUR_API_KEY""string"