Get a file
GET /files/{uuid}
/files/{uuid}Returns the details of one file attached to a record: name, description, type, size, uploader and version. It does not return the content.
When to use: To read the current version before renaming or deleting a file, or to check a file whose UUID you already know.
When not to use: To download the bytes, use get_file_content. To find a file by name or by record, use list_files. A file that was just declared with create_file is not readable here until its content is stored with set_file_content.
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/problem+json
application/problem+json
application/problem+json
application/problem+json
curl -X GET "https://api.easymailing.com/files/6e2b8f14-3a7c-4d95-b0e1-8c5a2d7f9341" \ -H "X-Auth-Token: YOUR_API_KEY"{ "uuid": "095be615-a8ad-4c33-8e9c-c7612fbf6c9f", "record": "/entity/1", "record_type": "contact", "display_name": "string", "description": "string", "original_name": "string", "mime_type": "string", "size_bytes": 0, "source": "upload", "status": "uploading", "previewable": true, "created_by": { "uuid": "095be615-a8ad-4c33-8e9c-c7612fbf6c9f", "kind": "user", "name": "string" }, "version": 0, "created_at": "2019-08-24T14:15:22Z", "updated_at": "2019-08-24T14:15:22Z"}