Files
Get all files
get/crm/files
Query parameters
entity'companies' | 'deals' | 'contacts'
Filter by file entity type
entityIdsstring
Filter by file entity IDs
dateFrominteger
dateFrom to date range filter type (timestamp in milliseconds)
dateTointeger
dateTo to date range filter type (timestamp in milliseconds)
offsetinteger
Index of the first document of the page
limitinteger
Number of documents per page
sort'asc' | 'desc'
Sort the results in the ascending/descending order. Default order is descending by creation if sort is not passed
Response
Returns files list with filters
Example response
[
{
"createdAt": "2017-05-01T17:05:03.000Z",
"companyId": "61a5ce58c5d4795761045991",
"size": 10,
"contactId": 1,
"dealId": "61a5ce58c5d4795761045991",
"name": "example.png",
"authorId": "61a5ce58y5d4795761045991"
}
]