Get all files

GET {{baseUrl}}/crm/files?entity=deals&entityIds=&dateFrom=1677168398000&dateTo=1677254798000&offset=0&limit=50&sort=desc

Request Params

KeyDatatypeRequiredDescription
entitystringFilter by file entity type
entityIdsnullFilter by file entity IDs
dateFromnumberdateFrom to date range filter type (timestamp in milliseconds)
dateTonumberdateTo to date range filter type (timestamp in milliseconds)
offsetnumberIndex of the first document of the page
limitnumberNumber of documents per page
sortstringSort the results in the ascending/descending order. Default order is descending by creation if sort is not passed

HEADERS

KeyDatatypeRequiredDescription
Acceptstring

RESPONSES

status: OK

[{"name":"example.png","authorId":"61a5ce58y5d4795761045991","contactId":1,"dealId":"61a5ce58c5d4795761045991","companyId":"61a5ce58c5d4795761045991","size":10,"createdAt":"2017-05-01T17:05:03.000Z"},{"name":"example.png","authorId":"61a5ce58y5d4795761045991","contactId":1,"dealId":"61a5ce58c5d4795761045991","companyId":"61a5ce58c5d4795761045991","size":10,"createdAt":"2017-05-01T17:05:03.000Z"}]